Skip to content

Commit c481114

Browse files
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 <[email protected]>
1 parent 2630c46 commit c481114

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ct/beszel.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,18 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
/opt/beszel/beszel update
31-
msg_error "Currently we don't provide an update function for this ${APP}."
30+
msg_info "Stopping $APP"
31+
systemctl stop beszel-hub
32+
msg_ok "Stopped $APP"
33+
34+
msg_info "Updating $APP"
35+
$STD /opt/beszel/beszel update
36+
msg_ok "Updated $APP"
37+
38+
msg_info "Starting $APP"
39+
systemctl start beszel-hub
40+
msg_ok "Successfully started $APP"
41+
msg_ok "Update Successful"
3242
exit
3343
}
3444

0 commit comments

Comments
 (0)