Skip to content

Commit c2293b0

Browse files
authored
Merge pull request #6 from community-scripts/sync/proxmoxve-scripts
Sync scripts from ProxmoxVE
2 parents 1633565 + 39c5549 commit c2293b0

9 files changed

Lines changed: 629 additions & 1 deletion

ct/budget-board.sh

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main"
3+
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
4+
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
5+
# Copyright (c) 2021-2026 community-scripts ORG
6+
# Author: Slaviša Arežina (tremor021)
7+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
# Source: https://github.com/teelur/budget-board
9+
10+
APP="Budget-Board"
11+
var_tags="${var_tags:-finance;budget;money}"
12+
var_cpu="${var_cpu:-2}"
13+
var_ram="${var_ram:-2048}"
14+
var_disk="${var_disk:-8}"
15+
var_os="${var_os:-debian}"
16+
var_version="${var_version:-13}"
17+
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
18+
var_unprivileged="${var_unprivileged:-1}"
19+
20+
header_info "$APP"
21+
variables
22+
color
23+
catch_errors
24+
25+
function update_script() {
26+
header_info
27+
check_container_storage
28+
check_container_resources
29+
30+
if [[ ! -d /opt/budget-board ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
35+
if check_for_gh_release "budget-board" "teelur/budget-board"; then
36+
msg_info "Stopping Service"
37+
systemctl stop budget-board
38+
msg_ok "Stopped Service"
39+
40+
create_backup /opt/budget-board/budget-board.env
41+
42+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "budget-board" "teelur/budget-board" "tarball"
43+
44+
restore_backup
45+
46+
msg_info "Rebuilding Backend"
47+
cd /opt/budget-board/server
48+
$STD dotnet restore "BudgetBoard.WebAPI/BudgetBoard.WebAPI.csproj"
49+
export configuration=Release
50+
$STD dotnet publish "BudgetBoard.WebAPI/BudgetBoard.WebAPI.csproj" -c $configuration -o /opt/budget-board/publish /p:UseAppHost=false --no-restore
51+
msg_ok "Rebuilt Backend"
52+
53+
msg_info "Rebuilding Frontend"
54+
cd /opt/budget-board/client
55+
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
56+
$STD yarn install
57+
$STD yarn run build
58+
cp -r dist/. /var/www/html/
59+
msg_ok "Rebuilt Frontend"
60+
61+
msg_info "Starting Service"
62+
systemctl start budget-board
63+
nginx_enable_site budget-board.conf
64+
msg_ok "Started Service"
65+
msg_ok "Updated successfully!"
66+
fi
67+
exit
68+
}
69+
70+
start
71+
build_container
72+
description
73+
74+
msg_ok "Completed Successfully!\n"
75+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
76+
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
77+
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"

ct/haproxy.sh

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main"
3+
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
4+
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
5+
# Copyright (c) 2021-2026 community-scripts ORG
6+
# Author: MickLesk (CanbiZ)
7+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
# Source: https://www.haproxy.org/
9+
10+
APP="HAProxy"
11+
var_tags="${var_tags:-network;proxy}"
12+
var_cpu="${var_cpu:-1}"
13+
var_ram="${var_ram:-512}"
14+
var_disk="${var_disk:-4}"
15+
var_os="${var_os:-debian}"
16+
var_version="${var_version:-13}"
17+
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
18+
var_unprivileged="${var_unprivileged:-1}"
19+
20+
header_info "$APP"
21+
variables
22+
color
23+
catch_errors
24+
25+
function update_script() {
26+
header_info
27+
check_container_storage
28+
check_container_resources
29+
30+
if [[ ! -f /etc/haproxy/haproxy.cfg ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
35+
msg_info "Updating ${APP}"
36+
$STD apt update
37+
$STD apt install -y haproxy
38+
msg_ok "Updated ${APP}"
39+
40+
msg_info "Validating Configuration"
41+
if ! $STD haproxy -c -f /etc/haproxy/haproxy.cfg; then
42+
msg_error "Configuration is invalid - service not restarted"
43+
exit
44+
fi
45+
msg_ok "Validated Configuration"
46+
47+
msg_info "Restarting Service"
48+
systemctl restart haproxy
49+
msg_ok "Restarted Service"
50+
msg_ok "Updated successfully!"
51+
exit
52+
}
53+
54+
start
55+
build_container
56+
description
57+
58+
msg_ok "Completed Successfully!\n"
59+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
60+
echo -e "${INFO}${YW}Statistics page:${CL}"
61+
echo -e "${GATEWAY}${BGN}http://${IP}:8404${CL}"
62+
echo -e "${INFO}${YW}The generated stats password is in /etc/haproxy/haproxy.cfg${CL}"

ct/maintainerr.sh

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main"
3+
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
4+
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
5+
# Copyright (c) 2021-2026 community-scripts ORG
6+
# Author: Karolis Stanelis (kstanelis)
7+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
# Source: https://github.com/Maintainerr/Maintainerr
9+
10+
APP="Maintainerr"
11+
var_tags="${var_tags:-media;arr;cleanup}"
12+
var_cpu="${var_cpu:-4}"
13+
var_ram="${var_ram:-8192}"
14+
var_disk="${var_disk:-24}"
15+
var_os="${var_os:-debian}"
16+
var_version="${var_version:-13}"
17+
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
18+
var_unprivileged="${var_unprivileged:-1}"
19+
20+
header_info "$APP"
21+
variables
22+
color
23+
catch_errors
24+
25+
function update_script() {
26+
header_info
27+
check_container_storage
28+
check_container_resources
29+
30+
if [[ ! -d /opt/maintainerr ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
35+
if check_for_gh_release "maintainerr" "Maintainerr/Maintainerr"; then
36+
msg_info "Stopping Service"
37+
systemctl stop maintainerr
38+
msg_ok "Stopped Service"
39+
40+
create_backup /opt/data /opt/maintainerr/.env
41+
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "maintainerr" "Maintainerr/Maintainerr" "tarball" "latest" "/opt/maintainerr"
42+
restore_backup
43+
44+
msg_info "Rebuilding Maintainerr (Patience)"
45+
cd /opt/maintainerr
46+
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
47+
export NODE_OPTIONS="--max-old-space-size=4096"
48+
$STD corepack enable
49+
$STD corepack prepare yarn@4.11.0 --activate
50+
$STD yarn config set enableTelemetry 0
51+
$STD yarn install --network-timeout 300000
52+
$STD yarn turbo build --concurrency=1
53+
cp -r apps/ui/dist apps/server/dist/ui
54+
cp -r apps/server/assets apps/server/dist/assets
55+
find apps/server/dist/ui -type f -not -path '*/node_modules/*' -print0 | xargs -0 sed -i "s,/__PATH_PREFIX__,,g"
56+
$STD yarn workspaces focus --all --production
57+
rm -rf /opt/maintainerr/.yarn/cache /opt/maintainerr/.turbo /opt/maintainerr/apps/ui
58+
sed -i '/^npm_package_version=/d;/^VERSION_TAG=/d' /opt/maintainerr/.env
59+
{
60+
echo "VERSION_TAG=stable"
61+
echo "npm_package_version=$(cat ~/.maintainerr)"
62+
} >>/opt/maintainerr/.env
63+
msg_ok "Rebuilt Maintainerr"
64+
65+
msg_info "Starting Service"
66+
systemctl start maintainerr
67+
msg_ok "Started Service"
68+
msg_ok "Updated Successfully!"
69+
fi
70+
exit
71+
}
72+
73+
start
74+
build_container
75+
description
76+
77+
msg_ok "Completed Successfully!\n"
78+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
79+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
80+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6246${CL}"

ct/pyload.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/usr/bin/env bash
2+
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main"
3+
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
4+
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
5+
# Copyright (c) 2021-2026 community-scripts ORG
6+
# Author: MickLesk (CanbiZ)
7+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
8+
# Source: https://github.com/pyload/pyload
9+
10+
APP="pyLoad"
11+
var_tags="${var_tags:-downloader}"
12+
var_cpu="${var_cpu:-2}"
13+
var_ram="${var_ram:-2048}"
14+
var_disk="${var_disk:-16}"
15+
var_os="${var_os:-debian}"
16+
var_version="${var_version:-13}"
17+
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
18+
var_unprivileged="${var_unprivileged:-1}"
19+
20+
header_info "$APP"
21+
variables
22+
color
23+
catch_errors
24+
25+
function update_script() {
26+
header_info
27+
check_container_storage
28+
check_container_resources
29+
30+
if [[ ! -d /opt/pyload ]]; then
31+
msg_error "No ${APP} Installation Found!"
32+
exit
33+
fi
34+
35+
msg_info "Stopping Service"
36+
systemctl stop pyload
37+
msg_ok "Stopped Service"
38+
39+
msg_info "Updating ${APP}"
40+
$STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]"
41+
msg_ok "Updated ${APP}"
42+
43+
msg_info "Starting Service"
44+
systemctl start pyload
45+
msg_ok "Started Service"
46+
msg_ok "Updated successfully!"
47+
exit
48+
}
49+
50+
start
51+
build_container
52+
description
53+
54+
msg_ok "Completed Successfully!\n"
55+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
56+
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
57+
echo -e "${GATEWAY}${BGN}http://${IP}:8000${CL}"

0 commit comments

Comments
 (0)