Skip to content

Commit c3cca61

Browse files
pve-scripts-local (#8083)
* 'Add new script' * Add rsync to installation dependencies --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: Michel Roegl-Brunner <[email protected]>
1 parent b1bca92 commit c3cca61

File tree

4 files changed

+146
-0
lines changed

4 files changed

+146
-0
lines changed

ct/headers/pve-scripts-local

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
____ _ ________ _____ _ __ __ __
2+
/ __ \ | / / ____/ / ___/__________(_)___ / /______ / / ____ _________ _/ /
3+
/ /_/ / | / / __/______\__ \/ ___/ ___/ / __ \/ __/ ___/_____/ / / __ \/ ___/ __ `/ /
4+
/ ____/| |/ / /__/_____/__/ / /__/ / / / /_/ / /_(__ )_____/ /___/ /_/ / /__/ /_/ / /
5+
/_/ |___/_____/ /____/\___/_/ /_/ .___/\__/____/ /_____/\____/\___/\__,_/_/
6+
/_/

ct/pve-scripts-local.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: michelroegl-brunner
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://www.debian.org/
7+
8+
APP="PVE-Scripts-Local"
9+
var_tags="${var_tags:-pve-scritps-local}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-4096}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /var ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
msg_info "No Update function implementd"
31+
exit
32+
}
33+
34+
start
35+
build_container
36+
description
37+
38+
msg_ok "Completed Successfully!\n"
39+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
40+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
41+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "PVEScriptsLocal",
3+
"slug": "pve-scripts-local",
4+
"categories": [
5+
1
6+
],
7+
"date_created": "2025-10-03",
8+
"type": "ct",
9+
"updateable": false,
10+
"privileged": false,
11+
"interface_port": 3000,
12+
"documentation": "https://github.com/community-scripts/ProxmoxVE-Local",
13+
"config_path": "/opt/PVEScripts-Local/.env",
14+
"website": "https://community-scripts.github.io/ProxmoxVE",
15+
"logo": "https://community-scripts.github.io/ProxmoxVE/logo.png",
16+
"description": "A modern web-based management interface for Proxmox VE (PVE) helper scripts. This tool provides a user-friendly way to discover, download, and execute community-sourced Proxmox scripts locally with real-time terminal output streaming.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/pve-scripts-local.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 4096,
24+
"hdd": 4,
25+
"os": "Debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: michelroegl-brunner
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
7+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
8+
color
9+
verb_ip6
10+
catch_errors
11+
setting_up_container
12+
network_check
13+
update_os
14+
15+
msg_info "Installing Dependencies"
16+
$STD apt-get update
17+
$STD apt-get install -y \
18+
build-essential \
19+
sshpass \
20+
rsync \
21+
expect
22+
msg_ok "Dependencies installed."
23+
24+
NODE_VERSION=22 setup_nodejs
25+
fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local"
26+
27+
msg_info "Installing PVE Scripts local"
28+
cd /opt/ProxmoxVE-Local
29+
$STD npm install
30+
cp .env.example .env
31+
mkdir -p data
32+
chmod 755 data
33+
$STD npm run build
34+
msg_ok "Installed PVE Scripts local"
35+
36+
msg_info "Creating Service"
37+
cat <<EOF >/etc/systemd/system/pvescriptslocal.service
38+
[Unit]
39+
Description=PVEScriptslocal Service
40+
After=network.target
41+
42+
[Service]
43+
WorkingDirectory=/opt/ProxmoxVE-Local
44+
ExecStart=/usr/bin/npm start
45+
Restart=always
46+
RestartSec=10
47+
Environment=NODE_ENV=production
48+
User=root
49+
50+
[Install]
51+
WantedBy=multi-user.target
52+
EOF
53+
54+
systemctl enable -q --now pvescriptslocal
55+
msg_ok "Created Service"
56+
57+
motd_ssh
58+
customize
59+
60+
msg_info "Cleaning up"
61+
$STD apt -y autoremove
62+
$STD apt -y autoclean
63+
$STD apt -y clean
64+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)