1 parent cf057cc commit e314dd2Copy full SHA for e314dd2
1 file changed
update.sh
@@ -61,13 +61,13 @@ fi
61
log "Stopping service"
62
# Delay so client could read the "Stopping service" message before the service is stopped and the connection is lost
63
sleep 2
64
-systemctl stop "$APP_NAME"
+systemctl disable --now "$APP_NAME"
65
cp "$BIN_FILE" "$INSTALL_DIR/App"
66
chown $APP_USER:$APP_USER "$BIN_FILE" "$INSTALL_DIR/App"
67
-setcap 'cap_net_bind_service=+ep' "$INSTALL_DIR/App" # Allow binding to port 443 without root
+setcap 'cap_net_bind_service=+ep' "$INSTALL_DIR/App"
68
ok "Binary updated"
69
70
# Restart the service to pick up the new binary
71
log "Restarting service"
72
-systemctl restart "$APP_NAME"
+systemctl enable --now "$APP_NAME"
73
ok "Service '$APP_NAME' restarted"
0 commit comments