Set go path during upgrade

This commit is contained in:
Bob Mottram 2015-03-29 11:40:55 +01:00
parent e2a0a8131c
commit 9c6bc30815
1 changed files with 1 additions and 0 deletions

View File

@ -8592,6 +8592,7 @@ function create_upgrade_script {
echo 'git pull' >> /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 '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 'chmod 600 /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'GOPATH=/home/git/go' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'go build' >> /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 echo 'systemctl restart gogs' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
fi fi