fix: align ESPConnect update flow with maintainer guidance

This commit is contained in:
John Lombardo
2026-04-29 12:40:00 +08:00
parent 5b4abb2301
commit 290dbd0245

View File

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