Permission on config file

This commit is contained in:
Bob Mottram 2016-05-10 22:40:35 +01:00
parent 8fc2cdec8c
commit 02973a691a
1 changed files with 2 additions and 0 deletions

View File

@ -6742,6 +6742,8 @@ function install_gogs {
echo '[service]' >> $GOGS_CONFIG_FILE
echo 'DISABLE_REGISTRATION = false' >> $GOGS_CONFIG_FILE
#cp -r /home/git/go/src/github.com/gogits/gogs/custom /home/git/gvm/pkgsets/go${GO_VERSION}/global/src/github.com/gogits/gogs
chmod 750 $GOGS_CONFIG_FILE
chown -R git:git /home/git
systemctl restart gogs