From 0cfaba91cd301cd88c3997c1d87e2105f0bda6ff Mon Sep 17 00:00:00 2001 From: thierry Date: Fri, 21 May 2010 21:25:24 +0000 Subject: [PATCH] permissions --- scripts/git-check.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/git-check.sh b/scripts/git-check.sh index 80ff1cf..3b6ef0d 100755 --- a/scripts/git-check.sh +++ b/scripts/git-check.sh @@ -55,8 +55,22 @@ EOF echo "" } +function check_permissions () { + echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx checking descriptions " + for arg in "$@" ; do + # accept args like plcapi or plcapi.git + b=$(basename $arg .git) + git=${b}.git + echo -n "$git " + chown -R root:onelab $git + chmod -R g+w,o-w $git + done + echo "" +} + # missing_gitweb args="$@" [[ -z "$args" ]] && args=$(ls -d *.git) fill_descriptions $args upload_archives $args +check_permissions $args -- 2.43.0