diff options
| author | aura <nw@moneybot.cc> | 2026-05-13 03:38:13 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-05-13 03:38:13 +0200 |
| commit | a5003496fae29e95ba58062fa2a094f0e5c53c4d (patch) | |
| tree | 8b1109ea4fb4c3b0b6f1f65a558ad40d368931fd /bin/git-init-remote | |
| parent | 9e2e988236e7180c9299b20b503b143e35d3b198 (diff) | |
cool
Diffstat (limited to 'bin/git-init-remote')
| -rw-r--r-- | bin/git-init-remote | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/git-init-remote b/bin/git-init-remote new file mode 100644 index 0000000..6b79aaa --- /dev/null +++ b/bin/git-init-remote @@ -0,0 +1,15 @@ +#!/bin/sh + +NAME=$1 +DESC=$2 +AUTH=$3 + +echo "Creating $NAME" +echo "Description: $DESC" +echo "Owner: $AUTH" + +ssh git@$VPS_HOST "git init --bare /home/git/$NAME" +ssh git@$VPS_HOST "rm /home/git/$NAME/description" +ssh git@$VPS_HOST "echo \"$DESC\" > /home/git/$NAME/description" +ssh git@$VPS_HOST "echo \"$AUTH\" > /home/git/$NAME/owner" +ssh git@$VPS_HOST "git --git-dir=/home/git/$NAME config gitweb.owner \"$AUTH\"" |
