From 1bd9520ef011a4e4ca815d5f658f15cbfdb813ad Mon Sep 17 00:00:00 2001 From: VG Date: Tue, 12 Sep 2017 15:31:18 +0200 Subject: use absolute path instead of relative and example for auto add to mighty user --- create-repo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'create-repo') 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 " 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" -- cgit v1.2.3