mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-03-08 13:19:05 +00:00
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>
This commit is contained in:
parent
2630c46c24
commit
c48111496c
14
ct/beszel.sh
14
ct/beszel.sh
@ -27,8 +27,18 @@ function update_script() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
/opt/beszel/beszel update
|
msg_info "Stopping $APP"
|
||||||
msg_error "Currently we don't provide an update function for this ${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
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user