diff --git a/ct/espconnect.sh b/ct/espconnect.sh index 32ef1f7c..b66e465e 100644 --- a/ct/espconnect.sh +++ b/ct/espconnect.sh @@ -35,7 +35,11 @@ function update_script() { systemctl stop nginx msg_ok "Stopped Nginx" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "espconnect" "thelastoutpostworkshop/ESPConnect" "prebuild" "latest" "/opt/espconnect" "dist.zip" + if ! CLEAN_INSTALL=1 fetch_and_deploy_gh_release "espconnect" "thelastoutpostworkshop/ESPConnect" "prebuild" "latest" "/opt/espconnect" "dist.zip"; then + msg_error "Failed to update ${APP}; restarting Nginx" + systemctl start nginx + exit 1 + fi msg_info "Starting Nginx" systemctl start nginx