build and restart gogs after upgrade

This commit is contained in:
Bob Mottram 2015-03-22 08:26:44 +00:00
parent a2c877c667
commit 2e7240eb2b
1 changed files with 2 additions and 0 deletions

View File

@ -8528,6 +8528,8 @@ function create_upgrade_script {
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
echo 'go build' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'systemctl restart gogs' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
fi
echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME