]> git.armaanb.net Git - stagit.git/commitdiff
Fix ownership of generated files.
authorDemonstrandum <moi@knutsen.co>
Wed, 29 Jul 2020 22:09:26 +0000 (23:09 +0100)
committerDemonstrandum <moi@knutsen.co>
Wed, 29 Jul 2020 22:09:26 +0000 (23:09 +0100)
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