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

Don't update if the setup process has not completed

parent 1ae64505
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,17 @@ if [ -f ~/temp_renewletsencrypt.txt ]; then
exit 0
fi
# don't do updates if the setup process has not happened
if [ -f /root/.install_state.txt ]; then
curr_install_state=$(cat /root/.install_state.txt)
if [ "$curr_install_state" ]; then
# shellcheck disable=SC2086
if [ $curr_install_state -ne 4 ]; then
exit 0
fi
fi
fi
source /usr/local/bin/${PROJECT_NAME}-shortcuts
UTILS_FILES="/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*"
......
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