X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fgit-check.sh;h=ef395ed3d907c5073b8837f8ae9b65ed4dedf5b7;hb=a8aa1baef6f4d1df60f44d1d542912acff913226;hp=ca3e7381a9f527520e091488a95752bf836a41ad;hpb=e2f7229c08f2ff84fe56b6fa3b6d5c11892e61f0;p=infrastructure.git 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 ""