Add permissions to upgrade script

This commit is contained in:
Bob Mottram 2015-03-19 21:57:08 +00:00
parent 0e614b3b9f
commit 323662e5f6
1 changed files with 1 additions and 0 deletions

View File

@ -8441,6 +8441,7 @@ function create_upgrade_script {
echo 'git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'chown -R git:git /home/git' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'chmod 600 /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
fi
echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME