This commit is contained in:
Bob Mottram 2018-06-09 14:32:02 +01:00
parent 3fe5830e02
commit c6ca3e5c4b
1 changed files with 2 additions and 6 deletions

View File

@ -37,9 +37,6 @@ PROJECT_REPO="https://code.freedombone.net/bashrc/${PROJECT_NAME}"
CURRENT_BRANCH=master CURRENT_BRANCH=master
# clear temporary files
rm -rf /tmp/*
# Is letsencrypt updating its certificates? # Is letsencrypt updating its certificates?
# If yes then skip the upgrade to avoid any collisions # If yes then skip the upgrade to avoid any collisions
if [ -f ~/temp_renewletsencrypt.txt ]; then if [ -f ~/temp_renewletsencrypt.txt ]; then
@ -72,9 +69,8 @@ if [ $DEVELOPMENT_BRANCH ]; then
fi fi
# upgrading file prevents USB canary or other jobs from activating # upgrading file prevents USB canary or other jobs from activating
if [ ! -f /tmp/.upgrading ]; then rm -rf /tmp/*
touch /tmp/.upgrading touch /tmp/.upgrading
fi
if [ -f /usr/bin/backupdatabases ]; then if [ -f /usr/bin/backupdatabases ]; then
if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then if grep -q "cat /root/dbpass" /usr/bin/backupdatabases; then