]> git.armaanb.net Git - stagit.git/blobdiff - repo-gen.sh
Fix ownership of generated files.
[stagit.git] / repo-gen.sh
index 1a22f85e1d4771d81cbb99e17f2b44696444369e..afae9305c8ed38a512b67d19e17e0262b1601d27 100755 (executable)
@@ -34,3 +34,7 @@ done
 
 echo "Generating index.html with \`$STAGIT_INDEX\`."
 "$STAGIT_INDEX" /srv/git/*.git > /var/www/git/index.html
+
+# Correct ownership of the web files.
+chowm git:www-data -R /var/www/git -f
+chmod         g+rw -R /var/www/git -f