Refactor: Beszel (#10195)

* Refactor

* Update

* Update

* Update
This commit is contained in:
Slaviša Arežina
2025-12-23 14:19:03 +01:00
committed by GitHub
parent e819bf69f2
commit f6f4c3411c
2 changed files with 15 additions and 16 deletions
+14 -11
View File
@@ -27,19 +27,22 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Stopping Service"
systemctl stop beszel-hub
msg_info "Stopped Service"
msg_info "Updating $APP" if check_for_gh_release "beszel" "henrygd/beszel"; then
$STD /opt/beszel/beszel update msg_info "Stopping Service"
sleep 2 && chmod +x /opt/beszel/beszel systemctl stop beszel-hub
msg_ok "Updated $APP" msg_info "Stopped Service"
msg_info "Starting Service" msg_info "Updating Beszel"
systemctl start beszel-hub $STD /opt/beszel/beszel update
msg_ok "Successfully started $APP" sleep 2 && chmod +x /opt/beszel/beszel
msg_ok "Updated successfully!" msg_ok "Updated Beszel"
msg_info "Starting Service"
systemctl start beszel-hub
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
exit exit
} }
+1 -5
View File
@@ -13,11 +13,7 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Installing Beszel" fetch_and_deploy_gh_release "beszel" "henrygd/beszel" "prebuild" "latest" "/opt/beszel" "beszel_linux_amd64.tar.gz"
mkdir -p /opt/beszel
curl -fsSL "https://github.com/henrygd/beszel/releases/latest/download/beszel_$(uname -s)_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/armv6l/arm/' -e 's/armv7l/arm/' -e 's/aarch64/arm64/').tar.gz" | tar -xz -O beszel | tee /opt/beszel/beszel >/dev/null
chmod +x /opt/beszel/beszel
msg_ok "Installed Beszel"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/beszel-hub.service cat <<EOF >/etc/systemd/system/beszel-hub.service