aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2017-09-12 15:31:18 +0200
committerVG <vg@devys.org>2017-09-12 15:31:18 +0200
commit1bd9520ef011a4e4ca815d5f658f15cbfdb813ad (patch)
tree69b9a27d32d3ec7fc023c424a9a67aacc24808a7
parent6b752d3456e801a80f39226b0c386a66426e1fd4 (diff)
downloadssh-git-only-1bd9520ef011a4e4ca815d5f658f15cbfdb813ad.tar.gz
ssh-git-only-1bd9520ef011a4e4ca815d5f658f15cbfdb813ad.tar.bz2
ssh-git-only-1bd9520ef011a4e4ca815d5f658f15cbfdb813ad.zip
use absolute path instead of relative and example for auto add to mighty user
-rwxr-xr-xcreate-repo4
1 files changed, 3 insertions, 1 deletions
diff --git a/create-repo b/create-repo
index 2883b58..bf37d94 100755
--- a/create-repo
+++ b/create-repo
@@ -3,4 +3,6 @@ if [ -n "$1" ]; then
echo "Usage: create-repo <reponame>"
exit 1
fi
-sudo -u git git init --bare "$1"
+sudo -u git git init --bare ~git/"$1"
+# uncomment to add each new repo to a specific user
+#sudo -u git sh -c "echo $1 > ~git/user.listrw"