do the configuration in git-check.sh
[infrastructure.git] / scripts / git-check.sh
index 551ac41..5b30f8f 100755 (executable)
@@ -47,7 +47,7 @@ function upload_archives () {
            echo -n $i "Setting.. "; 
            cat >> $git/config <<EOF
 [daemon]
-       uploadpack = false
+       uploadpack = true
        uploadarch = true
 EOF
        fi
@@ -55,8 +55,22 @@ EOF
     echo ""
 }
 
-missing_gitweb
+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