Skip to content
Snippets Groups Projects
Commit c6ca3e5c authored by Bob Mottram's avatar Bob Mottram
Browse files

Simplify

parent 3fe5830e
No related branches found
No related tags found
No related merge requests found
...@@ -37,9 +37,6 @@ PROJECT_REPO="https://code.freedombone.net/bashrc/${PROJECT_NAME}" ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment