1
0
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:
C0pywriting 2025-03-07 20:59:52 +01:00 committed by GitHub
parent 2630c46c24
commit c48111496c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}