Skip to content

Commit

Permalink
add beszel hub script
Browse files Browse the repository at this point in the history
  • Loading branch information
asylumexp committed Jan 17, 2025
1 parent b18b11b commit fd46bef
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
46 changes: 46 additions & 0 deletions ct/beszel-hub.sh
Original file line number Diff line number Diff line change
@@ -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}"
39 changes: 39 additions & 0 deletions install/beszel-hub-install.sh
Original file line number Diff line number Diff line change
@@ -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"
35 changes: 35 additions & 0 deletions json/beszel-hub.json
Original file line number Diff line number Diff line change
@@ -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": ""
}

0 comments on commit fd46bef

Please sign in to comment.