This commit is contained in:
Bob Mottram 2015-03-19 19:59:57 +00:00
parent af85cac751
commit f5fda352d6
1 changed files with 1 additions and 0 deletions

View File

@ -8385,6 +8385,7 @@ function create_upgrade_script {
fi
if grep -Fxq "install_gogs" $COMPLETION_FILE; then
echo '' >> /etc/cron.weekly/$UPGRADE_SCRIPT_NAME
echo '# gogs' >> /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