From 0e614b3b9f842d4970c737be8295a553d5556226 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Mar 2015 21:44:54 +0000 Subject: [PATCH] gogs configuration file permissions --- src/freedombone | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone b/src/freedombone index edb5d9c2..d6c4a248 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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