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

Remove upgrading file

parent 61773da1
No related branches found
No related tags found
No related merge requests found
......@@ -240,6 +240,9 @@ fi
if [[ "$2" == "--reboot"* || "$2" == "--restart"* ]]; then
# if we are rebooting anyway then there is no need to
# restart the daemons
if [ -f /tmp/.upgrading ]; then
rm /tmp/.upgrading
fi
exit 0
fi
......
......@@ -40,6 +40,9 @@ CURRENT_BRANCH=master
# Is letsencrypt updating its certificates?
# If yes then skip the upgrade to avoid any collisions
if [ -f ~/temp_renewletsencrypt.txt ]; then
if [ -f /tmp/.upgrading ]; then
rm /tmp/.upgrading
fi
exit 0
fi
......@@ -105,6 +108,7 @@ if [ -d "$PROJECT_DIR" ]; then
if ! ${PROJECT_NAME} -c "$CONFIGURATION_FILE"; then
rm /tmp/.upgrading
/bin/bash /usr/local/bin/${PROJECT_NAME}-notification -s "Freedombone upgrade" -m "Upgrade failed"
exit 453536
fi
......@@ -132,12 +136,12 @@ if [ -d "$PROJECT_DIR" ]; then
fi
fi
# If logging was left on then turn it off
${PROJECT_NAME}-logging off
# upgrading file prevents USB canary from activating
if [ -f /tmp/.upgrading ]; then
rm /tmp/.upgrading
fi
# If logging was left on then turn it off
${PROJECT_NAME}-logging off
# deliberately there is no 'exit 0' here
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