Fix gogs build

This commit is contained in:
Bob Mottram 2015-09-06 11:04:59 +01:00
parent 8eebea5e8f
commit 8a527c8a87
1 changed files with 2 additions and 1 deletions

View File

@ -8240,7 +8240,7 @@ function install_gogs {
cd gogs
# install
go get ./...
go get -u ./...
go build
if [ ! "$?" = "0" ]; then
exit 546750
@ -10184,6 +10184,7 @@ function create_upgrade_script {
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 'export GOPATH=/home/git/go' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo 'go get -u ./...' >> /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 daemon-reload' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME