mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-06-10 21:26:52 +01:00
+14
-11
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user