Set go path during upgrade
This commit is contained in:
parent
e2a0a8131c
commit
9c6bc30815
|
@ -8592,6 +8592,7 @@ 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 'GOPATH=/home/git/go' >> /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
|
||||
|
|
Loading…
Reference in New Issue