Fix gogs build
This commit is contained in:
parent
8eebea5e8f
commit
8a527c8a87
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue