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