Skip to content

Commit 33d6f8b

Browse files
authored
New Script: Beszel (#1619)
* bezel * fix: changed names fix: pointed to proper file * fix: correct install location. * fix: name change * fix: fixed proper catagory * testing * fix: add new tag * update * test * test * update source url * update * update * test * update * reverting changes * fix: added mc back and seprated commands
1 parent 64e14fe commit 33d6f8b

File tree

3 files changed

+135
-0
lines changed

3 files changed

+135
-0
lines changed

ct/beszel.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/usr/bin/env bash
2+
source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) community-scripts ORG
4+
# Author: Michelle Zitzerman (Sinofage)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://beszel.dev/
7+
8+
# App Default Values
9+
APP="Beszel"
10+
var_tags="monitoring"
11+
var_cpu="1"
12+
var_ram="512"
13+
var_disk="5"
14+
var_os="debian"
15+
var_version="12"
16+
var_unprivileged="1"
17+
18+
# App Output & Base Settings
19+
header_info "$APP"
20+
base_settings
21+
22+
# Core
23+
variables
24+
color
25+
catch_errors
26+
27+
function update_script() {
28+
header_info
29+
check_container_storage
30+
check_container_resources
31+
if [[ ! -d /opt/beszel ]]; then
32+
msg_error "No ${APP} Installation Found!"
33+
exit
34+
fi
35+
/opt/beszel/beszel update
36+
msg_error "Ther is currently no automatic update function for ${APP}."
37+
exit
38+
}
39+
40+
start
41+
build_container
42+
description
43+
44+
msg_ok "Completed Successfully!\n"
45+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
46+
echo -e "${INFO}${YW} Access it using the following IP:${CL}"
47+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

install/beszel-install.sh

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: Michelle Zitzerman (Sinofage)
5+
# License: MIT
6+
# https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
7+
8+
source /dev/stdin <<< "$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
msg_info "Installing Dependencies"
17+
$STD apt-get install -y \
18+
curl \
19+
tar \
20+
sudo \
21+
mc
22+
msg_ok "Installed Dependencies"
23+
24+
msg_info "Installing Beszel"
25+
mkdir -p /opt/beszel
26+
curl -sL "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
27+
chmod +x /opt/beszel/beszel
28+
msg_ok "Installed Beszel"
29+
30+
msg_info "Creating Service"
31+
cat <<EOF >/etc/systemd/system/beszel-hub.service
32+
[Unit]
33+
Description=Beszel Hub Service
34+
After=network.target
35+
36+
[Service]
37+
ExecStart=/opt/beszel/beszel serve --http "0.0.0.0:8090"
38+
WorkingDirectory=/opt/beszel
39+
Restart=always
40+
RestartSec=5
41+
42+
[Install]
43+
WantedBy=multi-user.target
44+
EOF
45+
systemctl enable -q --now beszel-hub.service
46+
msg_ok "Created Service"
47+
48+
motd_ssh
49+
customize
50+
51+
msg_info "Cleaning up"
52+
$STD apt-get -y autoremove
53+
$STD apt-get -y autoclean
54+
msg_ok "Cleaned"

json/beszel.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "Beszel",
3+
"slug": "beszel",
4+
"categories": [
5+
9
6+
],
7+
"date_created": "2025-01-20",
8+
"type": "ct",
9+
"updateable": false,
10+
"privileged": false,
11+
"interface_port": 8090,
12+
"documentation": "https://beszel.dev/guide/what-is-beszel",
13+
"website": "https://beszel.dev/",
14+
"logo": "https://beszel.dev/icon.svg",
15+
"description": "A lightweight server monitoring platform that provides Docker statistics, historical data, and alert functions\n ",
16+
"install_methods": [
17+
{
18+
"type": "default",
19+
"script": "ct/beszel.sh",
20+
"resources": {
21+
"cpu": 1,
22+
"ram": 512,
23+
"hdd": 5,
24+
"os": "Debian",
25+
"version": "12"
26+
}
27+
}
28+
],
29+
"default_credentials": {
30+
"username": null,
31+
"password": null
32+
},
33+
"notes": []
34+
}

0 commit comments

Comments
 (0)