Compare commits

..
Author SHA1 Message Date
MickLesk 07b86d8f4a n8n: update with an empty npm cache and the service stopped
Reinstalling n8n over itself made npm peak at 3.9 GB with a warm cache and
1.4 GB with an empty one; with n8n still running beside it a 2 GB container
was killed (exit 137, six updates in five days). The update now stops n8n
and clears the npm cache first.
2026-12-02 11:34:53 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] e7eaf9508e Update CHANGELOG.md (#19261)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 10:11:44 +00:00
deb17387c8 [tools.update-lxcs] feat: optional CLEAN_CACHE to remove downloaded packages after each update (#19192)
Co-authored-by: Matt Stein <matt@ninestone.ca>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:11:03 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 073eb20c52 Update CHANGELOG.md (#19260)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 09:58:27 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] b4b9a809e8 Update CHANGELOG.md (#19259)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 09:58:07 +00:00
CanbiZ (MickLesk) 4e338af9e9 Sure: set SECRET_KEY_BASE whatever the example holds (#19258)
Sure 2026.11.30 ships .env.example with an empty SECRET_KEY_BASE instead of
secret-value, so the substitution matched nothing, Rails had no key and
db:prepare stopped the service from starting. Every install since the
release failed (6 of 6).
2026-12-02 10:57:53 +01:00
CanbiZ (MickLesk) bdaeb11818 Pterodactyl Panel: switch PHP with setup_php (#19255)
The update moved older installs to PHP 8.4 by hand and failed in apt for
every one of them (4 runs on two hosts in five days). setup_php does the
same switch and carries the modules, the Apache module and FPM over;
tested from PHP 8.3 with Apache and FPM on Debian 12.
2026-12-02 10:57:42 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 199447191e Update CHANGELOG.md (#19257)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 10:57:40 +01:00
CanbiZ (MickLesk) a5e47e93e3 Frigate: fetch the Intel key for install_deps with retries (#19253)
install_deps.sh downloads Intel's key once with wget; when Intel's CDN
answered with no key, gpg found no OpenPGP data and the install stopped at
the HailoRT step (13 runs in five days). It now gets the key from
download_gpg_key, as the media driver build already does.
2026-12-02 10:57:32 +01:00
CanbiZ (MickLesk) e426f031ba ERPNext: raise the default RAM to 6 GB (#19252)
Frappe 16.60 builds its new Studio and Flow frontends with Vite inside
bench build. The parent esbuild process keeps its memory while they run,
so the build peaks at 3.9 GB on a 4 GB container and fails when the
kernel kills it.
2026-12-02 10:57:13 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 78f41464b6 Update CHANGELOG.md (#19256)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 09:57:02 +00:00
CanbiZ (MickLesk) 9052bfe253 Aurral: build without the exact Node minor check (#19251)
Aurral 3.2.0 wants node 26.13.x with engineStrict in pnpm-workspace.yaml.
The install already skipped that check, but pnpm run checks again, so every
install on NodeSource's 26.14.0 failed at the frontend build.
2026-12-02 10:56:51 +01:00
CanbiZ (MickLesk) 74c261575b Dreeve: follow FrankenPHP releases for PHP 8.6 (#19250)
Dreeve 5.9.3 requires PHP 8.6, but FrankenPHP was pinned to 1.12.7, which
ships PHP 8.5, so composer install failed. The pin worked around the argv
bug in 1.13.0, fixed in 1.13.1; 1.14.0 ships PHP 8.6. The update never
touched FrankenPHP, so existing installs would have failed the same way on
their next Dreeve update; it now updates FrankenPHP first.
2026-12-02 10:56:35 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 07b493e196 Update CHANGELOG.md (#19254)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 09:56:23 +00:00
CanbiZ (MickLesk) 41113474b4 cross-seed: reinstall when a Node.js upgrade broke better-sqlite3 (#19249)
The update moved Node from 24 to 26 and then ran cross-seed --version to
read the installed version, which failed on better-sqlite3 built for the
old ABI. The version now comes from package.json, and a cross-seed that no
longer starts is reinstalled at the same version.
2026-12-02 10:56:18 +01:00
CanbiZ (MickLesk) 19e5a7d99f Dispatcharr: consume the plugins and dvr queues like upstream (#19248)
Since 0.34 plugin actions go to a plugins queue, which no worker read, so
every plugin action timed out after 55 s. Recordings go to dvr, which older
installs never consumed. The main worker now reads celery,plugins and a
second thread-pool worker reads dvr, as upstream's images do. The update
migrates existing installs without waiting for a new release, since it
restored the old start script on every update.
2026-12-02 10:55:48 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 648bd56082 Update CHANGELOG.md (#19247)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 06:46:49 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] c0e8460b14 Update CHANGELOG.md (#19246)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-02 06:46:19 +00:00
push-app-to-main[bot] c41ba67552 Add docling-serve (ct) (#19237)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-12-02 07:46:06 +01:00
push-app-to-main[bot] 521d244fce Add kopia (ct) (#19238)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-12-02 07:45:49 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 75e19a0b92 Update CHANGELOG.md (#19245)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-01 20:38:23 +00:00
push-app-to-main[bot] 7184c758a4 Add xwiki (ct) (#19239)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-12-01 21:37:41 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 9104918470 Update CHANGELOG.md (#19244)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-01 20:28:59 +00:00
push-app-to-main[bot]andCanbiZ b0fb363928 OpenWA (#19236)
* Add openwa (ct)

* Change default value of var_arm64 to 'yes'

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-12-01 21:28:21 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 26aa7b5f77 Update CHANGELOG.md (#19242)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-01 19:20:10 +00:00
push-app-to-main[bot]andCanbiZ 119617d428 Alexandrie (#19240)
* Add alexandrie (ct)

* Set default value for var_arm64 to 'yes'

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-12-01 20:19:40 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] d53877ae67 Update CHANGELOG.md (#19241)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-12-01 19:01:09 +00:00
push-app-to-main[bot] f4f3bfb2da Add netbird-server (vm) (#19215)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-12-01 20:00:34 +01:00
25 changed files with 1430 additions and 36 deletions

No files matched your search

+40
View File
@@ -590,14 +590,54 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-12-02
### 🆕 New Scripts
- Docling-Serve [@MickLesk](https://github.com/MickLesk) ([#19237](https://github.com/community-scripts/ProxmoxVE/pull/19237))
- Kopia [@MickLesk](https://github.com/MickLesk) ([#19238](https://github.com/community-scripts/ProxmoxVE/pull/19238))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Pterodactyl Panel: switch PHP with setup_php [@MickLesk](https://github.com/MickLesk) ([#19255](https://github.com/community-scripts/ProxmoxVE/pull/19255))
- Frigate: fetch the Intel key for install_deps with retries [@MickLesk](https://github.com/MickLesk) ([#19253](https://github.com/community-scripts/ProxmoxVE/pull/19253))
- ERPNext: raise the default RAM to 6 GB [@MickLesk](https://github.com/MickLesk) ([#19252](https://github.com/community-scripts/ProxmoxVE/pull/19252))
- Aurral: build without the exact Node minor check [@MickLesk](https://github.com/MickLesk) ([#19251](https://github.com/community-scripts/ProxmoxVE/pull/19251))
- Dreeve: follow FrankenPHP releases for PHP 8.6 [@MickLesk](https://github.com/MickLesk) ([#19250](https://github.com/community-scripts/ProxmoxVE/pull/19250))
- cross-seed: reinstall when a Node.js upgrade broke better-sqlite3 [@MickLesk](https://github.com/MickLesk) ([#19249](https://github.com/community-scripts/ProxmoxVE/pull/19249))
- Dispatcharr: consume the plugins and dvr queues like upstream [@MickLesk](https://github.com/MickLesk) ([#19248](https://github.com/community-scripts/ProxmoxVE/pull/19248))
- #### 🔧 Refactor
- Sure: set SECRET_KEY_BASE whatever the example holds [@MickLesk](https://github.com/MickLesk) ([#19258](https://github.com/community-scripts/ProxmoxVE/pull/19258))
### 🧰 Tools
- #### ✨ New Features
- [tools.update-lxcs] feat: optional CLEAN_CACHE to remove downloaded packages after each update [@mattstein111](https://github.com/mattstein111) ([#19192](https://github.com/community-scripts/ProxmoxVE/pull/19192))
## 2026-12-01
### 🆕 New Scripts
- XWiki [@freakms](https://github.com/freakms) ([#19239](https://github.com/community-scripts/ProxmoxVE/pull/19239))
- OpenWA [@MickLesk](https://github.com/MickLesk) ([#19236](https://github.com/community-scripts/ProxmoxVE/pull/19236))
- Alexandrie [@MickLesk](https://github.com/MickLesk) ([#19240](https://github.com/community-scripts/ProxmoxVE/pull/19240))
- NetBird Server VM ([#19215](https://github.com/community-scripts/ProxmoxVE/pull/19215))
### 🚀 Updated Scripts
- #### 💥 Breaking Changes
- DroppedNeedle: build and update the Rust v3 [@MickLesk](https://github.com/MickLesk) ([#18735](https://github.com/community-scripts/ProxmoxVE/pull/18735))
### 💾 Core
- VM's: let a Cloud-Init VM be reached by SSH key only [@MickLesk](https://github.com/MickLesk) ([core#328](https://github.com/community-scripts/core/pull/328))
## 2026-11-30
### 🆕 New Scripts
+81
View File
@@ -0,0 +1,81 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Smaug6739/Alexandrie
APP="Alexandrie"
var_tags="${var_tags:-notes;markdown;knowledge-base}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/alexandrie ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "rustfs" "rustfs/rustfs"; then
msg_info "Stopping RustFS"
systemctl stop alexandrie-backend rustfs
msg_ok "Stopped RustFS"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "rustfs" "rustfs/rustfs" "prebuild" "latest" "/opt/rustfs" "rustfs-linux-$(arch_resolve x86_64 aarch64)-gnu-*.zip"
chmod +x /opt/rustfs/rustfs
msg_info "Starting RustFS"
systemctl start rustfs alexandrie-backend
msg_ok "Started RustFS"
fi
if check_for_gh_release "alexandrie" "Smaug6739/Alexandrie"; then
msg_info "Stopping Alexandrie"
systemctl stop alexandrie-frontend alexandrie-backend
msg_ok "Stopped Alexandrie"
setup_go
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "alexandrie" "Smaug6739/Alexandrie" "tarball"
msg_info "Building Alexandrie"
cd /opt/alexandrie/backend
CGO_ENABLED=0 $STD go build -o alexandrie .
$STD go clean -cache -modcache
cd /opt/alexandrie/frontend
$STD bun install --frozen-lockfile
NODE_ENV=production $STD bun run build
rm -rf node_modules .nuxt ~/.bun/install/cache
msg_ok "Built Alexandrie"
msg_info "Starting Alexandrie"
systemctl start alexandrie-backend alexandrie-frontend
msg_ok "Started Alexandrie"
msg_ok "Updated successfully!"
fi
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 "${GATEWAY}${BGN}http://${IP}${CL}"
+1 -1
View File
@@ -46,7 +46,7 @@ function update_script() {
export VITE_GITHUB_REPO="lklynet/aurral"
export VITE_RELEASE_CHANNEL="stable"
$STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend
$STD pnpm --filter aurral-frontend run build
$STD pnpm --config.engine-strict=false --filter aurral-frontend run build
mkdir -p /opt/aurral_data
cat <<EOF >/opt/aurral/aurral.env
NODE_ENV=production
+45 -1
View File
@@ -117,9 +117,52 @@ EOF
msg_ok "Compiled and Installed Comskip"
fi
if ! grep -qs -- "-Q celery,plugins" /opt/dispatcharr/start-celery.sh; then
msg_info "Migrating Celery Workers"
cat <<'EOF' >/opt/dispatcharr/start-celery.sh
#!/usr/bin/env bash
cd /opt/dispatcharr
set -a
source .env
set +a
exec uv run celery -A dispatcharr worker -l info -Q celery,plugins -n default@%h --autoscale="${CELERY_MAX_WORKERS:-6},${CELERY_MIN_WORKERS:-1}"
EOF
cat <<'EOF' >/opt/dispatcharr/start-celery-dvr.sh
#!/usr/bin/env bash
cd /opt/dispatcharr
set -a
source .env
set +a
exec uv run celery -A dispatcharr worker -l info -Q dvr -n dvr@%h --pool=threads --concurrency=20
EOF
chmod +x /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celery-dvr.sh
cat <<EOF >/etc/systemd/system/dispatcharr-celery-dvr.service
[Unit]
Description=Dispatcharr Celery DVR Worker
After=network.target redis-server.service
Requires=dispatcharr.service
[Service]
Type=simple
WorkingDirectory=/opt/dispatcharr
ExecStart=/opt/dispatcharr/start-celery-dvr.sh
Restart=on-failure
RestartSec=10
User=root
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable -q --now dispatcharr-celery-dvr
systemctl restart dispatcharr-celery
msg_ok "Migrated Celery Workers"
fi
if check_for_gh_release "Dispatcharr" "Dispatcharr/Dispatcharr"; then
msg_info "Stopping Services"
systemctl stop dispatcharr-celery
systemctl stop dispatcharr-celery-dvr
systemctl stop dispatcharr-celerybeat
systemctl stop dispatcharr-daphne
systemctl stop dispatcharr
@@ -130,7 +173,7 @@ EOF
if [[ -f /opt/dispatcharr/start-gunicorn.sh ]]; then
rm -f /opt/dispatcharr/start-gunicorn.sh
fi
create_backup /opt/dispatcharr/.env /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
create_backup /opt/dispatcharr/.env /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celery-dvr.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
if [[ -f /opt/dispatcharr/.env ]]; then
set -o allexport
source /opt/dispatcharr/.env
@@ -213,6 +256,7 @@ EOF
msg_info "Starting Services"
systemctl start dispatcharr
systemctl start dispatcharr-celery
systemctl start dispatcharr-celery-dvr
systemctl start dispatcharr-celerybeat
systemctl start dispatcharr-daphne
msg_ok "Started Services"
+70
View File
@@ -0,0 +1,70 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/docling-project/docling-serve
APP="Docling-Serve"
var_tags="${var_tags:-ai;documents;ocr}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_docling_api_key="${var_docling_api_key:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/docling-serve ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "docling-serve" "docling-project/docling-serve"; then
msg_info "Stopping Docling Serve"
systemctl stop docling-serve
msg_ok "Stopped Docling Serve"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Docling Serve"
$STD uv pip install --upgrade --python /opt/docling-serve/.venv/bin/python --torch-backend cpu "docling-serve[rapidocr,tesserocr]==${CHECK_UPDATE_RELEASE#v}"
cat <<EOF >~/.docling-serve
${CHECK_UPDATE_RELEASE#v}
EOF
msg_ok "Updated Docling Serve"
msg_info "Updating Docling Models"
$STD /opt/docling-serve/.venv/bin/docling-tools models download -o /opt/docling-serve_data/models layout tableformer picture_classifier rapidocr
msg_ok "Updated Docling Models"
msg_info "Starting Docling Serve"
systemctl start docling-serve
msg_ok "Started Docling Serve"
msg_ok "Updated successfully!"
fi
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 "${GATEWAY}${BGN}http://${IP}:5001${CL}"
echo -e "${INFO}${YW}The API key is DOCLING_SERVE_API_KEY in /opt/docling-serve_data/.env${CL}"
+12
View File
@@ -31,6 +31,18 @@ function update_script() {
exit
fi
if check_for_gh_release "frankenphp" "php/frankenphp"; then
msg_info "Stopping Service"
systemctl stop dreeve
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
msg_info "Starting Service"
systemctl start dreeve
msg_ok "Started Service"
fi
if check_for_gh_release "dreeve" "dreeveapp/dreeve"; then
msg_info "Stopping Service"
systemctl stop dreeve
+1 -1
View File
@@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
APP="ERPNext"
var_tags="${var_tags:-erp;business;accounting}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_ram="${var_ram:-6144}"
var_disk="${var_disk:-20}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
+60
View File
@@ -0,0 +1,60 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kopia/kopia
APP="Kopia"
var_tags="${var_tags:-backup}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_kopia_password="${var_kopia_password:-}"
export var_kopia_repo_password="${var_kopia_repo_password:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/kopia_data/.env ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "kopia" "kopia/kopia"; then
msg_info "Stopping Kopia"
systemctl stop kopia
msg_ok "Stopped Kopia"
fetch_and_deploy_gh_release "kopia" "kopia/kopia" "binary" "latest" "" "kopia_*_linux_$(arch_resolve "amd64" "arm64").deb"
msg_info "Starting Kopia"
systemctl start kopia
msg_ok "Started Kopia"
msg_ok "Updated successfully!"
fi
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 "${GATEWAY}${BGN}https://${IP}:51515${CL}"
echo -e "${INFO}${YW}Credentials are stored in /opt/kopia_data/.env${CL}"
+4 -1
View File
@@ -49,8 +49,11 @@ EOF
# n8n-nodes-base 2.46.0 pins both @napi-rs/canvas musl binaries as hard
# dependencies, which no os/cpu/libc combination can satisfy. Drop --force
# once upstream makes them optional again.
# npm unpacking n8n from a warm cache peaks at 3.9 GB, from an empty one at 1.4 GB.
systemctl stop n8n
$STD npm cache clean --force
$STD npm install -g n8n@latest --force
systemctl restart n8n
systemctl start n8n
msg_ok "Updated n8n"
msg_ok "Updated successfully!"
exit
+75
View File
@@ -0,0 +1,75 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/rmyndharis/OpenWA
APP="OpenWA"
var_tags="${var_tags:-whatsapp;messaging;api}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_api_key="${var_api_key:-}"
header_info "$APP"
variables
color
catch_errors
if [[ -n "$var_api_key" && ${#var_api_key} -lt 32 ]]; then
msg_error "var_api_key must be at least 32 characters long."
exit 1
fi
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/openwa ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "openwa" "rmyndharis/OpenWA"; then
msg_info "Stopping OpenWA"
systemctl stop openwa
msg_ok "Stopped OpenWA"
NODE_VERSION="22" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openwa" "rmyndharis/OpenWA" "tarball"
msg_info "Building OpenWA"
cd /opt/openwa
export PUPPETEER_SKIP_DOWNLOAD=true
$STD npm ci
$STD npm run build
$STD npm run dashboard:build
$STD npm prune --omit=dev
rm -rf dashboard/node_modules ~/.npm
msg_ok "Built OpenWA"
msg_info "Starting OpenWA"
systemctl start openwa
msg_ok "Started OpenWA"
msg_ok "Updated successfully!"
fi
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 "${GATEWAY}${BGN}http://${IP}:2785${CL}"
echo -e "${INFO}${YW}Admin API key: API_MASTER_KEY in /opt/openwa_data/.env${CL}"
+1 -23
View File
@@ -30,29 +30,7 @@ function update_script() {
exit
fi
setup_mariadb
CURRENT_PHP=$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2)
if [[ "$CURRENT_PHP" != "8.4" ]]; then
msg_info "Migrating PHP $CURRENT_PHP to 8.4"
$STD curl -fsSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb
$STD sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
cat <<EOF >/etc/apt/sources.list.d/php.sources
Types: deb
URIs: https://packages.sury.org/php/
Suites: $(lsb_release -sc)
Components: main
Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg
EOF
apt_update_safe
$STD apt remove -y php"${CURRENT_PHP//./}"*
$STD apt install -y \
php8.4 \
php8.4-{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,fpm} \
libapache2-mod-php8.4
msg_ok "Migrated PHP $CURRENT_PHP to 8.4"
fi
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql" setup_php
if [[ -f /opt/${APP}_version.txt ]]; then
mv /opt/"${APP}_version.txt" ~/.pterodactyl-panel
+90
View File
@@ -0,0 +1,90 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: freakms
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.xwiki.org
APP="XWiki"
var_tags="${var_tags:-wiki}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-16}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_arm64="${var_arm64:-no}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /etc/xwiki/xwiki.cfg ]]; then
msg_error "No XWiki Installation Found!"
exit
fi
apt_update_safe
if ! apt list --upgradable 2>/dev/null | grep -q '^xwiki-'; then
msg_ok "XWiki is already up to date"
exit 0
fi
echo
msg_warn "The package update may include config file changes."
echo -e "${TAB}${YW}How do you want to handle /etc/xwiki?${CL}"
echo -e "${TAB} 1) Keep your current config"
echo -e "${TAB} 2) Install the new package maintainer's config"
if [[ "${PHS_SILENT:-0}" == "1" ]]; then
CONFIG_CHOICE="1"
else
read -rp " Choose [1/2] (default: 1): " -t 60 CONFIG_CHOICE || CONFIG_CHOICE="1"
fi
[[ -z "$CONFIG_CHOICE" ]] && CONFIG_CHOICE="1"
msg_info "Stopping XWiki"
systemctl stop tomcat10
msg_ok "Stopped XWiki"
if [[ "$CONFIG_CHOICE" == "2" ]]; then
BACKUP_DIR="/opt/xwiki_config_$(date +%Y%m%d%H%M)" create_backup /etc/xwiki
DPKG_CONF_OPT="--force-confnew"
else
create_backup /etc/xwiki
DPKG_CONF_OPT="--force-confold"
fi
msg_info "Updating XWiki"
$STD apt install -y --only-upgrade -o Dpkg::Options::="$DPKG_CONF_OPT" \
xwiki-common xwiki-pgsql-common xwiki-tomcat10-common xwiki-tomcat10-pgsql
msg_ok "Updated XWiki"
if [[ "$CONFIG_CHOICE" == "2" ]]; then
msg_warn "New package config installed. Your previous config is in /opt/xwiki_config_*/files/etc/xwiki"
else
restore_backup
fi
msg_info "Starting XWiki"
systemctl start tomcat10
msg_ok "Started XWiki"
msg_ok "Updated successfully!"
exit 0
}
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}:8080/xwiki${CL}"
+182
View File
@@ -0,0 +1,182 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/Smaug6739/Alexandrie
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y nginx
msg_ok "Installed Dependencies"
setup_go
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
setup_mariadb
MARIADB_DB_NAME="alexandrie" MARIADB_DB_USER="alexandrie" MARIADB_DB_CREDS_FILE="/dev/null" setup_mariadb_db
fetch_and_deploy_gh_release "rustfs" "rustfs/rustfs" "prebuild" "latest" "/opt/rustfs" "rustfs-linux-$(arch_resolve x86_64 aarch64)-gnu-*.zip"
chmod +x /opt/rustfs/rustfs
fetch_and_deploy_gh_release "alexandrie" "Smaug6739/Alexandrie" "tarball"
msg_info "Building Alexandrie Backend"
cd /opt/alexandrie/backend
CGO_ENABLED=0 $STD go build -o alexandrie .
$STD go clean -cache -modcache
msg_ok "Built Alexandrie Backend"
msg_info "Building Alexandrie Frontend"
cd /opt/alexandrie/frontend
$STD bun install --frozen-lockfile
NODE_ENV=production $STD bun run build
rm -rf node_modules .nuxt ~/.bun/install/cache
msg_ok "Built Alexandrie Frontend"
msg_info "Configuring Alexandrie"
mkdir -p /opt/alexandrie_data/storage
S3_ACCESS_KEY=$(random_password 20)
S3_SECRET_KEY=$(random_password 40)
cat <<EOF >/opt/alexandrie_data/.env
BACKEND_PORT=8201
GIN_MODE=release
JWT_SECRET=$(random_password 64)
FRONTEND_URL=http://${LOCAL_IP}
COOKIE_DOMAIN=
ALLOW_UNSECURE=true
CONFIG_DISABLE_SIGNUP=false
CONFIG_DISABLE_NATIVE_LOGIN=false
DATABASE_HOST=127.0.0.1
DATABASE_PORT=3306
DATABASE_NAME=${MARIADB_DB_NAME}
DATABASE_USER=${MARIADB_DB_USER}
DATABASE_PASSWORD=${MARIADB_DB_PASS}
MINIO_ENDPOINT=127.0.0.1:9000
MINIO_PUBLIC_URL=http://${LOCAL_IP}
MINIO_SECURE=false
MINIO_ACCESSKEY=${S3_ACCESS_KEY}
MINIO_SECRETKEY=${S3_SECRET_KEY}
MINIO_BUCKET=alexandrie
SMTP_HOST=
SMTP_MAIL=
SMTP_MAIL_FROM=
SMTP_PASSWORD=
NUXT_PUBLIC_BASE_API=http://${LOCAL_IP}
NUXT_PUBLIC_BASE_CDN=http://${LOCAL_IP}
NUXT_PUBLIC_BASE_URL=http://${LOCAL_IP}
NUXT_PUBLIC_CDN_ENDPOINT=/alexandrie/
NUXT_PUBLIC_CONFIG_DISABLE_SIGNUP_PAGE=false
NUXT_PUBLIC_CONFIG_DISABLE_LANDING_PAGE=false
RUSTFS_ACCESS_KEY=${S3_ACCESS_KEY}
RUSTFS_SECRET_KEY=${S3_SECRET_KEY}
RUSTFS_VOLUMES=/opt/alexandrie_data/storage
RUSTFS_ADDRESS=127.0.0.1:9000
RUSTFS_CONSOLE_ENABLE=false
RUSTFS_OBS_LOGGER_LEVEL=error
EOF
chmod 600 /opt/alexandrie_data/.env
cat <<EOF >/etc/nginx/sites-available/alexandrie
server {
listen 80;
server_name _;
client_max_body_size 1G;
location /api/ {
proxy_pass http://127.0.0.1:8201;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
location ~ ^/alexandrie(-backups)?/ {
proxy_pass http://127.0.0.1:9000;
proxy_set_header Host \$host;
proxy_buffering off;
}
location / {
proxy_pass http://127.0.0.1:8200;
proxy_http_version 1.1;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
}
EOF
nginx_enable_site "alexandrie"
msg_ok "Configured Alexandrie"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/rustfs.service
[Unit]
Description=RustFS Object Storage for Alexandrie
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/alexandrie_data
EnvironmentFile=/opt/alexandrie_data/.env
ExecStart=/opt/rustfs/rustfs
Restart=on-failure
RestartSec=5
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/alexandrie-backend.service
[Unit]
Description=Alexandrie Backend
After=network-online.target mariadb.service rustfs.service
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/alexandrie/backend
EnvironmentFile=/opt/alexandrie_data/.env
ExecStart=/opt/alexandrie/backend/alexandrie
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/alexandrie-frontend.service
[Unit]
Description=Alexandrie Frontend
After=network-online.target alexandrie-backend.service
[Service]
Type=simple
WorkingDirectory=/opt/alexandrie/frontend
EnvironmentFile=/opt/alexandrie_data/.env
Environment=NODE_ENV=production
Environment=HOST=127.0.0.1
Environment=PORT=8200
ExecStart=/usr/bin/node .output/server/index.mjs
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now rustfs alexandrie-backend alexandrie-frontend
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -34,7 +34,7 @@ export VITE_APP_VERSION="$(cat ~/.aurral)"
export VITE_GITHUB_REPO="lklynet/aurral"
export VITE_RELEASE_CHANNEL="stable"
$STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend
$STD pnpm --filter aurral-frontend run build
$STD pnpm --config.engine-strict=false --filter aurral-frontend run build
msg_ok "Built Aurral"
msg_info "Creating Service"
+31 -3
View File
@@ -185,16 +185,26 @@ exec .venv/bin/uwsgi \\
EOF
chmod +x /opt/dispatcharr/start-uwsgi.sh
cat <<EOF >/opt/dispatcharr/start-celery.sh
cat <<'EOF' >/opt/dispatcharr/start-celery.sh
#!/usr/bin/env bash
cd /opt/dispatcharr
set -a
source .env
set +a
exec uv run celery -A dispatcharr worker -l info -c 4 -Q celery,recordings,dvr,default
exec uv run celery -A dispatcharr worker -l info -Q celery,plugins -n default@%h --autoscale="${CELERY_MAX_WORKERS:-6},${CELERY_MIN_WORKERS:-1}"
EOF
chmod +x /opt/dispatcharr/start-celery.sh
cat <<'EOF' >/opt/dispatcharr/start-celery-dvr.sh
#!/usr/bin/env bash
cd /opt/dispatcharr
set -a
source .env
set +a
exec uv run celery -A dispatcharr worker -l info -Q dvr -n dvr@%h --pool=threads --concurrency=20
EOF
chmod +x /opt/dispatcharr/start-celery-dvr.sh
cat <<EOF >/opt/dispatcharr/start-celerybeat.sh
#!/usr/bin/env bash
cd /opt/dispatcharr
@@ -250,6 +260,24 @@ User=root
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/dispatcharr-celery-dvr.service
[Unit]
Description=Dispatcharr Celery DVR Worker
After=network.target redis-server.service
Requires=dispatcharr.service
[Service]
Type=simple
WorkingDirectory=/opt/dispatcharr
ExecStart=/opt/dispatcharr/start-celery-dvr.sh
Restart=on-failure
RestartSec=10
User=root
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/dispatcharr-celerybeat.service
[Unit]
Description=Dispatcharr Celery Beat Scheduler
@@ -285,7 +313,7 @@ User=root
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celerybeat dispatcharr-daphne
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celery-dvr dispatcharr-celerybeat dispatcharr-daphne
msg_ok "Created Services"
motd_ssh
+83
View File
@@ -0,0 +1,83 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/docling-project/docling-serve
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
if [[ "$(arch_resolve)" == "amd64" ]] && ! { grep -qw -m1 'sse4_2' /proc/cpuinfo && grep -qw -m1 'popcnt' /proc/cpuinfo; }; then
msg_error "Docling's NumPy builds require an x86-64-v2 CPU with SSE4.2 and POPCNT (Intel Nehalem, AMD Bulldozer or newer), which this CPU does not have."
exit 236
fi
msg_info "Installing Dependencies"
$STD apt install -y \
libgl1 \
libglib2.0-0t64 \
tesseract-ocr \
tesseract-ocr-deu \
tesseract-ocr-eng \
tesseract-ocr-fra \
tesseract-ocr-osd \
tesseract-ocr-spa
msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
check_for_gh_release "docling-serve" "docling-project/docling-serve" "${var_appversion:-}"
msg_info "Installing Docling Serve ${CHECK_UPDATE_RELEASE#v}"
$STD uv venv --python 3.12 /opt/docling-serve/.venv
$STD uv pip install --python /opt/docling-serve/.venv/bin/python --torch-backend cpu "docling-serve[rapidocr,tesserocr]==${CHECK_UPDATE_RELEASE#v}"
cat <<EOF >~/.docling-serve
${CHECK_UPDATE_RELEASE#v}
EOF
msg_ok "Installed Docling Serve ${CHECK_UPDATE_RELEASE#v}"
msg_info "Downloading Docling Models"
$STD /opt/docling-serve/.venv/bin/docling-tools models download -o /opt/docling-serve_data/models layout tableformer picture_classifier rapidocr
msg_ok "Downloaded Docling Models"
msg_info "Configuring Docling Serve"
cat <<EOF >/opt/docling-serve_data/.env
UVICORN_HOST=0.0.0.0
UVICORN_PORT=5001
DOCLING_SERVE_ENABLE_UI=true
DOCLING_SERVE_ARTIFACTS_PATH=/opt/docling-serve_data/models
DOCLING_SERVE_API_KEY=${var_docling_api_key:-$(random_password 32)}
TESSDATA_PREFIX=/usr/share/tesseract-ocr/5/tessdata
EOF
chmod 600 /opt/docling-serve_data/.env
msg_ok "Configured Docling Serve"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/docling-serve.service
[Unit]
Description=Docling Serve
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/docling-serve_data
EnvironmentFile=/opt/docling-serve_data/.env
ExecStart=/opt/docling-serve/.venv/bin/docling-serve run
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now docling-serve
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+1 -2
View File
@@ -20,8 +20,7 @@ $STD apt install -y \
ca-certificates
msg_ok "Installed Dependencies"
# 1.13.0's php-cli shifts the script into argv[1], which breaks composer and bin/console (php/frankenphp#2690); unpin once 1.13.1 is out
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "v1.12.7" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
fetch_and_deploy_gh_release "dreeve" "dreeveapp/dreeve" "tarball"
msg_info "Providing php CLI"
+3
View File
@@ -224,6 +224,9 @@ sed -i '/^.*unset DEBIAN_FRONTEND.*$/d' /opt/frigate/docker/main/install_deps.sh
echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections
echo "libedgetpu1-max libedgetpu/install-confirm-max boolean true" | debconf-set-selections
echo 'force-overwrite' >/etc/dpkg/dpkg.cfg.d/force-overwrite
if [[ "$(arch_resolve)" == "amd64" ]] && download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"; then
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/install_deps.sh
fi
$STD bash /opt/frigate/docker/main/install_deps.sh
rm -f /etc/dpkg/dpkg.cfg.d/force-overwrite
$STD pip3 install -U /wheels/*.whl
+57
View File
@@ -0,0 +1,57 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kopia/kopia
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "kopia" "kopia/kopia" "binary" "latest" "" "kopia_*_linux_$(arch_resolve "amd64" "arm64").deb"
create_self_signed_cert "kopia"
msg_info "Creating Kopia Repository"
mkdir -p /opt/kopia_data/{config,repository,cache,logs}
cat <<EOT >/opt/kopia_data/.env
KOPIA_CONFIG_PATH=/opt/kopia_data/config/repository.config
KOPIA_CACHE_DIRECTORY=/opt/kopia_data/cache
KOPIA_LOG_DIR=/opt/kopia_data/logs
KOPIA_PASSWORD=${var_kopia_repo_password:-$(random_password)}
KOPIA_SERVER_USERNAME=admin
KOPIA_SERVER_PASSWORD=${var_kopia_password:-$(random_password)}
KOPIA_SERVER_CONTROL_PASSWORD=$(random_password)
EOT
chmod 600 /opt/kopia_data/.env
set -a
source /opt/kopia_data/.env
set +a
$STD kopia repository create filesystem --path /opt/kopia_data/repository
msg_ok "Created Kopia Repository"
msg_info "Creating Service"
cat <<EOT >/etc/systemd/system/kopia.service
[Unit]
Description=Kopia Server
After=network-online.target
Wants=network-online.target
[Service]
EnvironmentFile=/opt/kopia_data/.env
ExecStart=/usr/bin/kopia server start --address=0.0.0.0:51515 --tls-cert-file=/etc/ssl/kopia/kopia.crt --tls-key-file=/etc/ssl/kopia/kopia.key
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOT
systemctl enable -q --now kopia
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+72
View File
@@ -0,0 +1,72 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/rmyndharis/OpenWA
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y \
build-essential \
python3 \
chromium \
fonts-liberation
msg_ok "Installed Dependencies"
setup_ffmpeg
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "openwa" "rmyndharis/OpenWA" "tarball"
msg_info "Building OpenWA"
cd /opt/openwa
export PUPPETEER_SKIP_DOWNLOAD=true
$STD npm ci
$STD npm run build
$STD npm run dashboard:build
$STD npm prune --omit=dev
rm -rf dashboard/node_modules ~/.npm
msg_ok "Built OpenWA"
msg_info "Configuring OpenWA"
mkdir -p /opt/openwa_data/data
cat <<EOF >/opt/openwa_data/.env
NODE_ENV=production
PORT=2785
API_MASTER_KEY=${var_api_key:-$(random_password 40)}
CSP_UPGRADE_INSECURE_REQUESTS=false
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
EOF
chmod 600 /opt/openwa_data/.env
msg_ok "Configured OpenWA"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/openwa.service
[Unit]
Description=OpenWA WhatsApp API Gateway
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/openwa_data
ExecStart=/usr/bin/node /opt/openwa/dist/main
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now openwa
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -44,7 +44,7 @@ msg_info "Configuring Sure"
KEY="$(openssl rand -hex 64)"
mkdir -p /etc/sure
mv /opt/sure/.env.example /etc/sure/.env
sed -i -e "/^SECRET_KEY_BASE=/s/secret-value/${KEY}/" \
sed -i -e "s/^SECRET_KEY_BASE=.*/SECRET_KEY_BASE=${KEY}/" \
-e 's/_KEY_BASE=.*$/&\n\nRAILS_FORCE_SSL=false \
\
# Change to true when using a reverse proxy \
+44
View File
@@ -0,0 +1,44 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: freakms
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.xwiki.org
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
setup_postgresql
setup_deb822_repo \
"xwiki" \
"https://maven.xwiki.org/xwiki-keyring.gpg" \
"https://maven.xwiki.org" \
"stable/"
msg_info "Installing XWiki"
debconf-set-selections <<EOF
dbconfig-common dbconfig-common/dbconfig-install boolean true
dbconfig-common dbconfig-common/remember-admin-pass boolean false
EOF
export DEBIAN_FRONTEND=noninteractive
$STD apt install -y xwiki-tomcat10-pgsql
msg_ok "Installed XWiki"
msg_info "Configuring XWiki"
XWIKI_XMX=$(($(awk '/MemTotal/ {print $2}' /proc/meminfo) * 60 / 100 / 1024))
sed -i 's/^\(JAVA_OPTS=.*\)$/#\1/' /etc/default/tomcat10
cat <<EOF >>/etc/default/tomcat10
JAVA_OPTS="-Djava.awt.headless=true -Xmx${XWIKI_XMX}m -XX:+UseG1GC"
EOF
systemctl restart tomcat10
msg_ok "Configured XWiki"
motd_ssh
customize
cleanup_lxc
+5
View File
@@ -119,6 +119,11 @@ EXCLUDE=
# Healthchecks.io Ping URL (optional)
# PING_URL=
# Remove downloaded packages after each successful update (optional).
# Without it, apt and the other package managers keep every package they
# download, and the cache grows on each run until the container's disk fills.
# CLEAN_CACHE=yes
CONF
ok "Created config ${CONF_FILE}"
fi
+28 -2
View File
@@ -13,6 +13,7 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONF_FILE="/etc/update-lxcs.conf"
LOG_FILE="/var/log/update-lxcs-cron.log"
PING_URL=""
CLEAN_CACHE=""
# Collect excluded containers from arguments
excluded_containers=("$@")
@@ -20,6 +21,7 @@ excluded_containers=("$@")
# Merge exclusions and healthchecks URL from config file if it exists
if [[ -f "$CONF_FILE" ]]; then
PING_URL=$(grep -oP '^\s*PING_URL\s*=\s*\K.+' "$CONF_FILE" 2>/dev/null | tr -d '"' | tr -d "'" || true)
CLEAN_CACHE=$(grep -oP '^\s*CLEAN_CACHE\s*=\s*\K.+' "$CONF_FILE" 2>/dev/null | tr -d '"' | tr -d "'" || true)
conf_exclude=$(grep -oP '^\s*EXCLUDE\s*=\s*\K[0-9,]+' "$CONF_FILE" 2>/dev/null || true)
IFS=',' read -ra conf_ids <<<"$conf_exclude"
for id in "${conf_ids[@]}"; do
@@ -39,6 +41,22 @@ fi
echo -e "\n $(date)"
# Remove downloaded package files after a successful update (CLEAN_CACHE=yes).
# The upgrade commands keep every package they download, so without this the
# cache grows on every run until the container's disk is full.
function clean_container() {
local container=$1
local os=$2
echo -e " [Info] Cleaning package cache in $container"
case "$os" in
alpine) pct exec "$container" -- ash -c "apk cache clean 2>/dev/null || true" ;;
archlinux) pct exec "$container" -- bash -c "pacman -Sc --noconfirm" ;;
fedora | rocky | centos | alma) pct exec "$container" -- bash -c "dnf -y clean packages" ;;
ubuntu | debian | devuan) pct exec "$container" -- bash -c "apt-get clean" ;;
opensuse) pct exec "$container" -- bash -c "zypper --non-interactive clean" ;;
esac
}
function update_container() {
local container=$1
local name
@@ -46,14 +64,22 @@ function update_container() {
local os
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
echo -e "\n [Info] Updating $container : $name (os: $os)"
local rc=0
case "$os" in
alpine) pct exec "$container" -- ash -c "apk -U upgrade" ;;
archlinux) pct exec "$container" -- bash -c "pacman -Syyu --noconfirm" ;;
fedora | rocky | centos | alma) pct exec "$container" -- bash -c "dnf -y update && dnf -y upgrade" ;;
ubuntu | debian | devuan) pct exec "$container" -- bash -c "apt-get update; DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confold' dist-upgrade -y; status=\$?; rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED || true; exit \$status" ;;
opensuse) pct exec "$container" -- bash -c "zypper ref && zypper --non-interactive dup" ;;
*) echo " [Warn] Unknown OS type '$os' for container $container, skipping" ;;
esac
*)
echo " [Warn] Unknown OS type '$os' for container $container, skipping"
return 0
;;
esac || rc=$?
if [[ $rc -eq 0 && "${CLEAN_CACHE,,}" =~ ^(1|yes|true)$ ]]; then
clean_container "$container" "$os" || echo " [Warn] Cache cleanup failed for $container"
fi
return $rc
}
update_status=0
+442
View File
@@ -0,0 +1,442 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://netbird.io
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/pve/vm-core.func")
load_functions
APP="NetBird Server"
APP_TYPE="vm"
NSAPP="netbird-server"
var_os="debian"
var_version="13"
GEN_MAC=02:$(openssl rand -hex 5 | awk '{print toupper($0)}' | sed 's/\(..\)/\1:/g; s/.$//')
RANDOM_UUID="$(cat /proc/sys/kernel/random/uuid)"
METHOD=""
USE_CLOUD_INIT="no"
OS_TYPE="debian"
OS_VERSION="13"
OS_CODENAME="trixie"
OS_DISPLAY="Debian 13 (Trixie)"
THIN="discard=on,ssd=1,"
NETBIRD_DOMAIN_INPUT=""
NETBIRD_PROXY_TYPE_INPUT="0"
NETBIRD_EMAIL_INPUT=""
DOCKER_PREINSTALLED="no"
DOCKER_INSTALL_MARKER=""
NETBIRD_SETUP_MARKER=""
header_info
echo -e "\n Loading..."
set -Eeo pipefail
shopt -s inherit_errexit
trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
trap cleanup EXIT
trap 'post_update_to_api "failed" "130"' SIGINT
trap 'post_update_to_api "failed" "143"' SIGTERM
trap 'post_update_to_api "failed" "129"; exit 129' SIGHUP
TEMP_DIR=$(mktemp -d)
pushd "$TEMP_DIR" >/dev/null
vm_preflight
vm_require_tools virt-customize jq
function configure_netbird_setup() {
if [[ "${VM_UNATTENDED:-0}" == "1" ]]; then
if [[ -z "${VM_NETBIRD_DOMAIN:-}" ]]; then
msg_error "An unattended NetBird Server install needs VM_NETBIRD_DOMAIN"
msg_error "Set it to the public domain whose DNS A record points at this VM, e.g. VM_NETBIRD_DOMAIN=netbird.my-domain.com"
exit 1
fi
NETBIRD_DOMAIN_INPUT="$VM_NETBIRD_DOMAIN"
NETBIRD_PROXY_TYPE_INPUT="${VM_NETBIRD_PROXY_TYPE:-0}"
NETBIRD_EMAIL_INPUT="${VM_NETBIRD_EMAIL:-admin@${NETBIRD_DOMAIN_INPUT}}"
echo -e "${INFO}${BOLD}${DGN}NetBird Domain: ${BGN}${NETBIRD_DOMAIN_INPUT}${CL}"
echo -e "${INFO}${BOLD}${DGN}Reverse Proxy: ${BGN}${NETBIRD_PROXY_TYPE_INPUT}${CL}"
echo -e "${INFO}${BOLD}${DGN}Let's Encrypt Email: ${BGN}${NETBIRD_EMAIL_INPUT}${CL}"
return
fi
while true; do
if vm_dialog inputbox "NETBIRD DOMAIN" \
"Enter the public domain for your NetBird server.\n(DNS A record must point to this VM's public IP)\n\ne.g. netbird.my-domain.com" \
11 65 "" --cancel-button Exit-Script; then
NETBIRD_DOMAIN_INPUT="$VM_DIALOG_RESULT"
if [[ -z "$NETBIRD_DOMAIN_INPUT" ]] || [[ "$NETBIRD_DOMAIN_INPUT" == "netbird.example.com" ]]; then
vm_dialog msgbox "INVALID DOMAIN" "Please enter a valid domain name." 8 50
continue
fi
echo -e "${INFO}${BOLD}${DGN}NetBird Domain: ${BGN}${NETBIRD_DOMAIN_INPUT}${CL}"
break
else
exit_script
fi
done
if vm_dialog radiolist "REVERSE PROXY" \
"Select the reverse proxy for NetBird" 14 70 4 \
"0" "Traefik (recommended, built-in with auto TLS)" ON \
"2" "Nginx (generates config template)" OFF \
"3" "Nginx Proxy Manager" OFF \
"5" "Other/Manual" OFF; then
NETBIRD_PROXY_TYPE_INPUT="$VM_DIALOG_RESULT"
echo -e "${INFO}${BOLD}${DGN}Reverse Proxy: ${BGN}${NETBIRD_PROXY_TYPE_INPUT}${CL}"
else
exit_script
fi
if [[ "$NETBIRD_PROXY_TYPE_INPUT" == "0" ]]; then
while true; do
if vm_dialog inputbox "LETSENCRYPT EMAIL" \
"Enter your email for Let's Encrypt certificates:" 8 65 "" --cancel-button Exit-Script; then
NETBIRD_EMAIL_INPUT="$VM_DIALOG_RESULT"
if [[ -z "$NETBIRD_EMAIL_INPUT" ]]; then
vm_dialog msgbox "INVALID EMAIL" "Email is required for Let's Encrypt." 8 50
continue
fi
echo -e "${INFO}${BOLD}${DGN}Let's Encrypt Email: ${BGN}${NETBIRD_EMAIL_INPUT}${CL}"
break
else
exit_script
fi
done
fi
}
function select_os() {
if [[ -n "${1:-}" ]]; then
OS_CHOICE="$1"
elif [[ "${VM_UNATTENDED:-0}" == "1" ]]; then
OS_CHOICE="${VM_OS_VERSION:-debian13}"
elif vm_dialog radiolist "SELECT OS" \
"Choose Operating System for NetBird Server VM" 15 68 4 \
"debian13" "Debian 13 (Trixie) - Latest" ON \
"debian12" "Debian 12 (Bookworm) - Stable" OFF \
"ubuntu2604" "Ubuntu 26.04 LTS (Resolute)" OFF \
"ubuntu2404" "Ubuntu 24.04 LTS (Noble)" OFF; then
OS_CHOICE="$VM_DIALOG_RESULT"
else
exit_script
fi
case $OS_CHOICE in
debian13)
OS_TYPE="debian"
OS_VERSION="13"
OS_CODENAME="trixie"
OS_DISPLAY="Debian 13 (Trixie)"
;;
debian12)
OS_TYPE="debian"
OS_VERSION="12"
OS_CODENAME="bookworm"
OS_DISPLAY="Debian 12 (Bookworm)"
;;
ubuntu2604)
OS_TYPE="ubuntu"
OS_VERSION="26.04"
OS_CODENAME="resolute"
OS_DISPLAY="Ubuntu 26.04 LTS"
;;
ubuntu2404)
OS_TYPE="ubuntu"
OS_VERSION="24.04"
OS_CODENAME="noble"
OS_DISPLAY="Ubuntu 24.04 LTS"
;;
*)
msg_error "Unsupported OS '${OS_CHOICE}' (expected debian13, debian12, ubuntu2604 or ubuntu2404)"
exit 1
;;
esac
var_os="$OS_TYPE"
var_version="$OS_VERSION"
echo -e "${OS}${BOLD}${DGN}Operating System: ${BGN}${OS_DISPLAY}${CL}"
}
function select_cloud_init() {
VM_CLOUD_INIT="${VM_CLOUD_INIT:-yes}"
CLOUDINIT_REQUIRED=0
if [[ "$OS_TYPE" == "ubuntu" ]]; then
CLOUDINIT_REQUIRED=1
fi
vm_prompt_cloud_init "$OS_TYPE"
}
function get_image_url() {
local arch
arch=$(vm_arch_resolve amd64 arm64)
case $OS_TYPE in
debian)
if [[ "$USE_CLOUD_INIT" == "yes" ]]; then
echo "https://cloud.debian.org/images/cloud/${OS_CODENAME}/latest/debian-${OS_VERSION}-generic-${arch}.qcow2"
else
echo "https://cloud.debian.org/images/cloud/${OS_CODENAME}/latest/debian-${OS_VERSION}-nocloud-${arch}.qcow2"
fi
;;
ubuntu)
echo "https://cloud-images.ubuntu.com/${OS_CODENAME}/current/${OS_CODENAME}-server-cloudimg-${arch}.img"
;;
esac
}
function default_settings() {
select_os "${VM_OS_VERSION:-}"
vm_apply_machine_type "q35"
VMID=$(get_valid_nextid)
DISK_SIZE="10G"
DISK_CACHE=""
HN="netbird"
CPU_TYPE=" -cpu host"
CORE_COUNT="2"
RAM_SIZE="2048"
BRG="vmbr0"
MAC="$GEN_MAC"
VLAN=""
MTU=""
START_VM="yes"
METHOD="default"
vm_echo_default_settings
}
function advanced_settings() {
METHOD="advanced"
select_os
vm_prompt_vmid "${VMID:-$(get_valid_nextid)}"
vm_prompt_machine_type "q35"
vm_prompt_disk_size "10G"
vm_prompt_disk_cache "none"
vm_prompt_hostname "netbird"
vm_prompt_cpu_model "host"
vm_prompt_cpu_cores "2"
vm_prompt_ram "2048"
vm_prompt_bridge "vmbr0"
vm_prompt_mac "$GEN_MAC"
vm_prompt_vlan
vm_prompt_mtu
vm_prompt_keyboard
vm_prompt_verbose "no"
vm_prompt_start_vm "yes"
if vm_confirm_advanced_settings "Ready to create a NetBird Server VM?"; then
echo -e "${CREATING}${BOLD}${DGN}Creating a NetBird Server VM using the above advanced settings${CL}"
else
header_info
echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
advanced_settings
fi
}
vm_start_script "Use Default Settings?\n\nDefaults:\n• 2 CPU Cores\n• 2 GB RAM\n• 10 GB Disk\n• Cloud-Init enabled" 14 58
select_cloud_init
configure_netbird_setup
post_to_api_vm
vm_select_storage "$HN"
vm_define_disk_references 2
msg_info "Retrieving the URL for the ${OS_DISPLAY} Disk Image"
URL=$(get_image_url)
CACHE_FILE="$(vm_image_cache_path "$URL")"
msg_ok "${CL}${BL}${URL}${CL}"
MIN_IMAGE_BYTES=$((100 * 1024 * 1024))
vm_fetch_image "$URL" "$CACHE_FILE" --cache --min-bytes "$MIN_IMAGE_BYTES" || exit 115
WORK_FILE="$TEMP_DIR/netbird.qcow2"
cp "$CACHE_FILE" "$WORK_FILE"
if [[ "${USE_CLOUD_INIT:-no}" != "yes" ]]; then
msg_info "Expanding the root filesystem to ${DISK_SIZE}"
vm_expand_image "$WORK_FILE" "$DISK_SIZE" || true
fi
export LIBGUESTFS_BACKEND_SETTINGS=dns=8.8.8.8,1.1.1.1
msg_info "Installing base packages"
if vm_customize "NetBird base packages" "$WORK_FILE" --install qemu-guest-agent,curl,ca-certificates,jq; then
msg_ok "Installed base packages"
msg_info "Installing Docker"
if vm_customize "Docker" "$WORK_FILE" \
--run-command 'bash -o pipefail -c "curl -fsSL https://get.docker.com | sh"' \
--run-command 'systemctl enable docker'; then
DOCKER_PREINSTALLED="yes"
msg_ok "Installed Docker"
DOCKER_DAEMON_TMP="$TEMP_DIR/docker-daemon.json"
cat >"$DOCKER_DAEMON_TMP" <<'JSON'
{
"storage-driver": "overlay2",
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
JSON
vm_customize "Docker daemon" "$WORK_FILE" \
--mkdir /etc/docker \
--upload "${DOCKER_DAEMON_TMP}:/etc/docker/daemon.json" || msg_warn "Docker daemon tuning failed; continuing with Docker defaults"
else
msg_warn "Docker pre-install failed; installation is pending on first boot."
fi
else
msg_warn "Package pre-install failed; Docker installation is pending on first boot."
fi
NETBIRD_ENV_TMP="$TEMP_DIR/netbird.env"
cat >"$NETBIRD_ENV_TMP" <<ENVEOF
NETBIRD_NON_INTERACTIVE="true"
NETBIRD_DOMAIN="${NETBIRD_DOMAIN_INPUT}"
NETBIRD_REVERSE_PROXY_TYPE="${NETBIRD_PROXY_TYPE_INPUT}"
NETBIRD_LETSENCRYPT_EMAIL="${NETBIRD_EMAIL_INPUT}"
NETBIRD_ENABLE_PROXY="false"
NETBIRD_ENABLE_CROWDSEC="false"
NETBIRD_BIND_LOCALHOST_ONLY="false"
ENVEOF
vm_customize "NetBird configuration" "$WORK_FILE" \
--upload "${NETBIRD_ENV_TMP}:/root/netbird.env" || exit 1
NETBIRD_SETUP_TMP="$TEMP_DIR/netbird-setup.sh"
cat >"$NETBIRD_SETUP_TMP" <<'SETUPEOF'
#!/usr/bin/env bash
set -Eeuo pipefail
exec > /var/log/netbird-setup.log 2>&1
echo "[$(date)] Starting NetBird automated setup"
for _ in {1..60}; do
docker info >/dev/null 2>&1 && break
sleep 5
done
docker info >/dev/null 2>&1 || {
echo "[$(date)] ERROR: Docker not ready after 5 min"
exit 1
}
set -a
source /root/netbird.env
set +a
curl -fsSL https://github.com/netbirdio/netbird/releases/latest/download/getting-started.sh \
-o /root/getting-started.sh
echo "[$(date)] Running NetBird getting-started.sh"
bash /root/getting-started.sh
echo "[$(date)] NetBird setup completed"
SETUPEOF
vm_prepare_cloud_image "$WORK_FILE" "$HN" || true
if [[ "$DOCKER_PREINSTALLED" == "no" ]]; then
DOCKER_INSTALL_TMP="$TEMP_DIR/install-docker.sh"
cat >"$DOCKER_INSTALL_TMP" <<'DOCKEREOF'
#!/usr/bin/env bash
set -Eeuo pipefail
export DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a
exec > /var/log/install-docker.log 2>&1
echo "[$(date)] Starting Docker installation"
for _ in {1..30}; do
ping -c 1 8.8.8.8 >/dev/null 2>&1 && break
sleep 2
done
apt-get update
apt-get install -y qemu-guest-agent curl ca-certificates jq
bash -o pipefail -c "curl -fsSL https://get.docker.com | sh"
systemctl enable docker
install -d /etc/docker
cat > /etc/docker/daemon.json <<'JSON'
{
"storage-driver": "overlay2",
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
JSON
systemctl start docker
echo "[$(date)] Docker installation completed"
DOCKEREOF
vm_firstboot_unit "$WORK_FILE" install-docker "$DOCKER_INSTALL_TMP" \
--description "Install Docker on first boot" \
--cloud-init "$USE_CLOUD_INIT" || exit 1
DOCKER_INSTALL_MARKER="$VM_FIRSTBOOT_MARKER"
fi
NETBIRD_AFTER=(--after docker.service)
if [[ "$DOCKER_PREINSTALLED" == "no" ]]; then
NETBIRD_AFTER+=(--after install-docker.service)
fi
vm_firstboot_unit "$WORK_FILE" netbird-setup "$NETBIRD_SETUP_TMP" \
--description "NetBird initial setup" \
"${NETBIRD_AFTER[@]}" \
--cloud-init "$USE_CLOUD_INIT" || exit 1
NETBIRD_SETUP_MARKER="$VM_FIRSTBOOT_MARKER"
vm_claim_vmid
msg_info "Creating NetBird Server VM shell"
qm create "$VMID" -agent 1${MACHINE} -tablet 0 -bios ovmf${CPU_TYPE} -cores "$CORE_COUNT" -memory "$RAM_SIZE" \
-name "$HN" -tags community-script -net0 "virtio,bridge=$BRG,macaddr=$MAC$VLAN$MTU" -onboot 1 -ostype l26 -scsihw virtio-scsi-pci >/dev/null
vm_mark_created
msg_ok "Created VM shell"
vm_alloc_efi_disk "$DISK0"
vm_import_disk "$VMID" "$WORK_FILE" "$STORAGE"
DISK_OPTIONS="${DISK_CACHE}${THIN}"
DISK_OPTIONS="${DISK_OPTIONS%,}"
ROOT_DISK="$VM_IMPORTED_DISK"
[[ -n "$DISK_OPTIONS" ]] && ROOT_DISK="${ROOT_DISK},${DISK_OPTIONS}"
msg_info "Attaching EFI and root disk"
qm set "$VMID" \
--efidisk0 "${DISK0_REF}${FORMAT}" \
--scsi0 "$ROOT_DISK" \
--boot order=scsi0 \
--serial0 socket >/dev/null
msg_ok "Attached EFI and root disk"
vm_resize_disk "scsi0" "$DISK_SIZE"
set_description
vm_provision "$VMID"
if [[ "$USE_CLOUD_INIT" == "yes" && -n "${CLOUDINIT_SSH_KEYS:-}" ]]; then
$STD qm set "$VMID" --sshkeys "$CLOUDINIT_SSH_KEYS"
fi
vm_start_vm "NetBird Server VM"
vm_wait_for_ip 180 || true
if [[ "$USE_CLOUD_INIT" == "yes" ]]; then
display_cloud_init_info "$VMID" "$HN"
else
msg_warn "Debian nocloud console login: root, no password. Set one before exposing the VM."
fi
DOCKER_STATUS="Pre-installed"
if [[ "$DOCKER_PREINSTALLED" == "no" ]]; then
DOCKER_STATUS="First-boot unit install-docker.service${DOCKER_INSTALL_MARKER:+ (${DOCKER_INSTALL_MARKER})}"
fi
vm_print_summary \
"OS=${OS_DISPLAY}" \
"Domain=https://${NETBIRD_DOMAIN_INPUT}" \
"Docker=${DOCKER_STATUS}" \
"NetBird unit=netbird-setup.service" \
"Setup marker=${NETBIRD_SETUP_MARKER}"
vm_next_steps \
"NetBird installation continues in the VM on first boot." \
"Monitor setup with: tail -f /var/log/netbird-setup.log (Docker install: /var/log/install-docker.log)" \
"Keep ports open: 80/tcp, 443/tcp, 3478/udp."
vm_finish "VM created. NetBird installation continues in the VM on first boot."