summary refs log tree commit diff stats
path: root/cgit
diff options
context:
space:
mode:
authorBiRabittoh <birabittoh@tilde.institute>2023-07-14 02:47:46 +0200
committerBiRabittoh <birabittoh@tilde.institute>2023-07-14 02:47:46 +0200
commita74b401036377a663e1ba3cd9f0dcfa9abc48e8a (patch)
treed4c070607e14049c34e4512b94dad9a7aa28ce67 /cgit
parent69e4666dc46c30cdef0f05173d808e4770b9d59c (diff)
downloadmy-docker-compose-master.tar.gz
add pmwiki, better update scripts HEAD master
Diffstat (limited to 'cgit')
-rwxr-xr-xcgit/add_repo.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/cgit/add_repo.sh b/cgit/add_repo.sh
index 53c083f..cc95a88 100755
--- a/cgit/add_repo.sh
+++ b/cgit/add_repo.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-BASE_REPO_DIR="/etc/config/cgit"
+BASE_REPO_DIR="public_repos/"
 GIT_USER="BiRabittoh"
 GIT_EMAIL="birabittoh@duck.com"
 
@@ -16,7 +16,7 @@ if [ -z "$repo_desc" ]; then
       exit 1
 fi
 
-repo_path="$BASE_REPO_DIR/$repo_name"
+repo_path="$HOME/$BASE_REPO_DIR/$repo_name"
 
 if [ -d "$repo_path" ]; then
     echo "$repo_name already exists."
@@ -30,4 +30,7 @@ git init --bare $repo_path
 git -C $repo_path config --local gitweb.owner "$GIT_USER <$GIT_EMAIL>"
 echo "$repo_desc" > $repo_path/description
 
-echo "Done."
+echo
+echo "git remote add birabittoh user@birabittoh.duckdns.org:public_repos/$repo_name"
+echo "git push -u birabittoh master"
+echo