From 2e7240eb2bf0564833f79fc4e4bdd89e06fa963a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 Mar 2015 08:26:44 +0000 Subject: [PATCH] build and restart gogs after upgrade --- src/freedombone | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone b/src/freedombone index de248b13..6ec1fee0 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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