From c48111496c6cd4a6b85a2c3740433f234d6a73b7 Mon Sep 17 00:00:00 2001 From: C0pywriting <61686211+C0pywriting@users.noreply.github.com> Date: Fri, 7 Mar 2025 20:59:52 +0100 Subject: [PATCH] Beszel: restarting service after update (#2915) * restarting beszel.service after update Added systemctl command to start beszel.service. This ensures the new version is applied immediately; otherwise, the old version remains in operation until the next restart * Add status messages for stopping and starting Added informational message when stopping the $APP service and a success message when the service starts successfully. * chnage beszel.service * Update msg infos * Update beszel.sh * Update beszel.sh --------- Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com> --- ct/beszel.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ct/beszel.sh b/ct/beszel.sh index 1ed2b1560..4d08fe947 100644 --- a/ct/beszel.sh +++ b/ct/beszel.sh @@ -27,8 +27,18 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - /opt/beszel/beszel update - msg_error "Currently we don't provide an update function for this ${APP}." + msg_info "Stopping $APP" + systemctl stop beszel-hub + msg_ok "Stopped $APP" + + msg_info "Updating $APP" + $STD /opt/beszel/beszel update + msg_ok "Updated $APP" + + msg_info "Starting $APP" + systemctl start beszel-hub + msg_ok "Successfully started $APP" + msg_ok "Update Successful" exit }