From fd46bef697776682980d32d7603690dc2fbdf6cd Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Sat, 18 Jan 2025 00:04:04 +1000 Subject: [PATCH] add beszel hub script --- ct/beszel-hub.sh | 46 +++++++++++++++++++++++++++++++++++ install/beszel-hub-install.sh | 39 +++++++++++++++++++++++++++++ json/beszel-hub.json | 35 ++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 ct/beszel-hub.sh create mode 100644 install/beszel-hub-install.sh create mode 100644 json/beszel-hub.json diff --git a/ct/beszel-hub.sh b/ct/beszel-hub.sh new file mode 100644 index 000000000..32857894f --- /dev/null +++ b/ct/beszel-hub.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func) +# Copyright (c) 2021-2025 tteck +# Author: tteck (tteckster) +# License: MIT | https://github.com/asylumexp/Proxmox/raw/main/LICENSE +# Source: https://runtipi.io/ + +# App Default Values +APP="Beszel Hub" +var_tags="os" +var_cpu="2" +var_ram="2048" +var_disk="8" +var_os="debian" +var_version="12" +var_unprivileged="1" + +# App Output & Base Settings +header_info "$APP" +base_settings + +# Core +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/beszel ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + cd /opt/beszel && ./beszel update + exit +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" \ No newline at end of file diff --git a/install/beszel-hub-install.sh b/install/beszel-hub-install.sh new file mode 100644 index 000000000..142d79e38 --- /dev/null +++ b/install/beszel-hub-install.sh @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2024 tteck +# Author: tteck (tteckster) +# License: MIT +# https://github.com/tteck/Proxmox/raw/main/LICENSE + +source /dev/stdin <<< "$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt-get install -y curl +$STD apt-get install -y sudo +$STD apt-get install -y mc +$STD apt-get install -y wget +$STD apt-get install -y openssh-server +msg_ok "Installed Dependencies" + +msg_info "Installing Beszel Hub" +cd /opt +curl -sL https://raw.githubusercontent.com/henrygd/beszel/main/supplemental/scripts/install-hub.sh -o install.sh +chmod +x install.sh +$STD ./install.sh +chmod 666 /opt/runtipi/state/settings.json +msg_ok "Installed Beszel Hub" + +motd_ssh +customize + +msg_info "Cleaning up" +rm /opt/install.sh +$STD apt-get -y autoremove +$STD apt-get -y autoclean +msg_ok "Cleaned" diff --git a/json/beszel-hub.json b/json/beszel-hub.json new file mode 100644 index 000000000..27be35691 --- /dev/null +++ b/json/beszel-hub.json @@ -0,0 +1,35 @@ +{ + "name": "Beszel Hub", + "slug": "beszel-hub", + "categories": [ + 8 + ], + "date_created": "2025-01-18", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 8090, + "documentation": null, + "website": "https://beszel.dev", + "logo": "https://runtipi.io/_next/static/media/tipi.c0b9b68e.png", + "description": "Beszel is a lightweight server monitoring platform that includes Docker statistics, historical data, and alert functions.", + "install_methods": [ + { + "type": "default", + "script": "ct/beszel-hub.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 8, + "os": "debian", + "version": "12" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [], + "status": "✅" +} \ No newline at end of file