From: Thierry Parmentelat Date: Mon, 15 Jun 2015 14:48:51 +0000 (+0200) Subject: configurable own for a git repo X-Git-Url: http://git.onelab.eu/?p=infrastructure.git;a=commitdiff_plain;h=ac2aad55e3fe013533a4d8168d6585f724f62768 configurable own for a git repo --- diff --git a/scripts/git-check.sh b/scripts/git-check.sh index ca3e738..ef395ed 100755 --- a/scripts/git-check.sh +++ b/scripts/git-check.sh @@ -59,8 +59,10 @@ function check_permissions () { # accept args like plcapi or plcapi.git b=$(basename $arg .git) git=${b}.git - echo -n "$git " - chown -R root:onelab $git + owner=root:onelab + if [ -f $git/owner ] ; then owner=$(cat $git/owner); fi + echo -n "$git ($owner) " + chown -R $owner $git chmod -R g+w,o-w $git done echo ""