From af85cac7516aa5931819be5fac52abcd8407a5df Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Mar 2015 19:57:24 +0000 Subject: [PATCH] Add gogs to update script --- src/freedombone | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedombone b/src/freedombone index c668dcee..67273b1e 100755 --- a/src/freedombone +++ b/src/freedombone @@ -8383,6 +8383,14 @@ function create_upgrade_script { echo 'git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME fi + if grep -Fxq "install_gogs" $COMPLETION_FILE; then + echo '' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'cd /home/git/go/src/github.com/gogits/gogs' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'git stash' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'git stash drop' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + echo 'git pull' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME + fi + echo 'exit 0' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME chmod +x /etc/cron.weekly/$UPGRADE_SCRIPT_NAME echo 'create_upgrade_script' >> $COMPLETION_FILE