gogs configuration file permissions

This commit is contained in:
Bob Mottram 2015-03-19 21:44:54 +00:00
parent fb733d603c
commit 0e614b3b9f
1 changed files with 2 additions and 0 deletions

View File

@ -6771,6 +6771,8 @@ quit" > $INSTALL_DIR/batch.sql
mysql -u root --password="$MARIADB_PASSWORD" < $INSTALL_DIR/batch.sql
shred -zu $INSTALL_DIR/batch.sql
chmod 600 /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini
chown -R git:git /home/git
cp $GOPATH/src/github.com/gogits/gogs/scripts/systemd/gogs.service /etc/systemd/system
sed -i 's|#After=mysqld.service|After=mysqld.service|g' /etc/systemd/system/gogs.service