Browse Source

build and restart gogs after upgrade

Bob Mottram 10 years ago
parent
commit
2e7240eb2b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone

+ 2
- 0
src/freedombone View File

@@ -8528,6 +8528,8 @@ function create_upgrade_script {
8528 8528
       echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8529 8529
       echo 'chown -R git:git /home/git' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8530 8530
       echo 'chmod 600 /home/git/go/src/github.com/gogits/gogs/custom/conf/app.ini' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8531
+      echo 'go build' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8532
+      echo 'systemctl restart gogs' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
8531 8533
   fi
8532 8534
 
8533 8535
   echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME