Compare commits

..
Author SHA1 Message Date
Rögl-Brunner Michel 796a8b292c Pin install Python version in ct update scripts 2026-11-27 14:55:34 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 54e6060f14 Update CHANGELOG.md (#19100)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 10:46:35 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 63b807d9db Update CHANGELOG.md (#19098)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 10:46:11 +00:00
push-app-to-main[bot] 1a3ed497b5 Add floppy (ct) (#19099)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-27 11:46:02 +01:00
Owen Voke 3fde785ca4 Gramps Web: install AI chat dependencies (#19092) 2026-11-27 11:45:43 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] a605a89703 Update CHANGELOG.md (#19097)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 10:25:32 +00:00
CanbiZ (MickLesk) 396a51b156 Add a weekly Python version drift check (#19095)
Compares each script's pinned Python with the release it installs:
requires-python (or Poetry's python, setup.py), .python-version and the
Dockerfile. Outside requires-python the install breaks; with uv sync
the pin goes unused. One PR per script rewrites PYTHON_VERSION and the
uv --python spellings, and ct/ updates that keep another Python are
listed on the report.
2026-11-27 11:25:26 +01:00
CanbiZ (MickLesk) 88393c58b5 Add a weekly PHP version drift check (#19094)
Compares each script's pinned PHP with the release it installs:
require.php, the lowest PHP its locked packages need (and their upper
bounds where the script runs composer install), the Dockerfile and
config.platform.php. One PR per script rewrites PHP_VERSION, php8.x
package and service names and /etc/php paths, and says when existing
containers keep the old FPM socket.
2026-11-27 11:25:02 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 8b60409ccb Update CHANGELOG.md (#19096)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 10:07:33 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] f21213dba2 Update CHANGELOG.md (#19091)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 08:33:17 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 0367e5830a Update CHANGELOG.md (#19090)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-27 07:11:48 +00:00
CanbiZ (MickLesk) 3b9fbb5070 update-apps: say what tar or zstd said when a backup fails (#19066)
A failed backup showed vzdump's 600 character tar command and not the
line above it. 14 of 21 such runs last week were a full backup storage
(zstd error 70); the message now carries that line and the free space.
2026-11-27 08:11:13 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 2a0ec4415f Update CHANGELOG.md (#19086)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 22:01:32 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 390764cb16 Update CHANGELOG.md (#19085)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 21:34:53 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 42e82d9aad Update CHANGELOG.md (#19083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 19:26:14 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 21a26a1c1a Update CHANGELOG.md (#19082)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 19:00:38 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 861e28ee68 Update CHANGELOG.md (#19075)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 16:37:29 +00:00
CanbiZ (MickLesk) ef06b39262 LibreChat: rebuild the RAG API venv on update, keep uploads (#19056)
The clean install of rag-api removed .venv, and the update called
.venv/bin/pip, so every rag-api update failed with exit 127 and left
the service stopped; the pending marker repeated it on each run. The
update now creates the venv like the install does, and keeps uploads/,
the RAG_UPLOAD_DIR. LibreChat's clean install likewise keeps
librechat.yaml, uploads/, client/public/images and api/logs instead of
deleting them.

Fixes #19042
2026-11-26 17:36:59 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 1deafe5337 Update CHANGELOG.md (#19074)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 16:36:39 +00:00
CanbiZ (MickLesk) a28b4d5c37 Cloudflare-DDNS: give the Go build 1 GB (#19059)
The compiler was killed at 512 MB in 8 of 50 runs last week.
2026-11-26 17:36:07 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] f43881153f Update CHANGELOG.md (#19073)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 16:35:18 +00:00
CanbiZ (MickLesk) 87b8f1a360 Vane: skip the CUDA binaries of onnxruntime-node (#19060)
Its install script downloads onnxruntime-linux-x64-gpu-1.21.0.tgz, which
answers 404, so every install and update ended in yarn install.
2026-11-26 17:34:46 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 8c9f41397e Update CHANGELOG.md (#19072)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 16:33:47 +00:00
CanbiZ (MickLesk) 3f8dd9c752 UniFi OS Server: retry the installer download (#19062)
14 runs on 5 hosts ended in an HTTP error from the Ubiquiti CDN on the
first try; curl_download retries and names the error.
2026-11-26 17:33:17 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 90f0045788 Update CHANGELOG.md (#19065)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 16:31:49 +00:00
CanbiZ (MickLesk) 3ff7e281ed Umami: pin pnpm from engines.pnpm on install, set APP_SECRET (#19057)
* Umami: pin pnpm from engines.pnpm on install, set APP_SECRET

The install took pnpm@latest before the release was fetched, but Umami
pins an exact engines.pnpm, so pnpm install refused to run. setup_nodejs
now runs after the fetch and reads that version, as the update does.

3.5 also requires APP_SECRET and no longer falls back to DATABASE_URL,
so a fresh install and every container updated to 3.5 answered 500. New
installs get a random secret. An existing .env gets APP_SECRET set to
its DATABASE_URL, which is the value 3.4 derived its secret from, so
logins, share links and session IDs stay valid. It runs before the
release check, so containers already on 3.5 are fixed by the next
update.

Fixes #19055

* Umami: raise RAM to 4 GB for the Next.js build

A cold next build peaks at about 2.9 GB of anonymous memory on top of
PostgreSQL, so 2 GB containers get OOM-killed on install and on every
update (CLEAN_INSTALL drops .next).
2026-11-26 17:31:23 +01:00
push-app-to-main[bot] 63bc36ee3c Add bifrost (ct) (#19028)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-26 14:20:20 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 9792b8a6a3 Update CHANGELOG.md (#19064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 13:20:16 +00:00
push-app-to-main[bot] c06aa6ed3a Add surfsense (ct) (#19029)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-26 14:19:47 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 6176f76322 Update CHANGELOG.md (#19054)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 09:56:10 +00:00
CanbiZ (MickLesk) e7e5b38acb PVE Post Install: support Proxmox VE 9.3 (#19053) 2026-11-26 10:55:40 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 5707eed9dc Update CHANGELOG.md (#19052)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-26 09:25:45 +00:00
Tobias 9193c8ec7d fix: freshrss: install php-xml and php-intl for automatic feed updates (#19044) 2026-11-26 10:25:12 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 6dca18dea2 Update CHANGELOG.md (#19050)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 22:16:11 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 68efbf36de Update CHANGELOG.md (#19049)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 22:15:57 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 26c08513f5 Update CHANGELOG.md (#19048)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 22:15:24 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] fa6326e6d6 Update CHANGELOG.md (#19047)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 22:14:51 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 415e04d3fc Update CHANGELOG.md (#19046)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 22:14:20 +00:00
Mandish ShahandClaude Opus 5.5 95f604018f Dispatcharr: load the gevent monkey-patch in uWSGI like upstream (#19045)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:13:40 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 51cc78bf79 Update CHANGELOG.md (#19040)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 17:25:49 +00:00
CanbiZ (MickLesk) 30591681a4 Monitor-All: ping the container's net0 address (#19030) 2026-11-25 18:25:22 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 26d5ff8b64 Update CHANGELOG.md (#19039)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 17:25:13 +00:00
CanbiZ (MickLesk) afc11f8fcb Hister is now Nogon (#19031) 2026-11-25 18:24:41 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] c0c9d93d5d Update CHANGELOG.md (#19036)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 13:13:58 +00:00
Jamal Tantaoui 44a396c131 Odoo: update PDFKiln on each release, and replace wkhtmltox too (#19035) 2026-11-25 14:13:20 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 1fc49d021c Update CHANGELOG.md (#19034)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 12:02:37 +00:00
push-app-to-main[bot] f39aa7242e Add nextdns (ct) (#18980)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-25 13:02:08 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 7478113b69 Update CHANGELOG.md (#19033)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 12:01:38 +00:00
Jamal Tantaoui 79a43028cf ERPNext: install PDFKiln instead of the archived wkhtmltox build (#19025)
* ERPNext: install PDFKiln instead of the archived wkhtmltox build

* ERPNext: replace wkhtmltox with PDFKiln on update too

* ERPNext: purge wkhtmltox and update PDFKiln as separate steps
2026-11-25 13:01:04 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] e26c0d1f91 Update CHANGELOG.md (#19032)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 12:00:28 +00:00
push-app-to-main[bot]andCanbiZ ddbfba5bc4 Rauthy (#19021)
* Add rauthy (ct)

* Update RAM allocation and message handling in rauthy.sh

Increased default RAM allocation from 4096 to 6144 MB and adjusted message output for stopping Rauthy.

* Clean up comments in rauthy-install.sh

Removed unnecessary comments about Node.js, wasm-pack, and FIDO MDS dataset handling in the installation script.

* Rauthy: release builds need the FIDO MDS dataset

Since 0.37.2 build.rs refuses a release build without it, so a 429 from mds.fidoalliance.org broke the install. Retry longer and stop with a clear message; the update cleans up before touching the running binary.

---------

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-11-25 12:59:55 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 5e53c81839 Update CHANGELOG.md (#19027)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 11:29:46 +00:00
push-app-to-main[bot]andCanbiZ 5a33c92376 Formbricks (#19022)
* Add formbricks (ct)

* Modify formbricks-install.sh for versioning and build

Updated versioning and build configurations for Formbricks installation script.

---------

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-11-25 12:29:19 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] dd694c4dfe Update CHANGELOG.md (#19026)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 10:18:05 +00:00
push-app-to-main[bot] 101884cc8c Add immich-power-tools (addon) (#19023)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-25 11:18:02 +01:00
push-app-to-main[bot] 770d8e99cb Add vuetorrent (addon) (#19024)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-25 11:17:37 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] e07dd3d214 Update CHANGELOG.md (#19017)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 18:37:07 +00:00
Jamal Tantaoui 5b589425dc Odoo: install PDFKiln instead of the archived wkhtmltox build (#19014)
* Odoo: install PDFKiln instead of the archived wkhtmltox build

* Odoo: listen on all interfaces, as Odoo 20 defaults to 127.0.0.1
2026-11-24 19:36:30 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 5943838dd3 Update CHANGELOG.md (#19013)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 09:29:36 +00:00
push-app-to-main[bot] 06b225288a Add 8mblocal (ct) (#18975)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:29:00 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 4b89fdfe26 Update CHANGELOG.md (#19012)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 09:22:40 +00:00
push-app-to-main[bot] c046a59e87 Add woodpecker-ci (ct) (#18973)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:21:58 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] f60f44430e Update CHANGELOG.md (#19011)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 09:19:03 +00:00
push-app-to-main[bot] 5734f50975 Add hedgedoc (ct) (#18978)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:35 +01:00
push-app-to-main[bot] c16aa0f612 Add typecho (ct) (#18974)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:27 +01:00
push-app-to-main[bot] 176c23e109 Add kyoo (ct) (#18971)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:23 +01:00
push-app-to-main[bot] 81f85b8ee3 Add activepieces (ct) (#18970)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:20 +01:00
push-app-to-main[bot] 916229fb05 Add windmill (ct) (#18977)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:09 +01:00
push-app-to-main[bot] 3b93ff1e87 Add databasement (ct) (#18976)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-24 10:18:07 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] b2ff0c449f Update CHANGELOG.md (#19010)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 08:44:55 +00:00
Tonomis 0af8bd2e58 Traefik: actually upgrade and restart traefik on Alpine update (#19005) 2026-11-24 09:44:25 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] f46aeb1f57 Update CHANGELOG.md (#19009)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-24 08:29:10 +00:00
Rudy de Lorenzo 10d8b2c7e6 Nginx Proxy Manager: bump OpenResty to 1.31.9.1 (#19008)
OpenResty 1.31.9.1 bundles nginx 1.31.9, which contains the upstream
fixes for CVE-2026-123007 and CVE-2026-123633 (nginx2root), so the
temporary HTTP/2 hot-patches on the bundled nginx 1.31.8 can be
removed. Existing installs rebuild OpenResty on the next update
because the ~/.openresty marker no longer matches.
2026-11-24 09:28:38 +01:00
82 changed files with 4802 additions and 107 deletions

No files matched your search

+685
View File
@@ -0,0 +1,685 @@
name: Check PHP Version Drift
on:
workflow_dispatch:
schedule:
# Weekly on Monday at 08:00 UTC, after the Node.js and Python checks
- cron: "0 8 * * 1"
permissions:
contents: write
issues: write
pull-requests: write
jobs:
check-php-versions:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: coolify-runner
steps:
- name: Checkout Repository
uses: actions/checkout@v7
with:
ref: main
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq jq curl > /dev/null 2>&1
- name: Check upstream PHP versions
id: check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
echo "================================================"
echo " Checking PHP version drift in install scripts"
echo "================================================"
# Versions are compared minor-granular as major*100+minor: 8.4 -> 804.
vstr() { echo "$(($1 / 100)).$(($1 % 100))"; }
# One comparison as a range. Sets T_LO / T_HI, empty when open.
# Returns 1 for a clause that bounds nothing (!=).
clause_range() {
local op="$1" maj="$2" mi="$3" pat="$4"
T_LO="" T_HI=""
[[ "$mi" == "*" ]] && mi=""
[[ "$pat" == "*" ]] && pat=""
case "$op" in
"!=") return 1 ;;
">=") T_LO=$((maj * 100 + ${mi:-0})) ;;
">")
if [[ -n "$pat" ]]; then T_LO=$((maj * 100 + mi))
elif [[ -n "$mi" ]]; then T_LO=$((maj * 100 + mi + 1))
else T_LO=$(((maj + 1) * 100)); fi
;;
"<")
if [[ -n "$pat" && "$pat" -gt 0 ]]; then T_HI=$((maj * 100 + mi))
elif [[ -n "$mi" ]]; then T_HI=$((maj * 100 + mi - 1))
else T_HI=$(((maj - 1) * 100 + 99)); fi
;;
"<=")
if [[ -n "$mi" ]]; then T_HI=$((maj * 100 + mi)); else T_HI=$((maj * 100 + 99)); fi
;;
"^")
T_LO=$((maj * 100 + ${mi:-0}))
T_HI=$((maj * 100 + 99))
;;
"~")
# Composer: ~8.2 is >=8.2 <9.0, ~8.2.1 is >=8.2.1 <8.3
T_LO=$((maj * 100 + ${mi:-0}))
if [[ -n "$pat" ]]; then T_HI=$T_LO; else T_HI=$((maj * 100 + 99)); fi
;;
"" | "=" | "==")
if [[ -n "$mi" ]]; then T_LO=$((maj * 100 + mi)) T_HI=$T_LO
else T_LO=$((maj * 100)) T_HI=$((maj * 100 + 99)); fi
;;
*) return 1 ;;
esac
}
# A Composer constraint as a range: space or comma = AND, | or || = OR,
# "a - b" ranges, @stability flags. Sets C_MIN / C_MAX, empty when open.
parse_constraint() {
local spec="$1" alt part a_lo a_hi lo_open=0 hi_open=0 seen=0
local -a alts parts
C_MIN="" C_MAX=""
spec=$(sed -E 's/@[a-zA-Z]+//g; s/(>=|<=|==|!=|>|<|\^|~)[[:space:]]+/\1/g' <<<"$spec")
spec="${spec//||/|}"
IFS='|' read -ra alts <<<"$spec"
for alt in "${alts[@]}"; do
alt=$(sed -E 's/^[[:space:],]+|[[:space:],]+$//g' <<<"$alt")
[[ -z "$alt" || "$alt" == "*" ]] && { lo_open=1; hi_open=1; seen=1; continue; }
a_lo="" a_hi=""
if [[ "$alt" =~ ^v?([0-9]+)(\.([0-9]+))?[^[:space:]]*[[:space:]]+-[[:space:]]+v?([0-9]+)(\.([0-9]+))? ]]; then
a_lo=$((BASH_REMATCH[1] * 100 + ${BASH_REMATCH[3]:-0}))
if [[ -n "${BASH_REMATCH[6]}" ]]; then a_hi=$((BASH_REMATCH[4] * 100 + BASH_REMATCH[6]))
else a_hi=$((BASH_REMATCH[4] * 100 + 99)); fi
else
IFS=', ' read -ra parts <<<"$alt"
for part in "${parts[@]}"; do
[[ -z "$part" ]] && continue
[[ "$part" =~ ^(==|!=|>=|<=|>|<|\^|~|=)?v?([0-9]+)(\.([0-9]+|\*))?(\.([0-9]+|\*))?(\.[0-9]+)*$ ]] || continue
clause_range "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[4]}" "${BASH_REMATCH[6]}" || continue
[[ -n "$T_LO" ]] && { [[ -z "$a_lo" ]] || ((T_LO > a_lo)); } && a_lo=$T_LO
[[ -n "$T_HI" ]] && { [[ -z "$a_hi" ]] || ((T_HI < a_hi)); } && a_hi=$T_HI
done
fi
seen=1
if [[ -z "$a_lo" ]]; then lo_open=1; elif [[ -z "$C_MIN" ]] || ((a_lo < C_MIN)); then C_MIN=$a_lo; fi
if [[ -z "$a_hi" ]]; then hi_open=1; elif [[ -z "$C_MAX" ]] || ((a_hi > C_MAX)); then C_MAX=$a_hi; fi
done
((seen)) || return 0
((lo_open)) && C_MIN=""
((hi_open)) && C_MAX=""
return 0
}
# Inside the range Composer enforces for the current script ($lo/$hi)
within() { [[ -z "$lo" || "$1" -ge "$lo" ]] && [[ -z "$hi" || "$1" -le "$hi" ]]; }
# Same name in the core sense (_forge_is_script_app): case and punctuation
# ignored, equal, or one containing the other with the shorter at least 4 long.
name_matches() {
local a="${1,,}" b="${2,,}" short
a="${a//[^a-z0-9]/}"
b="${b//[^a-z0-9]/}"
[[ -n "$a" && -n "$b" ]] || return 1
[[ "$a" == "$b" ]] && return 0
short="$a"
((${#b} < ${#a})) && short="$b"
((${#short} >= 4)) || return 1
[[ "$a" == *"$b"* || "$b" == *"$a"* ]]
}
# The app's own repo from the GitHub calls in its scripts, for a Source line
# that names a website. Only a repo or app argument matching the script's
# name counts, so a deployed dependency is not taken for the app.
# Usage: repo_from_calls "slug" file... => sets REPLY to owner/repo or empty
repo_from_calls() {
local slug="$1" text app repo
shift
REPLY=""
text=$(cat "$@" 2>/dev/null | grep -v '^[[:space:]]*#' || true)
while read -r app repo; do
[[ -z "$repo" || "${repo,,}" == community-scripts/* ]] && continue
if name_matches "$slug" "${repo#*/}" || { [[ "$app" != "-" ]] && name_matches "$slug" "$app"; }; then
REPLY="$repo"
return
fi
done < <(
grep -oP '\b(?:fetch_and_deploy|check_for)_gh_(?:release|tag)\s+"?[^"\s]+"?\s+"?[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+' <<<"$text" |
sed -E 's/^[a-z_]+[[:space:]]+"?([^"[:space:]]+)"?[[:space:]]+"?/\1 /' || true
grep -oP '(?:get_latest_github_release\s+"?|(?<![\w.])github\.com/|api\.github\.com/repos/|codeload\.github\.com/)\K[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+' <<<"$text" |
sed -E 's/\.git$//; s/^/- /' || true
)
}
# PHP a script pins: X.Y, "dynamic", or "unset" (core's default).
php_version_of() {
local v
v=$(grep -oP '^[^#]*PHP_VERSION="?\K\d\.\d+' "$1" | head -1 || true)
if [[ -n "$v" ]]; then
echo "$v"
elif grep -qE '^[^#]*PHP_VERSION=\$\(' "$1"; then
echo "dynamic"
else
echo "unset"
fi
}
# One recursive tree per repo; files are looked up in it instead of
# probing raw URLs one by one. A truncated tree (very large repos)
# falls back to the repo root.
load_tree() {
local json
TREE_PATHS=""
TREE_TRUNCATED="true"
json=$(curl -sf -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/${REPO}/git/trees/${BRANCH//\//%2F}?recursive=1" 2>/dev/null || echo "")
[[ -z "$json" ]] && return
TREE_TRUNCATED=$(jq -r '.truncated // false' <<<"$json" 2>/dev/null || echo "true")
TREE_PATHS=$(jq -r '.tree[]? | select(.type == "blob") | .path' <<<"$json" 2>/dev/null || echo "")
}
# Shallowest file of that name. Below the repo root it only counts in a
# directory the scripts name, or for a Dockerfile in docker/ or build/:
# a composer.json beside a side tool says nothing about the app we install.
# Usage: fetch_file "composer.json" => sets REPLY to its content and
# FETCHED_PATH to its path, both empty when there is none
fetch_file() {
local name="$1" path="" p dir
REPLY=""
FETCHED_PATH=""
if [[ -n "$TREE_PATHS" ]]; then
while IFS= read -r p; do
dir="${p%/*}"
if [[ "$p" != */* || "$SCRIPT_TEXT" == *"/${dir}"* ]] ||
{ [[ "$name" == "Dockerfile" ]] && [[ "$dir" =~ ^\.?(docker|build|deploy|container)s?$ ]]; }; then
path="$p"
break
fi
done < <(grep -E "(^|/)${name//./\\.}$" <<<"$TREE_PATHS" |
grep -vE '(^|/)(tests?|docs?|examples?|samples?|fixtures|vendor|node_modules|third_party|\.github)/' |
awk -F/ '{print NF "\t" $0}' | sort -n | cut -f2- || true)
fi
[[ -z "$path" && "$TREE_TRUNCATED" == "true" ]] && path="$name"
[[ -z "$path" ]] && return
REPLY=$(curl -sf "https://raw.githubusercontent.com/${REPO}/${BRANCH}/${path}" 2>/dev/null || echo "")
if [[ -n "$REPLY" ]]; then
FETCHED_PATH="$path"
fi
}
# Collect results
declare -a issue_scripts=()
declare -a sync_scripts=()
declare -a report_lines=()
total=0
checked=0
drift_count=0
for script in install/*-install.sh; do
[[ ! -f "$script" ]] && continue
grep -qE '^[^#]*(\bsetup_php\b|PHP_VERSION=)' "$script" || continue
total=$((total + 1))
slug=$(basename "$script" | sed 's/-install\.sh$//')
our_version=$(php_version_of "$script")
# The update has to set up the same PHP, or a bump in install/ reaches
# new containers only. setup_php without PHP_VERSION switches to core's
# default, so that counts as out of step too.
ct_file="ct/${slug}.sh"
ct_display="—"
if [[ -f "$ct_file" ]] &&
grep -qE '^[^#]*(\b(check_for|fetch_and_deploy)_|(^|[[:space:];&|(])(composer|php)[[:space:]])' "$ct_file"; then
if grep -qE '^[^#]*\bsetup_php\b' "$ct_file"; then
ct_version=$(php_version_of "$ct_file")
else
ct_version="none"
fi
ct_display="$ct_version"
if [[ "$ct_version" != "$our_version" ]]; then
ct_display="⚠️ $ct_version"
sync_scripts+=("$slug|$our_version|$ct_version")
fi
fi
source_url=$(head -20 "$script" | grep -i '# Source:' | grep -oP 'https://github\.com/[^\s|]+' | head -1 || echo "")
REPO=$(sed -E 's|https://github\.com/||; s|\.git$||' <<<"$source_url" | cut -d/ -f1,2)
repo_note=""
if [[ ! "$REPO" =~ ^[^/]+/[^/]+$ ]]; then
repo_from_calls "$slug" "$script" "$ct_file"
REPO="$REPLY"
repo_note=" (from calls)"
fi
if [[ -z "$REPO" ]]; then
report_lines+=("| \`$slug\` | $our_version | $ct_display | — | — | — | — | ⏭️ No GitHub source |")
continue
fi
checked=$((checked + 1))
# A script that deploys a release is judged by that release: the default
# branch may already target a PHP no release needs yet. Both the tree
# API and raw.githubusercontent.com resolve HEAD to the default branch.
SCRIPT_TEXT=$(cat "$script" "$ct_file" 2>/dev/null || true)
BRANCH="HEAD"
ref_note=""
rel_lines=$(grep -iE '(fetch_and_deploy|check_for)_gh_(release|tag)|get_latest_github_release' <<<"$SCRIPT_TEXT" || true)
if [[ "${rel_lines,,}" == *"${REPO,,}"* ]]; then
tag=$(curl -sf -H "Authorization: token $GH_TOKEN" "https://api.github.com/repos/${REPO}/releases/latest" 2>/dev/null |
jq -r '.tag_name // empty' 2>/dev/null || echo "")
if [[ -n "$tag" ]]; then
BRANCH="$tag"
ref_note=" @ \`${tag}\`"
fi
fi
load_tree
# Composer enforces a locked package's upper bound only when the script
# runs it; a release that ships vendor/ is held to the lower bounds alone,
# which its code needs at run time.
runs_composer=0
grep -qE '^[^#]*\bcomposer (install|update)\b' "$script" && runs_composer=1
# require.php is the project's own range; composer.lock beside it holds
# what its locked packages need, and Composer refuses either breach.
requires="" platform="" lock_lo="" lock_hi="" lock_lo_pkg="" lock_hi_pkg=""
fetch_file "composer.json"
if [[ -n "$REPLY" ]]; then
requires=$(jq -r '.require.php // empty' <<<"$REPLY" 2>/dev/null || true)
platform=$(jq -r '.config.platform.php // empty' <<<"$REPLY" 2>/dev/null | grep -oP '^\d\.\d+' || true)
lock_path="composer.lock"
[[ "$FETCHED_PATH" == */* ]] && lock_path="${FETCHED_PATH%/*}/composer.lock"
lock=""
if [[ "$TREE_TRUNCATED" == "true" ]] || grep -qxF "$lock_path" <<<"$TREE_PATHS"; then
lock=$(curl -sf "https://raw.githubusercontent.com/${REPO}/${BRANCH}/${lock_path}" 2>/dev/null || echo "")
fi
if [[ -n "$lock" ]]; then
while IFS=$'\t' read -r pkg spec; do
[[ -z "$spec" ]] && continue
parse_constraint "$spec"
if [[ -n "$C_MIN" ]] && { [[ -z "$lock_lo" ]] || ((C_MIN > lock_lo)); }; then
lock_lo=$C_MIN lock_lo_pkg="$pkg"
fi
if ((runs_composer)) && [[ -n "$C_MAX" ]] && { [[ -z "$lock_hi" ]] || ((C_MAX < lock_hi)); }; then
lock_hi=$C_MAX lock_hi_pkg="$pkg"
fi
done < <(jq -r '.packages[]? | select(.require.php != null) | "\(.name)\t\(.require.php)"' <<<"$lock" 2>/dev/null || true)
fi
fi
# What upstream runs: the last php image in the Dockerfile, else
# config.platform.php, the version it resolves its lock against
docker_php=""
fetch_file "Dockerfile"
if [[ -n "$REPLY" ]]; then
docker_php=$(grep -oiP '^\s*FROM\s+(?:--platform=\S+\s+)?\S*?php[:-]?\K\d\.\d+(?![.\d]*-?(?:rc|alpha|beta))' <<<"$REPLY" | tail -1 || true)
[[ -z "$docker_php" ]] && docker_php=$(grep -oP '\bphp\K\d\.\d+(?=-(?:fpm|cli|common))' <<<"$REPLY" | head -1 || true)
fi
rec="" rec_hint=""
if [[ -n "$docker_php" ]]; then
rec=$((${docker_php%%.*} * 100 + ${docker_php#*.})) rec_hint="Dockerfile"
elif [[ -n "$platform" ]]; then
rec=$((${platform%%.*} * 100 + ${platform#*.})) rec_hint="config.platform.php"
fi
# The range Composer enforces: the project's, narrowed by its packages
parse_constraint "$requires"
lo="$C_MIN" hi="$C_MAX"
lo_hint="require.php: $requires" hi_hint="require.php: $requires"
if [[ -n "$lock_lo" ]] && { [[ -z "$lo" ]] || ((lock_lo > lo)); }; then
lo=$lock_lo lo_hint="composer.lock: ${lock_lo_pkg} needs ≥$(vstr "$lock_lo")"
fi
if [[ -n "$lock_hi" ]] && { [[ -z "$hi" ]] || ((lock_hi < hi)); }; then
hi=$lock_hi hi_hint="composer.lock: ${lock_hi_pkg} allows ≤$(vstr "$lock_hi")"
fi
status="✅"
target=""
hint=""
if [[ "$our_version" == "dynamic" ]]; then
status="🔄 Dynamic"
elif [[ "$our_version" == "unset" ]]; then
status="🔄 core default (no version pinned)"
else
ours=$((${our_version%%.*} * 100 + ${our_version#*.}))
if [[ -n "$lo" ]] && ((ours < lo)); then
target=$lo
[[ -n "$rec" ]] && within "$rec" && ((rec > ours)) && target=$rec
hint="$lo_hint"
status="🔴 Too old → $(vstr "$target") ($hint)"
elif [[ -n "$hi" ]] && ((ours > hi)); then
target=$hi
[[ -n "$rec" ]] && within "$rec" && target=$rec
hint="$hi_hint"
status="🔴 Too new → $(vstr "$target") ($hint)"
elif [[ -n "$lo" || -n "$hi" ]]; then
[[ -n "$rec" && "$rec" -ne "$ours" ]] && status="✅ (upstream runs $(vstr "$rec") via $rec_hint)"
elif [[ -n "$rec" ]] && ((ours < rec)); then
target=$rec
hint="$rec_hint"
status="🔸 Drift → upstream=$(vstr "$rec") ($rec_hint)"
elif [[ -n "$rec" ]] && ((ours > rec)); then
status="✅ Ahead of upstream ($(vstr "$rec") via $rec_hint)"
fi
fi
if [[ -n "$target" ]]; then
issue_scripts+=("$slug|$our_version|$(vstr "$target")|$hint|$REPO")
drift_count=$((drift_count + 1))
fi
lock_display="—"
if [[ -n "$lock_lo" || -n "$lock_hi" ]]; then
lock_display="${lock_lo:+≥$(vstr "$lock_lo")}${lock_lo:+${lock_hi:+ }}${lock_hi:+≤$(vstr "$lock_hi")}"
fi
# A | inside a cell ends it
requires_md="${requires:-—}"
report_lines+=("| \`$slug\` | $our_version | $ct_display | ${requires_md//|/\\|} | $lock_display | ${docker_php:-—} | [$REPO](https://github.com/$REPO)$repo_note$ref_note | ${status//|/\\|} |")
# Rate-limit to avoid GitHub secondary rate limits
sleep 0.3
done
sync_count=${#sync_scripts[@]}
echo ""
echo "========================================="
echo " Total scripts using PHP: $total"
echo " Checked (with GitHub source): $checked"
echo " Version drift detected: $drift_count"
echo " ct/ update out of step: $sync_count"
echo "========================================="
{
echo "drift_count=$drift_count"
echo "sync_count=$sync_count"
echo "total=$total"
echo "checked=$checked"
} >> "$GITHUB_OUTPUT"
printf '%s\n' "${issue_scripts[@]}" > /tmp/drift_scripts.txt 2>/dev/null || touch /tmp/drift_scripts.txt
printf '%s\n' "${sync_scripts[@]}" > /tmp/sync_scripts.txt 2>/dev/null || touch /tmp/sync_scripts.txt
{
echo "## PHP Version Drift Report"
echo ""
echo "**Generated:** $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "**Scripts checked:** $total | **With GitHub source:** $checked | **Drift detected:** $drift_count | **ct/ out of step:** $sync_count"
echo ""
echo "| Script | Our Version | ct/ update | require.php | composer.lock | Dockerfile | Upstream Repo | Status |"
echo "|--------|-------------|------------|-------------|---------------|------------|---------------|--------|"
printf '%s\n' "${report_lines[@]}" | sort
} > /tmp/drift_report.md
cat /tmp/drift_report.md
# One PR per script: the bumps are judged individually, and a combined PR
# is blocked by its worst member.
- name: Open a pull request per drifting script
if: steps.check.outputs.drift_count != '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
: >/tmp/drift_prs.txt
while IFS='|' read -r slug our upstream hint repo; do
[[ -z "$slug" ]] && continue
if [[ ! "$our" =~ ^[0-9]+\.[0-9]+$ || ! "$upstream" =~ ^[0-9]+\.[0-9]+$ ]]; then
printf '%s|manual||\n' "$slug" >>/tmp/drift_prs.txt
continue
fi
# The branch name carries the exact bump: open means waiting for a
# review, closed means someone said no to this bump.
branch="php-drift/${slug}-${our}-to-${upstream}"
existing=$(gh pr list --head "$branch" --state all \
--json number,state,url,labels --jq '.[0] // empty' 2>/dev/null || echo "")
if [[ -n "$existing" ]]; then
state=$(jq -r '.state' <<<"$existing")
url=$(jq -r '.url' <<<"$existing")
stale=$(jq -r '[.labels[]?.name] | index("stale") // empty' <<<"$existing")
case "$state" in
OPEN)
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
;;
MERGED)
printf '%s|merged|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
;;
*)
# A close by the stale bot is no verdict on the bump; any other close is.
if [[ -z "$stale" ]]; then
printf '%s|declined|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
fi
git push origin --delete "$branch" >/dev/null 2>&1 || true
;;
esac
fi
git checkout -q -B "$branch"
# PHP_VERSION plus the package, service, socket and /etc/php names.
old_re="${our//./\\.}"
changed=()
leftovers=""
uses_fpm=0
for f in "install/${slug}-install.sh" "ct/${slug}.sh"; do
[[ -f "$f" ]] || continue
grep -qE 'PHP_FPM="?YES|php[0-9.]*-fpm|php-fpm' "$f" && uses_fpm=1
if grep -qE "PHP_VERSION=\"?${old_re}([^0-9]|$)|php${old_re}([^0-9]|$)|/php/${old_re}/" "$f"; then
sed -i -E \
-e "s/(PHP_VERSION=)\"?${old_re}\"?([^0-9]|$)/\1\"${upstream}\"\2/g" \
-e "s/php${old_re}([^0-9]|$)/php${upstream}\1/g" \
-e "s#/php/${old_re}/#/php/${upstream}/#g" "$f"
changed+=("$f")
fi
rest=$(grep -nE "(^|[^0-9.])${old_re}([^0-9]|$)" "$f" | grep -vE '^[0-9]+:[[:space:]]*#' | head -10 || true)
[[ -n "$rest" ]] && leftovers+="${f}:"$'\n'"${rest}"$'\n'
done
if [[ ${#changed[@]} -eq 0 ]]; then
printf '%s|manual||\n' "$slug" >>/tmp/drift_prs.txt
git checkout -q main
continue
fi
git add "${changed[@]}"
git commit -q -m "${slug}: bump PHP from ${our} to ${upstream}"
if ! git push -q -u origin "$branch" 2>/dev/null; then
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
git checkout -q main
continue
fi
# Only an update that runs setup_php with the new version moves an
# existing container; renamed php${our} paths alone point it at nothing.
ct_sets_php=0
grep -qE "^[^#]*PHP_VERSION=\"?${upstream//./\\.}\"?[^0-9]" "ct/${slug}.sh" 2>/dev/null && ct_sets_php=1
notes=""
if [[ -f "ct/${slug}.sh" ]] && ((!ct_sets_php)); then
notes+="> [!WARNING]
> \`ct/${slug}.sh\` runs no \`setup_php\` for ${upstream} in its update, so existing containers stay on PHP ${our}. Add \`PHP_VERSION=\"${upstream}\" setup_php\` to the update before merging.
"
fi
if ((uses_fpm && ct_sets_php)); then
notes+="> [!IMPORTANT]
> On the next update setup_php removes PHP ${our} and installs ${upstream}. The web server config an existing container got at install time still names \`php${our}-fpm\` (socket or service): the update has to switch it, or the site goes down.
"
fi
if [[ -n "$leftovers" ]]; then
notes+="Still naming ${our} after the rewrite, check by hand:
\`\`\`
${leftovers}\`\`\`
"
fi
# The test command is written here: a PR opened with GITHUB_TOKEN does
# not start pr-test-command.yml.
body=$(cat <<PR_EOF
\`${slug}\` pins PHP **${our}**, upstream indicates **${upstream}** (${hint}) — [upstream repo](https://github.com/${repo}).
${notes}Opened automatically by the weekly PHP version drift check. **Nothing here has been tested.** Run it against a host before merging:
\`\`\`bash
export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/${branch}
bash -c "\$(curl -fsSL "\$COMMUNITY_SCRIPTS_URL/ct/${slug}.sh")"
\`\`\`
Both lines are needed — without \`COMMUNITY_SCRIPTS_URL\` the engine takes the \`install/\` script from \`main\`.
If the bump is wrong, **close this PR**. It gets recorded on the drift report and this exact bump is not proposed again.
PR_EOF
)
# Labels go on at creation: they exempt the PR from the template check,
# which runs on "opened". "keep-open" rather than "automated pr", which
# changelog-pr.yml drops.
if url=$(gh pr create \
--title "${slug}: bump PHP from ${our} to ${upstream}" \
--body "$body" \
--base main \
--head "$branch" \
--label "keep-open" \
--label "update script" \
--label "bugfix" 2>/dev/null); then
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
else
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
fi
git checkout -q main
done </tmp/drift_scripts.txt
echo "Pull request status per script:"
cat /tmp/drift_prs.txt
- name: Create or update summary issue
if: steps.check.outputs.drift_count != '0' || steps.check.outputs.sync_count != '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
TITLE="[Automated] PHP Version Drift Report"
DATE=$(date -u +%Y-%m-%d)
DRIFT_COUNT="${{ steps.check.outputs.drift_count }}"
SYNC_COUNT="${{ steps.check.outputs.sync_count }}"
TOTAL="${{ steps.check.outputs.total }}"
CHECKED="${{ steps.check.outputs.checked }}"
CHECKLIST=""
while IFS='|' read -r slug our_version upstream hint repo; do
[[ -z "$slug" ]] && continue
pr_state=""
pr_url=""
if [[ -f /tmp/drift_prs.txt ]]; then
pr_line=$(grep -m1 "^${slug}|" /tmp/drift_prs.txt || echo "")
pr_state=$(cut -d'|' -f2 <<<"$pr_line")
pr_url=$(cut -d'|' -f3 <<<"$pr_line")
fi
case "$pr_state" in
open) mark="- [ ]"; note="— ${pr_url}" ;;
declined) mark="- [x]"; note="— declined in ${pr_url}, not proposed again" ;;
merged) mark="- [x]"; note="— merged in ${pr_url}" ;;
manual) mark="- [ ]"; note="— needs a manual change (no fixed PHP version to rewrite)" ;;
failed) mark="- [ ]"; note="— could not open a PR automatically" ;;
*) mark="- [ ]"; note="" ;;
esac
CHECKLIST+="${mark} **\`${slug}\`** — ours: \`${our_version}\` → upstream: \`${upstream}\` (${hint}) — [repo](https://github.com/${repo}) ${note}"$'\n'
done < /tmp/drift_scripts.txt
SYNC_SECTION=""
if [[ "$SYNC_COUNT" != "0" ]]; then
SYNC_SECTION="### ct/ update out of step with install/"$'\n\n'
SYNC_SECTION+="The update does not set up the install's PHP, so a bump reaches new containers only. \`none\` means the update has no setup_php; \`unset\` means it switches to core's default."$'\n\n'
while IFS='|' read -r slug our_version ct_version; do
[[ -z "$slug" ]] && continue
SYNC_SECTION+="- [ ] **\`${slug}\`** — install/: \`${our_version}\`, ct/ update: \`${ct_version}\`"$'\n'
done < /tmp/sync_scripts.txt
fi
REPORT=$(cat /tmp/drift_report.md)
BODY=$(cat <<ISSUE_EOF
## PHP Version Drift Report — ${DATE}
**${DRIFT_COUNT}** script(s) with version drift detected (out of ${CHECKED} checked / ${TOTAL} total), **${SYNC_COUNT}** ct/ update(s) out of step.
🔴 means our PHP is outside what Composer accepts (\`require.php\` or a locked package), so the install breaks. 🔸 means upstream runs a newer PHP and declares no range.
### Scripts requiring investigation
${CHECKLIST:-None.}
${SYNC_SECTION}
### How to resolve
Each item above has its own pull request with the bump applied and a ready-to-run test command in the description.
1. Check upstream's composer.json / Dockerfile to confirm the PHP version
2. Run the test command from the PR against a host: a fresh install and an update of an existing container
3. Merge the PR if it works — the item disappears from this list on the next run
4. Close the PR if the bump is wrong: this exact bump is never proposed again
<details>
<summary>Full report</summary>
${REPORT}
</details>
---
*This issue is automatically created/updated weekly by the PHP version drift check workflow.*
*Last updated: ${DATE}*
ISSUE_EOF
)
EXISTING=$(gh issue list --state open --label "automated,dependencies" --search "\"[Automated] PHP Version Drift Report\"" --json number --jq '.[0].number // empty' 2>/dev/null || echo "")
if [[ -n "$EXISTING" ]]; then
gh issue edit "$EXISTING" --body "$BODY"
echo "Updated existing issue #$EXISTING"
else
gh issue create \
--title "$TITLE" \
--body "$BODY" \
--label "automated,dependencies"
echo "Created new summary issue"
fi
- name: Close issue if no drift
if: steps.check.outputs.drift_count == '0' && steps.check.outputs.sync_count == '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
EXISTING=$(gh issue list --state open --label "automated,dependencies" --search "\"[Automated] PHP Version Drift Report\"" --json number --jq '.[0].number // empty' 2>/dev/null || echo "")
if [[ -n "$EXISTING" ]]; then
gh issue close "$EXISTING" --comment "All PHP versions are in sync with upstream. Closing automatically."
echo "Closed issue #$EXISTING"
fi
+654
View File
@@ -0,0 +1,654 @@
name: Check Python Version Drift
on:
workflow_dispatch:
schedule:
# Weekly on Monday at 07:00 UTC, an hour after the Node.js check
- cron: "0 7 * * 1"
permissions:
contents: write
issues: write
pull-requests: write
jobs:
check-python-versions:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: coolify-runner
steps:
- name: Checkout Repository
uses: actions/checkout@v7
with:
ref: main
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq jq curl > /dev/null 2>&1
- name: Check upstream Python versions
id: check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
echo "================================================"
echo " Checking Python version drift in install scripts"
echo "================================================"
# Versions are compared minor-granular as major*100+minor: 3.12 -> 312.
vstr() { echo "$(($1 / 100)).$(($1 % 100))"; }
# One comparison as a range. Sets T_LO / T_HI, empty when open.
# Returns 1 for a clause that bounds nothing (!=).
clause_range() {
local op="$1" maj="$2" mi="$3" pat="$4"
T_LO="" T_HI=""
[[ "$mi" == "*" ]] && mi=""
[[ "$pat" == "*" ]] && pat=""
case "$op" in
"!=") return 1 ;;
">=") T_LO=$((maj * 100 + ${mi:-0})) ;;
">")
if [[ -n "$pat" ]]; then T_LO=$((maj * 100 + mi))
elif [[ -n "$mi" ]]; then T_LO=$((maj * 100 + mi + 1))
else T_LO=$(((maj + 1) * 100)); fi
;;
"<")
if [[ -n "$pat" && "$pat" -gt 0 ]]; then T_HI=$((maj * 100 + mi))
elif [[ -n "$mi" ]]; then T_HI=$((maj * 100 + mi - 1))
else T_HI=$(((maj - 1) * 100 + 99)); fi
;;
"<=")
if [[ -n "$mi" ]]; then T_HI=$((maj * 100 + mi)); else T_HI=$((maj * 100 + 99)); fi
;;
"~=")
T_LO=$((maj * 100 + ${mi:-0}))
if [[ -n "$pat" ]]; then T_HI=$T_LO; else T_HI=$((maj * 100 + 99)); fi
;;
"^")
T_LO=$((maj * 100 + ${mi:-0}))
T_HI=$((maj * 100 + 99))
;;
"~")
# Poetry: ~3.11 is >=3.11,<3.12
T_LO=$((maj * 100 + ${mi:-0}))
if [[ -n "$mi" ]]; then T_HI=$T_LO; else T_HI=$((maj * 100 + 99)); fi
;;
"" | "=" | "==" | "===")
if [[ -n "$mi" ]]; then T_LO=$((maj * 100 + mi)) T_HI=$T_LO
else T_LO=$((maj * 100)) T_HI=$((maj * 100 + 99)); fi
;;
*) return 1 ;;
esac
}
# requires-python (PEP 440) or a Poetry python constraint as a range:
# comma = AND, || = OR. Sets C_MIN / C_MAX, empty when open.
parse_constraint() {
local spec="$1" alt part a_lo a_hi lo_open=0 hi_open=0 seen=0
local -a alts parts
C_MIN="" C_MAX=""
spec="${spec//[[:space:]]/}"
spec="${spec//||/|}"
IFS='|' read -ra alts <<<"$spec"
for alt in "${alts[@]}"; do
alt="${alt#,}"
alt="${alt%,}"
[[ -z "$alt" || "$alt" == "*" ]] && { lo_open=1; hi_open=1; seen=1; continue; }
a_lo="" a_hi=""
IFS=',' read -ra parts <<<"$alt"
for part in "${parts[@]}"; do
[[ "$part" =~ ^(~=|===|==|!=|>=|<=|>|<|\^|~|=)?v?([0-9]+)(\.([0-9]+|\*))?(\.([0-9]+|\*))?(\.[0-9]+)*$ ]] || continue
clause_range "${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[4]}" "${BASH_REMATCH[6]}" || continue
[[ -n "$T_LO" ]] && { [[ -z "$a_lo" ]] || ((T_LO > a_lo)); } && a_lo=$T_LO
[[ -n "$T_HI" ]] && { [[ -z "$a_hi" ]] || ((T_HI < a_hi)); } && a_hi=$T_HI
done
seen=1
if [[ -z "$a_lo" ]]; then lo_open=1; elif [[ -z "$C_MIN" ]] || ((a_lo < C_MIN)); then C_MIN=$a_lo; fi
if [[ -z "$a_hi" ]]; then hi_open=1; elif [[ -z "$C_MAX" ]] || ((a_hi > C_MAX)); then C_MAX=$a_hi; fi
done
((seen)) || return 0
((lo_open)) && C_MIN=""
((hi_open)) && C_MAX=""
return 0
}
# Inside the range parse_constraint last set
within() { [[ -z "$C_MIN" || "$1" -ge "$C_MIN" ]] && [[ -z "$C_MAX" || "$1" -le "$C_MAX" ]]; }
# Same name in the core sense (_forge_is_script_app): case and punctuation
# ignored, equal, or one containing the other with the shorter at least 4 long.
name_matches() {
local a="${1,,}" b="${2,,}" short
a="${a//[^a-z0-9]/}"
b="${b//[^a-z0-9]/}"
[[ -n "$a" && -n "$b" ]] || return 1
[[ "$a" == "$b" ]] && return 0
short="$a"
((${#b} < ${#a})) && short="$b"
((${#short} >= 4)) || return 1
[[ "$a" == *"$b"* || "$b" == *"$a"* ]]
}
# The app's own repo from the GitHub calls in its scripts, for a Source line
# that names a website. Only a repo or app argument matching the script's
# name counts, so a deployed dependency is not taken for the app.
# Usage: repo_from_calls "slug" file... => sets REPLY to owner/repo or empty
repo_from_calls() {
local slug="$1" text app repo
shift
REPLY=""
text=$(cat "$@" 2>/dev/null | grep -v '^[[:space:]]*#' || true)
while read -r app repo; do
[[ -z "$repo" || "${repo,,}" == community-scripts/* ]] && continue
if name_matches "$slug" "${repo#*/}" || { [[ "$app" != "-" ]] && name_matches "$slug" "$app"; }; then
REPLY="$repo"
return
fi
done < <(
grep -oP '\b(?:fetch_and_deploy|check_for)_gh_(?:release|tag)\s+"?[^"\s]+"?\s+"?[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+' <<<"$text" |
sed -E 's/^[a-z_]+[[:space:]]+"?([^"[:space:]]+)"?[[:space:]]+"?/\1 /' || true
grep -oP '(?:get_latest_github_release\s+"?|(?<![\w.])github\.com/|api\.github\.com/repos/|codeload\.github\.com/)\K[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+' <<<"$text" |
sed -E 's/\.git$//; s/^/- /' || true
)
}
# Python a script pins: X.Y, "dynamic", or "unset" (uv then picks one
# that satisfies the project's requires-python). setup_uv only installs
# PYTHON_VERSION; the venv takes its version from --python and the like.
python_version_of() {
local f="$1" v
v=$(grep -oP '^[^#]*PYTHON_VERSION="?\K3\.\d+' "$f" | head -1 || true)
[[ -z "$v" ]] && v=$(grep -oP '^[^#]*(?:--python[ =]"?|-p "?python|uv python install "?|UV_PYTHON="?)\K3\.\d+' "$f" | head -1 || true)
if [[ -n "$v" ]]; then
echo "$v"
elif grep -qE '^[^#]*PYTHON_VERSION=\$\(' "$f"; then
echo "dynamic"
else
echo "unset"
fi
}
# One recursive tree per repo; files are looked up in it instead of
# probing raw URLs one by one. A truncated tree (very large repos)
# falls back to the repo root.
load_tree() {
local json
TREE_PATHS=""
TREE_TRUNCATED="true"
json=$(curl -sf -H "Authorization: token $GH_TOKEN" \
"https://api.github.com/repos/${REPO}/git/trees/${BRANCH//\//%2F}?recursive=1" 2>/dev/null || echo "")
[[ -z "$json" ]] && return
TREE_TRUNCATED=$(jq -r '.truncated // false' <<<"$json" 2>/dev/null || echo "true")
TREE_PATHS=$(jq -r '.tree[]? | select(.type == "blob") | .path' <<<"$json" 2>/dev/null || echo "")
}
# Shallowest file of that name. Below the repo root it only counts in a
# directory the scripts name (apps/parser-api), or for a Dockerfile in
# docker/ or build/: a pyproject.toml beside a side tool says nothing
# about the app we install.
# Usage: fetch_file "pyproject.toml" => sets REPLY to its content or empty
fetch_file() {
local name="$1" path="" p dir
REPLY=""
if [[ -n "$TREE_PATHS" ]]; then
while IFS= read -r p; do
dir="${p%/*}"
if [[ "$p" != */* || "$SCRIPT_TEXT" == *"/${dir}"* ]] ||
{ [[ "$name" == "Dockerfile" ]] && [[ "$dir" =~ ^\.?(docker|build|deploy|container)s?$ ]]; }; then
path="$p"
break
fi
done < <(grep -E "(^|/)${name//./\\.}$" <<<"$TREE_PATHS" |
grep -vE '(^|/)(tests?|docs?|examples?|samples?|fixtures|vendor|node_modules|third_party|\.github)/' |
awk -F/ '{print NF "\t" $0}' | sort -n | cut -f2- || true)
fi
[[ -z "$path" && "$TREE_TRUNCATED" == "true" ]] && path="$name"
[[ -z "$path" ]] && return
REPLY=$(curl -sf "https://raw.githubusercontent.com/${REPO}/${BRANCH}/${path}" 2>/dev/null || echo "")
}
# Collect results
declare -a issue_scripts=()
declare -a sync_scripts=()
declare -a report_lines=()
total=0
checked=0
drift_count=0
for script in install/*-install.sh; do
[[ ! -f "$script" ]] && continue
grep -qE '^[^#]*(\bsetup_uv\b|PYTHON_VERSION=)' "$script" || continue
total=$((total + 1))
slug=$(basename "$script" | sed 's/-install\.sh$//')
our_version=$(python_version_of "$script")
# The update has to use the same Python, or a bump in install/
# reaches new containers only: an existing venv keeps its version
# until the update recreates it.
ct_file="ct/${slug}.sh"
ct_display="—"
if [[ -f "$ct_file" ]] &&
grep -qE '^[^#]*(\b(check_for|fetch_and_deploy)_|(^|[[:space:];&|(])(uv|pip|pip3)[[:space:]])' "$ct_file"; then
ct_version=$(python_version_of "$ct_file")
# uv sync rebuilds the venv itself once requires-python excludes its Python
if [[ "$ct_version" == "unset" ]] && grep -qE '^[^#]*\buv sync\b' "$ct_file"; then
ct_version="$our_version"
fi
ct_display="$ct_version"
if [[ "$ct_version" != "$our_version" ]]; then
ct_display="⚠️ $ct_version"
sync_scripts+=("$slug|$our_version|$ct_version")
fi
fi
source_url=$(head -20 "$script" | grep -i '# Source:' | grep -oP 'https://github\.com/[^\s|]+' | head -1 || echo "")
REPO=$(sed -E 's|https://github\.com/||; s|\.git$||' <<<"$source_url" | cut -d/ -f1,2)
repo_note=""
if [[ ! "$REPO" =~ ^[^/]+/[^/]+$ ]]; then
repo_from_calls "$slug" "$script" "$ct_file"
REPO="$REPLY"
repo_note=" (from calls)"
fi
if [[ -z "$REPO" ]]; then
report_lines+=("| \`$slug\` | $our_version | $ct_display | — | — | — | — | ⏭️ No GitHub source |")
continue
fi
checked=$((checked + 1))
# A script that deploys a release is judged by that release: the default
# branch may already target a Python no release needs yet. Both the tree
# API and raw.githubusercontent.com resolve HEAD to the default branch.
SCRIPT_TEXT=$(cat "$script" "$ct_file" 2>/dev/null || true)
BRANCH="HEAD"
ref_note=""
rel_lines=$(grep -iE '(fetch_and_deploy|check_for)_gh_(release|tag)|get_latest_github_release' <<<"$SCRIPT_TEXT" || true)
if [[ "${rel_lines,,}" == *"${REPO,,}"* ]]; then
tag=$(curl -sf -H "Authorization: token $GH_TOKEN" "https://api.github.com/repos/${REPO}/releases/latest" 2>/dev/null |
jq -r '.tag_name // empty' 2>/dev/null || echo "")
if [[ -n "$tag" ]]; then
BRANCH="$tag"
ref_note=" @ \`${tag}\`"
fi
fi
load_tree
# uv sync takes the interpreter from requires-python itself, so a pin
# outside that range is unused rather than broken.
uv_sync=0
if grep -qE '^[^#]*\buv sync\b' "$script" && ! grep -qE '^[^#]*\buv sync\b.*(--python|-p )' "$script"; then
uv_sync=1
fi
# requires-python (PEP 621), Poetry's python dependency, or setup.py/cfg
requires=""
fetch_file "pyproject.toml"
if [[ -n "$REPLY" ]]; then
requires=$(grep -oP '^\s*requires-python\s*=\s*["\x27]\K[^"\x27]+' <<<"$REPLY" | head -1 || true)
[[ -z "$requires" ]] && requires=$(awk '
/^\[/ { in_deps = ($0 ~ /^\[tool\.poetry\.dependencies\]/) }
in_deps && /^[[:space:]]*python[[:space:]]*=/ { print; exit }' <<<"$REPLY" |
grep -oP '=\s*["\x27]\K[^"\x27]+' || true)
fi
if [[ -z "$requires" ]]; then
for f in setup.cfg setup.py; do
fetch_file "$f"
requires=$(grep -oP 'python_requires\s*=\s*["\x27]?\K[^"\x27\n]+' <<<"$REPLY" | head -1 | sed 's/[[:space:],]*$//' || true)
[[ -n "$requires" ]] && break
done
fi
# What upstream runs: .python-version, else the last python image in the Dockerfile
pyver_file=""
fetch_file ".python-version"
[[ -n "$REPLY" ]] && pyver_file=$(grep -oP '^\s*(?:cpython-)?\K3\.\d+' <<<"$REPLY" | head -1 || true)
docker_py=""
fetch_file "Dockerfile"
[[ -n "$REPLY" ]] && docker_py=$(grep -oiP '^\s*FROM\s+(?:--platform=\S+\s+)?\S*?python:?\K3\.\d+(?![.\d]*-?(?:rc|alpha|beta|a\d|b\d))' <<<"$REPLY" | tail -1 || true)
rec="" rec_hint=""
if [[ -n "$pyver_file" ]]; then
rec=$((${pyver_file%%.*} * 100 + ${pyver_file#*.})) rec_hint=".python-version"
elif [[ -n "$docker_py" ]]; then
rec=$((${docker_py%%.*} * 100 + ${docker_py#*.})) rec_hint="Dockerfile"
fi
parse_constraint "$requires"
status="✅"
target=""
hint=""
if [[ "$our_version" == "dynamic" ]]; then
status="🔄 Dynamic"
elif [[ "$our_version" == "unset" ]]; then
status="🔄 uv picks (no version pinned)"
else
ours=$((${our_version%%.*} * 100 + ${our_version#*.}))
if [[ -n "$C_MIN" ]] && ((ours < C_MIN)); then
target=$C_MIN
[[ -n "$rec" ]] && within "$rec" && ((rec > ours)) && target=$rec
hint="requires-python: $requires"
status="🔴 Too old → $(vstr "$target") ($hint)"
elif [[ -n "$C_MAX" ]] && ((ours > C_MAX)); then
target=$C_MAX
[[ -n "$rec" ]] && within "$rec" && target=$rec
hint="requires-python: $requires"
status="🔴 Too new → $(vstr "$target") ($hint)"
fi
if [[ -n "$target" ]] && ((uv_sync)); then
hint="uv sync follows requires-python: $requires"
status="🔸 Pin unused → $(vstr "$target") ($hint)"
elif [[ -n "$target" ]]; then
:
elif [[ -n "$requires" ]]; then
[[ -n "$rec" && "$rec" -ne "$ours" ]] && status="✅ (upstream runs $(vstr "$rec") via $rec_hint)"
elif [[ -n "$rec" ]] && ((ours < rec)); then
target=$rec
hint="$rec_hint"
status="🔸 Drift → upstream=$(vstr "$rec") ($rec_hint)"
elif [[ -n "$rec" ]] && ((ours > rec)); then
status="✅ Ahead of upstream ($(vstr "$rec") via $rec_hint)"
fi
fi
if [[ -n "$target" ]]; then
issue_scripts+=("$slug|$our_version|$(vstr "$target")|$hint|$REPO")
drift_count=$((drift_count + 1))
fi
# A | inside a cell ends it
requires_md="${requires:-—}"
report_lines+=("| \`$slug\` | $our_version | $ct_display | ${requires_md//|/\\|} | ${pyver_file:-—} | ${docker_py:-—} | [$REPO](https://github.com/$REPO)$repo_note$ref_note | ${status//|/\\|} |")
# Rate-limit to avoid GitHub secondary rate limits
sleep 0.3
done
sync_count=${#sync_scripts[@]}
echo ""
echo "========================================="
echo " Total scripts using Python: $total"
echo " Checked (with GitHub source): $checked"
echo " Version drift detected: $drift_count"
echo " ct/ update out of step: $sync_count"
echo "========================================="
{
echo "drift_count=$drift_count"
echo "sync_count=$sync_count"
echo "total=$total"
echo "checked=$checked"
} >> "$GITHUB_OUTPUT"
printf '%s\n' "${issue_scripts[@]}" > /tmp/drift_scripts.txt 2>/dev/null || touch /tmp/drift_scripts.txt
printf '%s\n' "${sync_scripts[@]}" > /tmp/sync_scripts.txt 2>/dev/null || touch /tmp/sync_scripts.txt
{
echo "## Python Version Drift Report"
echo ""
echo "**Generated:** $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "**Scripts checked:** $total | **With GitHub source:** $checked | **Drift detected:** $drift_count | **ct/ out of step:** $sync_count"
echo ""
echo "| Script | Our Version | ct/ update | requires-python | .python-version | Dockerfile | Upstream Repo | Status |"
echo "|--------|-------------|------------|-----------------|-----------------|------------|---------------|--------|"
printf '%s\n' "${report_lines[@]}" | sort
} > /tmp/drift_report.md
cat /tmp/drift_report.md
# One PR per script: the bumps are judged individually, and a combined PR
# is blocked by its worst member.
- name: Open a pull request per drifting script
if: steps.check.outputs.drift_count != '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
: >/tmp/drift_prs.txt
while IFS='|' read -r slug our upstream hint repo; do
[[ -z "$slug" ]] && continue
if [[ ! "$our" =~ ^[0-9]+\.[0-9]+$ || ! "$upstream" =~ ^[0-9]+\.[0-9]+$ ]]; then
printf '%s|manual||\n' "$slug" >>/tmp/drift_prs.txt
continue
fi
# The branch name carries the exact bump: open means waiting for a
# review, closed means someone said no to this bump.
branch="python-drift/${slug}-${our}-to-${upstream}"
existing=$(gh pr list --head "$branch" --state all \
--json number,state,url,labels --jq '.[0] // empty' 2>/dev/null || echo "")
if [[ -n "$existing" ]]; then
state=$(jq -r '.state' <<<"$existing")
url=$(jq -r '.url' <<<"$existing")
stale=$(jq -r '[.labels[]?.name] | index("stale") // empty' <<<"$existing")
case "$state" in
OPEN)
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
;;
MERGED)
printf '%s|merged|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
;;
*)
# A close by the stale bot is no verdict on the bump; any other close is.
if [[ -z "$stale" ]]; then
printf '%s|declined|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
continue
fi
git push origin --delete "$branch" >/dev/null 2>&1 || true
;;
esac
fi
git checkout -q -B "$branch"
# PYTHON_VERSION plus the places a venv or uv names the version.
old_re="${our//./\\.}"
uv_re='(--python[ =]"?|-p "?python|uv python install "?|UV_PYTHON="?)'
changed=()
leftovers=""
for f in "install/${slug}-install.sh" "ct/${slug}.sh"; do
[[ -f "$f" ]] || continue
if grep -qE "(PYTHON_VERSION=\"?|${uv_re})${old_re}([^0-9]|$)" "$f"; then
sed -i -E \
-e "s/(PYTHON_VERSION=)\"?${old_re}(\.[0-9]+)?\"?/\1\"${upstream}\"/g" \
-e "s/${uv_re}${old_re}([^0-9]|$)/\1${upstream}\2/g" "$f"
changed+=("$f")
fi
rest=$(grep -nE "(^|[^0-9.])${old_re}([^0-9]|$)" "$f" | grep -vE '^[0-9]+:[[:space:]]*#' | head -10 || true)
[[ -n "$rest" ]] && leftovers+="${f}:"$'\n'"${rest}"$'\n'
done
if [[ ${#changed[@]} -eq 0 ]]; then
printf '%s|manual||\n' "$slug" >>/tmp/drift_prs.txt
git checkout -q main
continue
fi
git add "${changed[@]}"
git commit -q -m "${slug}: bump Python from ${our} to ${upstream}"
if ! git push -q -u origin "$branch" 2>/dev/null; then
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
git checkout -q main
continue
fi
notes=""
if [[ -f "ct/${slug}.sh" && " ${changed[*]} " != *" ct/${slug}.sh "* ]]; then
notes+="> [!WARNING]
> \`ct/${slug}.sh\` names no Python ${our} in its update, so existing containers keep their venv on it. Make the update recreate the venv with ${upstream} before merging.
"
fi
if [[ -n "$leftovers" ]]; then
notes+="Still naming ${our} after the rewrite, check by hand:
\`\`\`
${leftovers}\`\`\`
"
fi
# The test command is written here: a PR opened with GITHUB_TOKEN does
# not start pr-test-command.yml.
body=$(cat <<PR_EOF
\`${slug}\` pins Python **${our}**, upstream indicates **${upstream}** (${hint}) — [upstream repo](https://github.com/${repo}).
${notes}Opened automatically by the weekly Python version drift check. **Nothing here has been tested.** Run it against a host before merging:
\`\`\`bash
export COMMUNITY_SCRIPTS_URL=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/${branch}
bash -c "\$(curl -fsSL "\$COMMUNITY_SCRIPTS_URL/ct/${slug}.sh")"
\`\`\`
Both lines are needed — without \`COMMUNITY_SCRIPTS_URL\` the engine takes the \`install/\` script from \`main\`.
If the bump is wrong, **close this PR**. It gets recorded on the drift report and this exact bump is not proposed again.
PR_EOF
)
# Labels go on at creation: they exempt the PR from the template check,
# which runs on "opened". "keep-open" rather than "automated pr", which
# changelog-pr.yml drops.
if url=$(gh pr create \
--title "${slug}: bump Python from ${our} to ${upstream}" \
--body "$body" \
--base main \
--head "$branch" \
--label "keep-open" \
--label "update script" \
--label "bugfix" 2>/dev/null); then
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
else
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
fi
git checkout -q main
done </tmp/drift_scripts.txt
echo "Pull request status per script:"
cat /tmp/drift_prs.txt
- name: Create or update summary issue
if: steps.check.outputs.drift_count != '0' || steps.check.outputs.sync_count != '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
TITLE="[Automated] Python Version Drift Report"
DATE=$(date -u +%Y-%m-%d)
DRIFT_COUNT="${{ steps.check.outputs.drift_count }}"
SYNC_COUNT="${{ steps.check.outputs.sync_count }}"
TOTAL="${{ steps.check.outputs.total }}"
CHECKED="${{ steps.check.outputs.checked }}"
CHECKLIST=""
while IFS='|' read -r slug our_version upstream hint repo; do
[[ -z "$slug" ]] && continue
pr_state=""
pr_url=""
if [[ -f /tmp/drift_prs.txt ]]; then
pr_line=$(grep -m1 "^${slug}|" /tmp/drift_prs.txt || echo "")
pr_state=$(cut -d'|' -f2 <<<"$pr_line")
pr_url=$(cut -d'|' -f3 <<<"$pr_line")
fi
case "$pr_state" in
open) mark="- [ ]"; note="— ${pr_url}" ;;
declined) mark="- [x]"; note="— declined in ${pr_url}, not proposed again" ;;
merged) mark="- [x]"; note="— merged in ${pr_url}" ;;
manual) mark="- [ ]"; note="— needs a manual change (no fixed Python version to rewrite)" ;;
failed) mark="- [ ]"; note="— could not open a PR automatically" ;;
*) mark="- [ ]"; note="" ;;
esac
CHECKLIST+="${mark} **\`${slug}\`** — ours: \`${our_version}\` → upstream: \`${upstream}\` (${hint}) — [repo](https://github.com/${repo}) ${note}"$'\n'
done < /tmp/drift_scripts.txt
SYNC_SECTION=""
if [[ "$SYNC_COUNT" != "0" ]]; then
SYNC_SECTION="### ct/ update out of step with install/"$'\n\n'
SYNC_SECTION+="The update does not use the install's Python, so a bump reaches new containers only: an existing venv keeps its version until the update recreates it."$'\n\n'
while IFS='|' read -r slug our_version ct_version; do
[[ -z "$slug" ]] && continue
SYNC_SECTION+="- [ ] **\`${slug}\`** — install/: \`${our_version}\`, ct/ update: \`${ct_version}\`"$'\n'
done < /tmp/sync_scripts.txt
fi
REPORT=$(cat /tmp/drift_report.md)
BODY=$(cat <<ISSUE_EOF
## Python Version Drift Report — ${DATE}
**${DRIFT_COUNT}** script(s) with version drift detected (out of ${CHECKED} checked / ${TOTAL} total), **${SYNC_COUNT}** ct/ update(s) out of step.
🔴 means our Python is outside upstream's \`requires-python\`, so the install breaks. 🔸 *Pin unused* means the install runs \`uv sync\`, which takes its Python from \`requires-python\`, so the pin only installs an interpreter nobody uses. 🔸 *Drift* means upstream runs a newer Python and declares no range.
### Scripts requiring investigation
${CHECKLIST:-None.}
${SYNC_SECTION}
### How to resolve
Each item above has its own pull request with the bump applied and a ready-to-run test command in the description.
1. Check upstream's pyproject.toml / Dockerfile to confirm the Python version
2. Run the test command from the PR against a host
3. Merge the PR if it works — the item disappears from this list on the next run
4. Close the PR if the bump is wrong: this exact bump is never proposed again
<details>
<summary>Full report</summary>
${REPORT}
</details>
---
*This issue is automatically created/updated weekly by the Python version drift check workflow.*
*Last updated: ${DATE}*
ISSUE_EOF
)
EXISTING=$(gh issue list --state open --label "automated,dependencies" --search "\"[Automated] Python Version Drift Report\"" --json number --jq '.[0].number // empty' 2>/dev/null || echo "")
if [[ -n "$EXISTING" ]]; then
gh issue edit "$EXISTING" --body "$BODY"
echo "Updated existing issue #$EXISTING"
else
gh issue create \
--title "$TITLE" \
--body "$BODY" \
--label "automated,dependencies"
echo "Created new summary issue"
fi
- name: Close issue if no drift
if: steps.check.outputs.drift_count == '0' && steps.check.outputs.sync_count == '0'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
EXISTING=$(gh issue list --state open --label "automated,dependencies" --search "\"[Automated] Python Version Drift Report\"" --json number --jq '.[0].number // empty' 2>/dev/null || echo "")
if [[ -n "$EXISTING" ]]; then
gh issue close "$EXISTING" --comment "All Python versions are in sync with upstream. Closing automatically."
echo "Closed issue #$EXISTING"
fi
+54
View File
@@ -0,0 +1,54 @@
name: Record closed PHP drift PR
# The drift check opens one PR per script and treats a closed one as a verdict:
# that bump is not proposed again. Record it on the report so the decision is
# visible there.
on:
pull_request:
types: [closed]
jobs:
record:
if: >
github.repository == 'community-scripts/ProxmoxVE' &&
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'php-drift/')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v9
with:
script: |
const pr = context.payload.pull_request;
const owner = context.repo.owner;
const repo = context.repo.repo;
// php-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^php-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
if (!m) return;
const [, slug, from, to] = m;
// A close by the stale bot is a lapsed review, not a decision on
// the bump, and the drift check reopens those.
const stale = pr.labels.some((l) => l.name === 'stale');
const issues = await github.rest.issues.listForRepo({
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
});
const issue = issues.data.find(
(i) => !i.pull_request && i.title === '[Automated] PHP Version Drift Report',
);
if (!issue) return;
const body = stale
? `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed as stale. `
+ `No decision was recorded, so the next drift check opens it again.`
: `\`${slug}\` — PR #${pr.number} (PHP ${from} → ${to}) was closed without merging. `
+ `The script keeps PHP ${from} and this bump will not be proposed again. `
+ `If it was closed by mistake, reopen the PR.`;
await github.rest.issues.createComment({
owner, repo, issue_number: issue.number, body,
});
+54
View File
@@ -0,0 +1,54 @@
name: Record closed Python drift PR
# The drift check opens one PR per script and treats a closed one as a verdict:
# that bump is not proposed again. Record it on the report so the decision is
# visible there.
on:
pull_request:
types: [closed]
jobs:
record:
if: >
github.repository == 'community-scripts/ProxmoxVE' &&
github.event.pull_request.merged == false &&
startsWith(github.event.pull_request.head.ref, 'python-drift/')
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/github-script@v9
with:
script: |
const pr = context.payload.pull_request;
const owner = context.repo.owner;
const repo = context.repo.repo;
// python-drift/<slug>-<from>-to-<to>
const m = pr.head.ref.match(/^python-drift\/(.+)-(\d+\.\d+)-to-(\d+\.\d+)$/);
if (!m) return;
const [, slug, from, to] = m;
// A close by the stale bot is a lapsed review, not a decision on
// the bump, and the drift check reopens those.
const stale = pr.labels.some((l) => l.name === 'stale');
const issues = await github.rest.issues.listForRepo({
owner, repo, state: 'open', labels: 'automated,dependencies', per_page: 100,
});
const issue = issues.data.find(
(i) => !i.pull_request && i.title === '[Automated] Python Version Drift Report',
);
if (!issue) return;
const body = stale
? `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed as stale. `
+ `No decision was recorded, so the next drift check opens it again.`
: `\`${slug}\` — PR #${pr.number} (Python ${from} → ${to}) was closed without merging. `
+ `The script keeps Python ${from} and this bump will not be proposed again. `
+ `If it was closed by mistake, reopen the PR.`;
await github.rest.issues.createComment({
owner, repo, issue_number: issue.number, body,
});
+124
View File
@@ -587,6 +587,130 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-27
### 🆕 New Scripts
- Floppy [@MickLesk](https://github.com/MickLesk) ([#19099](https://github.com/community-scripts/ProxmoxVE/pull/19099))
### 🚀 Updated Scripts
- #### ✨ New Features
- Gramps Web: install AI chat dependencies [@owenvoke](https://github.com/owenvoke) ([#19092](https://github.com/community-scripts/ProxmoxVE/pull/19092))
### 💾 Core
- incus: check an imported VM image on the target remote [@MickLesk](https://github.com/MickLesk) ([core#309](https://github.com/community-scripts/core/pull/309))
- Offer no DNS retry to a container without a connection out [@MickLesk](https://github.com/MickLesk) ([core#310](https://github.com/community-scripts/core/pull/310))
- Refuse a static address without a gateway before pct create [@MickLesk](https://github.com/MickLesk) ([core#312](https://github.com/community-scripts/core/pull/312))
- Protect a container once its install succeeded, not at creation [@MickLesk](https://github.com/MickLesk) ([core#311](https://github.com/community-scripts/core/pull/311))
### 🧰 Tools
- #### 🔧 Refactor
- update-apps: say what tar or zstd said when a backup fails [@MickLesk](https://github.com/MickLesk) ([#19066](https://github.com/community-scripts/ProxmoxVE/pull/19066))
### 📚 Documentation
- github: add a weekly Python version drift check [@MickLesk](https://github.com/MickLesk) ([#19095](https://github.com/community-scripts/ProxmoxVE/pull/19095))
- github: add a weekly PHP version drift check [@MickLesk](https://github.com/MickLesk) ([#19094](https://github.com/community-scripts/ProxmoxVE/pull/19094))
## 2026-11-26
### 🆕 New Scripts
- Bifrost [@cheesejaguar](https://github.com/cheesejaguar) ([#19028](https://github.com/community-scripts/ProxmoxVE/pull/19028))
- SurfSense [@MickLesk](https://github.com/MickLesk) ([#19029](https://github.com/community-scripts/ProxmoxVE/pull/19029))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- LibreChat: rebuild the RAG API venv on update, keep uploads [@MickLesk](https://github.com/MickLesk) ([#19056](https://github.com/community-scripts/ProxmoxVE/pull/19056))
- Cloudflare-DDNS: give the Go build 1 GB [@MickLesk](https://github.com/MickLesk) ([#19059](https://github.com/community-scripts/ProxmoxVE/pull/19059))
- Vane: skip the CUDA binaries of onnxruntime-node [@MickLesk](https://github.com/MickLesk) ([#19060](https://github.com/community-scripts/ProxmoxVE/pull/19060))
- UniFi OS Server: retry the installer download [@MickLesk](https://github.com/MickLesk) ([#19062](https://github.com/community-scripts/ProxmoxVE/pull/19062))
- Umami: pin pnpm from engines.pnpm on install, set APP_SECRET [@MickLesk](https://github.com/MickLesk) ([#19057](https://github.com/community-scripts/ProxmoxVE/pull/19057))
- FreshRSS: fix automatic feeds update [@CrazyWolf13](https://github.com/CrazyWolf13) ([#19044](https://github.com/community-scripts/ProxmoxVE/pull/19044))
### 💾 Core
- Incus: read architecture, GPUs and pool space from the target remote [@MickLesk](https://github.com/MickLesk) ([core#308](https://github.com/community-scripts/core/pull/308))
- Incus: pick the VM storage pool from the host instead of assuming 'default' [@MickLesk](https://github.com/MickLesk) ([core#307](https://github.com/community-scripts/core/pull/307))
- core: say what the container reaches when its base packages fail [@MickLesk](https://github.com/MickLesk) ([core#305](https://github.com/community-scripts/core/pull/305))
- Incus: check VM support on the target remote instead of local /dev/kvm [@MickLesk](https://github.com/MickLesk) ([core#306](https://github.com/community-scripts/core/pull/306))
### 🧰 Tools
- #### ✨ New Features
- PVE Post Install: support Proxmox VE 9.3 [@MickLesk](https://github.com/MickLesk) ([#19053](https://github.com/community-scripts/ProxmoxVE/pull/19053))
## 2026-11-25
### 🆕 New Scripts
- NextDNS [@nberardi](https://github.com/nberardi) ([#18980](https://github.com/community-scripts/ProxmoxVE/pull/18980))
- Rauthy [@MickLesk](https://github.com/MickLesk) ([#19021](https://github.com/community-scripts/ProxmoxVE/pull/19021))
- Formbricks [@MickLesk](https://github.com/MickLesk) ([#19022](https://github.com/community-scripts/ProxmoxVE/pull/19022))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Dispatcharr: load the gevent monkey-patch in uWSGI like upstream [@mandishshah](https://github.com/mandishshah) ([#19045](https://github.com/community-scripts/ProxmoxVE/pull/19045))
- Odoo: update PDFKiln on each release, and replace wkhtmltox too [@Jamalofski](https://github.com/Jamalofski) ([#19035](https://github.com/community-scripts/ProxmoxVE/pull/19035))
- #### 💥 Breaking Changes
- Hister is now Nogon [@MickLesk](https://github.com/MickLesk) ([#19031](https://github.com/community-scripts/ProxmoxVE/pull/19031))
- #### 🔧 Refactor
- ERPNext: install PDFKiln instead of the archived wkhtmltox build [@Jamalofski](https://github.com/Jamalofski) ([#19025](https://github.com/community-scripts/ProxmoxVE/pull/19025))
### 💾 Core
- pve: say why pct create failed in the message itself [@MickLesk](https://github.com/MickLesk) ([core#298](https://github.com/community-scripts/core/pull/298))
- core: end the wait for an address once the bridge shows no DHCP server [@MickLesk](https://github.com/MickLesk) ([core#300](https://github.com/community-scripts/core/pull/300))
- pve: wait for a container's state to settle before calling it unenterable [@MickLesk](https://github.com/MickLesk) ([core#299](https://github.com/community-scripts/core/pull/299))
- incus: keep apt's output and say what the container reaches when Incus base packages fail [@MickLesk](https://github.com/MickLesk) ([core#297](https://github.com/community-scripts/core/pull/297))
- incus: share the VM image download between the Proxmox and Incus backends [@MickLesk](https://github.com/MickLesk) ([core#296](https://github.com/community-scripts/core/pull/296))
- core: add PVE 9.3 version support [@charles-young](https://github.com/charles-young) ([core#301](https://github.com/community-scripts/core/pull/301))
- core: back up and restore around a mount below the path [@MickLesk](https://github.com/MickLesk) ([core#295](https://github.com/community-scripts/core/pull/295))
### 🧰 Tools
- Immich Power Tools ([#19023](https://github.com/community-scripts/ProxmoxVE/pull/19023))
- VueTorrent ([#19024](https://github.com/community-scripts/ProxmoxVE/pull/19024))
- #### 🐞 Bug Fixes
- Monitor-All: ping the container's net0 address [@MickLesk](https://github.com/MickLesk) ([#19030](https://github.com/community-scripts/ProxmoxVE/pull/19030))
## 2026-11-24
### 🆕 New Scripts
- 8mblocal [@MickLesk](https://github.com/MickLesk) ([#18975](https://github.com/community-scripts/ProxmoxVE/pull/18975))
- Woodpecker-CI [@MickLesk](https://github.com/MickLesk) ([#18973](https://github.com/community-scripts/ProxmoxVE/pull/18973))
- HedgeDoc [@MickLesk](https://github.com/MickLesk) ([#18978](https://github.com/community-scripts/ProxmoxVE/pull/18978))
- Typecho [@MickLesk](https://github.com/MickLesk) ([#18974](https://github.com/community-scripts/ProxmoxVE/pull/18974))
- Kyoo [@MickLesk](https://github.com/MickLesk) ([#18971](https://github.com/community-scripts/ProxmoxVE/pull/18971))
- Activepieces [@MickLesk](https://github.com/MickLesk) ([#18970](https://github.com/community-scripts/ProxmoxVE/pull/18970))
- Windmill [@MickLesk](https://github.com/MickLesk) ([#18977](https://github.com/community-scripts/ProxmoxVE/pull/18977))
- Databasement [@MickLesk](https://github.com/MickLesk) ([#18976](https://github.com/community-scripts/ProxmoxVE/pull/18976))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Odoo: install PDFKiln instead of the archived wkhtmltox build [@Jamalofski](https://github.com/Jamalofski) ([#19014](https://github.com/community-scripts/ProxmoxVE/pull/19014))
- Traefik: actually upgrade and restart traefik on Alpine update [@Tonomis](https://github.com/Tonomis) ([#19005](https://github.com/community-scripts/ProxmoxVE/pull/19005))
- Nginx Proxy Manager: bump OpenResty to 1.31.9.1 [@rudydelorenzo](https://github.com/rudydelorenzo) ([#19008](https://github.com/community-scripts/ProxmoxVE/pull/19008))
## 2026-11-23
### 🆕 New Scripts
+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/JMS1717/8mb.local
APP="8mbLocal"
var_tags="${var_tags:-media;video;compression}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}" # psutil 5.9.8 (pinned upstream) has no aarch64 wheel and would need a compiler
var_unprivileged="${var_unprivileged:-1}"
var_gpu="${var_gpu:-yes}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/8mblocal ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "8mblocal" "JMS1717/8mb.local"; then
msg_info "Stopping 8mb.local"
systemctl stop 8mblocal 8mblocal-worker
msg_ok "Stopped 8mb.local"
NODE_VERSION="22" setup_nodejs
PYTHON_VERSION="3.12" setup_uv
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "8mblocal" "JMS1717/8mb.local" "tarball"
msg_info "Building 8mb.local"
mv /opt/8mblocal /opt/8mblocal-build
cd /opt/8mblocal-build/frontend
$STD npm ci
$STD npm run build
mkdir -p /opt/8mblocal
mv /opt/8mblocal-build/backend-api/app /opt/8mblocal/backend
mv /opt/8mblocal-build/worker/app /opt/8mblocal/worker
mv /opt/8mblocal-build/shared /opt/8mblocal-build/requirements.txt /opt/8mblocal/
mv /opt/8mblocal-build/frontend/build /opt/8mblocal/frontend-build
rm -rf /opt/8mblocal-build
cd /opt/8mblocal
$STD uv venv --python 3.12 .venv
$STD uv pip install --python .venv/bin/python -r requirements.txt packaging
msg_ok "Built 8mb.local"
msg_info "Starting 8mb.local"
systemctl start 8mblocal-worker 8mblocal
msg_ok "Started 8mb.local"
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}:8001${CL}"
+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/activepieces/activepieces
APP="Activepieces"
var_tags="${var_tags:-automation;workflow;ai}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6144}"
var_disk="${var_disk:-12}"
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/activepieces ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "activepieces" "activepieces/activepieces"; then
msg_info "Stopping Activepieces"
systemctl stop activepieces activepieces-worker
msg_ok "Stopped Activepieces"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "activepieces" "activepieces/activepieces" "tarball"
NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/activepieces/package.json)" setup_nodejs
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "v$(jq -r '.devDependencies.deno' /opt/activepieces/packages/server/engine/package.json)" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
msg_info "Building Activepieces"
cd /opt/activepieces
REDISMS_DISABLE_POSTINSTALL=1 $STD bun install --frozen-lockfile
$STD npx turbo run build --filter=web --filter=@activepieces/engine --filter=api --filter=worker
find dist/packages/web -name '*.map' -delete
rm -rf node_modules bun.lock packages/pieces/core packages/pieces/custom packages/web packages/cli packages/tests-e2e packages/ee
find packages/pieces/community -mindepth 1 -maxdepth 1 -type d ! -name slack ! -name square ! -name facebook-leads ! -name intercom ! -name microsoft-teams-bot -exec rm -rf {} +
node -e "const fs=require('fs');const p=JSON.parse(fs.readFileSync('package.json','utf8'));p.workspaces=p.workspaces.filter(w=>fs.existsSync(w.replace('/*','')));fs.writeFileSync('package.json',JSON.stringify(p,null,2))"
REDISMS_DISABLE_POSTINSTALL=1 $STD bun install --production
rm -rf ~/.bun/install/cache
msg_ok "Built Activepieces"
msg_info "Starting Activepieces"
systemctl start activepieces activepieces-worker
msg_ok "Started Activepieces"
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
View File
@@ -38,6 +38,7 @@ function update_script() {
create_backup /opt/anki-sync-server/.env /opt/anki-sync-server/data
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Anki Sync Server"
$STD uv pip install --python /opt/anki-sync-server/venv/bin/python "anki==$(get_latest_github_release "ankitects/anki")"
cat <<EOF >~/.anki-sync-server
+1
View File
@@ -45,6 +45,7 @@ function update_script() {
create_backup /opt/airflow/.env
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Apache Airflow to ${LATEST}"
$STD uv pip install --python /opt/airflow/.venv/bin/python \
"apache-airflow[postgres,fab]==${LATEST}" \
+1
View File
@@ -56,6 +56,7 @@ function update_script() {
;;
esac
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Python Environment (${AUDIOMUSE_BACKEND})"
cd /opt/audiomuse-ai
$STD uv venv --clear --seed --python "$PY_VERSION" /opt/audiomuse-ai/.venv
+2 -1
View File
@@ -51,9 +51,10 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bambuddy" "maziggy/bambuddy" "tarball" "latest" "/opt/bambuddy"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/bambuddy
$STD uv venv --clear
$STD uv venv --python 3.13 --clear
$STD uv pip install -r requirements.txt
msg_ok "Updated Python Dependencies"
+84
View File
@@ -0,0 +1,84 @@
#!/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: cheesejaguar
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/maximhq/bifrost
APP="Bifrost"
var_tags="${var_tags:-ai;proxy}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-4}"
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 [[ ! -x /opt/bifrost/bifrost-http || ! -f /opt/bifrost_data/config.json ]]; then
msg_error "No Bifrost Installation Found!"
exit 1
fi
if check_for_gh_release "bifrost" "maximhq/bifrost" "${var_appversion:-}" "" "transports/v"; then
# Gateway binaries are published to the upstream CDN, not as GitHub assets.
BIFROST_URL="https://downloads.getmaxim.ai/bifrost/${CHECK_UPDATE_RELEASE##*/}/linux/$(arch_resolve)"
msg_info "Downloading Bifrost Gateway"
mkdir -p /opt/bifrost-update
chmod 700 /opt/bifrost-update
curl_with_retry "${BIFROST_URL}/bifrost-http" /opt/bifrost-update/bifrost-http
curl_with_retry "${BIFROST_URL}/bifrost-http.sha256" /opt/bifrost-update/bifrost-http.sha256
cd /opt/bifrost-update || exit 1
$STD sha256sum --check bifrost-http.sha256
msg_ok "Verified Bifrost Gateway"
msg_info "Stopping Bifrost"
systemctl stop bifrost
msg_ok "Stopped Bifrost"
BACKUP_DIR="/opt/bifrost-backup-$(date +%Y%m%d-%H%M%S)" create_backup /opt/bifrost_data /opt/bifrost/bifrost-http ~/.bifrost
msg_info "Installing Bifrost Gateway"
install -m 755 /opt/bifrost-update/bifrost-http /opt/bifrost/bifrost-http
cd /opt/bifrost || exit 1
rm -rf /opt/bifrost-update
msg_ok "Installed Bifrost Gateway"
msg_info "Starting Bifrost"
systemctl start bifrost
$STD curl --fail --silent --show-error --retry 30 --retry-connrefused --retry-delay 2 --retry-max-time 120 --max-time 5 http://127.0.0.1:8080/health
systemctl is-active --quiet bifrost
cat <<EOF >~/.bifrost
${CHECK_UPDATE_RELEASE}
EOF
msg_ok "Started Bifrost"
msg_ok "Updated Bifrost successfully!"
else
RELEASE_CHECK_STATUS=$?
if [[ "$RELEASE_CHECK_STATUS" -ne 1 ]]; then
exit "$RELEASE_CHECK_STATUS"
fi
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}:8080${CL}"
echo -e "${INFO}${YW}Bifrost username: admin. Find BIFROST_ADMIN_PASSWORD in /opt/bifrost_data/.env inside the container.${CL}"
+1
View File
@@ -69,6 +69,7 @@ function update_script() {
exit 1
fi
PYTHON_VERSION="3.12" setup_uv
if [[ "$(cat /opt/borg1-venv/.pinned_version 2>/dev/null)" != "$BORG1_VERSION" ]]; then
msg_info "Installing Borg ${BORG1_VERSION} (Patience)"
$STD uv venv --clear --python "$BORG_PYTHON" /opt/borg1-venv
+1 -1
View File
@@ -9,7 +9,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
APP="Cloudflare-DDNS"
var_tags="${var_tags:-network}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-3}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
+72
View File
@@ -0,0 +1,72 @@
#!/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/David-Crty/databasement
APP="Databasement"
var_tags="${var_tags:-backup;database}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
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/databasement ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "databasement" "David-Crty/databasement"; then
msg_info "Stopping Databasement"
systemctl stop databasement-worker databasement-scheduler php8.5-fpm
msg_ok "Stopped Databasement"
setup_composer
NODE_VERSION="22" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "databasement" "David-Crty/databasement" "tarball"
msg_info "Updating Databasement"
ln -sf /opt/databasement_data/.env /opt/databasement/.env
sed -i "s/^APP_VERSION=.*/APP_VERSION=$(cat ~/.databasement)/" /opt/databasement_data/.env
cd /opt/databasement
$STD composer install --no-dev --optimize-autoloader --no-interaction
$STD php artisan vendor:publish --force --tag=livewire:assets
$STD npm ci --ignore-scripts
$STD npm run build
$STD php artisan migrate --force
$STD php artisan optimize
chown -R www-data:www-data /opt/databasement /opt/databasement_data
msg_ok "Updated Databasement"
msg_info "Starting Databasement"
systemctl start php8.5-fpm databasement-worker databasement-scheduler
msg_ok "Started Databasement"
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}"
+2
View File
@@ -170,6 +170,8 @@ exec .venv/bin/uwsgi \
--master \
--workers=4 \
--gevent=400 \
--gevent-early-monkey-patch \
--import=dispatcharr.gevent_patch \
--http=0.0.0.0:5656 \
--http-keepalive=1 \
--http-timeout=600 \
+8
View File
@@ -41,6 +41,14 @@ function update_script() {
$STD supervisorctl stop all
msg_ok "Stopped ERPNext service"
if dpkg -s wkhtmltox &>/dev/null; then
$STD apt remove --purge -y wkhtmltox
fi
if check_for_gh_release "pdfkiln" "pdfkiln/pdfkiln"; then
fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb"
fi
if [[ "${FRAPPE_MAJOR:-0}" -lt 16 ]] && { [[ "${PHS_SILENT:-0}" == "1" ]] || whiptail --backtitle "Proxmox VE Helper Scripts" --title "ERPNext v16 Major Upgrade" \
--yesno "A major upgrade from Frappe/ERPNext v15 to v16 is available.\n\nUpgrade to v16 now?" 16 78; }; then
+2 -2
View File
@@ -40,7 +40,7 @@ function update_script() {
create_backup /opt/fireshare/fireshare.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "fireshare" "ShaneIsrael/fireshare" "tarball"
UV_PROJECT_DIR="/opt/fireshare" setup_uv
PYTHON_VERSION="3.14" UV_PROJECT_DIR="/opt/fireshare" setup_uv
restore_backup
rm -f /usr/local/bin/fireshare
@@ -56,7 +56,7 @@ function update_script() {
msg_info "Configuring Fireshare"
cd /opt/fireshare
$STD uv venv --clear
$STD uv venv --python 3.14 --clear
$STD .venv/bin/python -m ensurepip --upgrade
$STD .venv/bin/python -m pip install --upgrade --break-system-packages pip
$STD .venv/bin/python -m pip install --no-cache-dir --break-system-packages --ignore-installed app/server
+73
View File
@@ -0,0 +1,73 @@
#!/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/dannyvfilms/Floppy
APP="Floppy"
var_tags="${var_tags:-media;tracker;movies;anime}"
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:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
export var_admin_user="${var_admin_user:-}"
export var_admin_pass="${var_admin_pass:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/floppy ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "floppy" "dannyvfilms/Floppy"; then
msg_info "Stopping Floppy"
systemctl stop floppy-celery floppy
msg_ok "Stopped Floppy"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "floppy" "dannyvfilms/Floppy" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/floppy" setup_uv
msg_info "Updating Floppy"
cd /opt/floppy
$STD uv sync --locked --no-default-groups
sed -i "s/^VERSION=.*/VERSION=v$(cat ~/.floppy)/" /opt/floppy_data/.env
set -a
source /opt/floppy_data/.env
set +a
cd /opt/floppy/src
$STD /opt/floppy/.venv/bin/python manage.py migrate --noinput
$STD /opt/floppy/.venv/bin/python manage.py collectstatic --noinput
msg_ok "Updated Floppy"
msg_info "Starting Floppy"
systemctl start floppy floppy-celery
msg_ok "Started Floppy"
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}:8000${CL}"
echo -e "${INFO}${YW}Admin credentials: /opt/floppy_data/.env${CL}"
+91
View File
@@ -0,0 +1,91 @@
#!/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/formbricks/formbricks
APP="Formbricks"
var_tags="${var_tags:-survey;feedback;forms}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-12288}"
var_disk="${var_disk:-20}"
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/formbricks ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "spicedb" "authzed/spicedb"; then
msg_info "Stopping SpiceDB"
systemctl stop spicedb
msg_ok "Stopped SpiceDB"
fetch_and_deploy_gh_release "spicedb" "authzed/spicedb" "binary"
msg_info "Migrating SpiceDB Datastore"
set -a && source /opt/formbricks_data/spicedb.env && set +a
$STD spicedb datastore migrate head
msg_ok "Migrated SpiceDB Datastore"
msg_info "Starting SpiceDB"
systemctl start spicedb
msg_ok "Started SpiceDB"
fi
if check_for_gh_release "formbricks" "formbricks/formbricks"; then
msg_info "Stopping Formbricks"
systemctl stop formbricks
msg_ok "Stopped Formbricks"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball"
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
msg_info "Building Formbricks (Patience)"
cd /opt/formbricks
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$(cat ~/.formbricks)\"/" apps/web/package.json
sed -i 's/^const nextConfig = {$/&\n typescript: { ignoreBuildErrors: true },/' apps/web/next.config.mjs
touch apps/web/.env
$STD pnpm install --ignore-scripts --frozen-lockfile
$STD sh apps/web/scripts/docker/read-secrets.sh pnpm build --filter=@formbricks/web...
cp -r apps/web/.next/static apps/web/.next/standalone/apps/web/.next/
cp -r apps/web/public apps/web/.next/standalone/apps/web/
msg_ok "Built Formbricks"
msg_info "Migrating Formbricks Database"
set -a && source /opt/formbricks_data/.env && set +a
$STD node packages/database/dist/scripts/apply-migrations.js
$STD node apps/web/dist/authzed-cli/index.mjs upgrade prepare
msg_ok "Migrated Formbricks Database"
msg_info "Starting Formbricks"
systemctl start formbricks
msg_ok "Started Formbricks"
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}:3000${CL}"
+8
View File
@@ -37,6 +37,14 @@ function update_script() {
msg_ok "Fixed wrong permissions"
fi
if ! php -r 'exit((extension_loaded("intl") && extension_loaded("xml")) ? 0 : 1);' 2>/dev/null; then
msg_info "Installing missing PHP extensions"
apt_update_safe
$STD apt install -y php-xml php-intl
systemctl reload apache2
msg_ok "Installed missing PHP extensions"
fi
if check_for_gh_release "freshrss" "FreshRSS/FreshRSS"; then
msg_info "Stopping Apache2"
systemctl stop apache2
+1 -1
View File
@@ -80,7 +80,7 @@ EOF
source /opt/gramps-web/venv/bin/activate
$STD uv pip install --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --no-cache-dir gunicorn
$STD uv pip install --no-cache-dir /opt/gramps-web-api
$STD uv pip install --no-cache-dir "/opt/gramps-web-api[ai]"
msg_ok "Updated Gramps Web API"
msg_info "Applying Database Migration"
+61
View File
@@ -0,0 +1,61 @@
#!/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/hedgedoc/hedgedoc
APP="HedgeDoc"
var_tags="${var_tags:-notes;markdown}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
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/hedgedoc ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "hedgedoc" "hedgedoc/hedgedoc"; then
msg_info "Stopping HedgeDoc"
systemctl stop hedgedoc
msg_ok "Stopped HedgeDoc"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hedgedoc" "hedgedoc/hedgedoc" "prebuild" "latest" "/opt/hedgedoc" "hedgedoc-*.tar.gz"
msg_info "Installing HedgeDoc Dependencies"
cd /opt/hedgedoc
$STD yarn workspaces focus --production
msg_ok "Installed HedgeDoc Dependencies"
msg_info "Starting HedgeDoc"
systemctl start hedgedoc
msg_ok "Started HedgeDoc"
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}:3000${CL}"
+5 -43
View File
@@ -4,53 +4,15 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
# 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/asciimoo/hister
APP="Hister"
var_tags="${var_tags:-search;browser-history;personal}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-20}"
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 [[ ! -f /usr/local/bin/hister ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "hister" "asciimoo/hister"; then
msg_info "Stopping Service"
systemctl stop hister
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)"
msg_info "Starting Service"
systemctl start hister
msg_ok "Started Service"
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}:4433${CL}"
msg_error "This script is no longer available."
msg_warn "Hister has been renamed to Nogon."
msg_warn "Run the Nogon script to migrate an existing installation:"
echo 'bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/nogon.sh)"'
exit 1
+3 -2
View File
@@ -44,9 +44,10 @@ function update_script() {
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/homelable/backend
$STD uv venv --clear /opt/homelable/backend/.venv
$STD uv venv --python 3.13 --clear /opt/homelable/backend/.venv
$STD uv pip install --python /opt/homelable/backend/.venv/bin/python -r requirements.txt
msg_ok "Updated Python Dependencies"
@@ -60,7 +61,7 @@ function update_script() {
msg_info "Restoring MCP Server"
MCP_OWNER=$(stat -c '%U' /opt/homelable/mcp/.env)
cd /opt/homelable/mcp
$STD uv venv --clear /opt/homelable/mcp/.venv
$STD uv venv --python 3.13 --clear /opt/homelable/mcp/.venv
$STD uv pip install --python /opt/homelable/mcp/.venv/bin/python -r requirements.txt
chown -R "$MCP_OWNER":"$MCP_OWNER" /opt/homelable/mcp
systemctl restart homelable-mcp
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
exit
fi
setup_uv
PYTHON_VERSION="3.12" setup_uv
if check_for_gh_release "kapowarr" "Casvt/Kapowarr"; then
msg_info "Stopping Service"
+1
View File
@@ -40,6 +40,7 @@ function update_script() {
create_backup /opt/kima-hub/backend/.env /opt/kima-hub/frontend/.env
PYTHON_VERSION="3.13" setup_uv
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kima-hub" "Chevron7Locked/kima-hub" "tarball"
restore_backup
+89
View File
@@ -0,0 +1,89 @@
#!/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/zoriya/Kyoo
APP="Kyoo"
var_tags="${var_tags:-media;streaming}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-16}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_gpu="${var_gpu:-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/kyoo ]]; then
msg_error "No Kyoo Installation Found!"
exit
fi
if check_for_gh_release "kyoo" "zoriya/Kyoo"; then
msg_info "Stopping Kyoo"
systemctl stop kyoo-scanner kyoo-api kyoo-transcoder kyoo-auth
msg_ok "Stopped Kyoo"
setup_go
PYTHON_VERSION="3.14" setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kyoo" "zoriya/Kyoo" "tarball"
msg_info "Building Kyoo Auth"
cd /opt/kyoo/auth
$STD go build -o keibi
msg_ok "Built Kyoo Auth"
msg_info "Building Kyoo Transcoder"
cd /opt/kyoo/transcoder
$STD go build -o transcoder
msg_ok "Built Kyoo Transcoder"
msg_info "Building Kyoo API"
cd /opt/kyoo/api
$STD bun install --production
$STD bun build --compile --compile-autoload-package-json --minify-whitespace --minify-syntax --target bun --outfile server ./src/index.ts
msg_ok "Built Kyoo API"
msg_info "Setting up Kyoo Scanner"
cd /opt/kyoo/scanner
$STD uv sync --locked --python 3.14
msg_ok "Set up Kyoo Scanner"
msg_info "Building Kyoo Web App"
cd /opt/kyoo/front
NODE_ENV=production $STD bun install --production
$STD bun run web
rm -rf /opt/kyoo/front/node_modules ~/.bun/install/cache
msg_ok "Built Kyoo Web App"
msg_info "Starting Kyoo"
systemctl start kyoo-auth kyoo-transcoder kyoo-api kyoo-scanner
msg_ok "Started Kyoo"
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}${CL}"
echo -e "${INFO}${YW}The library stays empty until videos are in /opt/kyoo_data/media (e.g. pct set <CTID> -mp0 /path/to/media,mp=/opt/kyoo_data/media)${CL}"
+6 -2
View File
@@ -40,7 +40,7 @@ function update_script() {
create_backup /opt/librechat/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "librechat" "danny-avila/LibreChat"
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="librechat.yaml uploads client/public/images api/logs" fetch_and_deploy_gh_tag "librechat" "danny-avila/LibreChat"
restore_backup
@@ -68,13 +68,17 @@ function update_script() {
create_backup /opt/rag-api/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "rag-api" "danny-avila/rag_api" "tarball"
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="uploads" fetch_and_deploy_gh_release "rag-api" "danny-avila/rag_api" "tarball"
restore_backup
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating RAG API Dependencies"
cd /opt/rag-api
$STD uv venv --python 3.12 --seed .venv
$STD .venv/bin/pip install -r requirements.lite.txt
mkdir -p /opt/rag-api/uploads
msg_ok "Updated RAG API Dependencies"
msg_info "Starting RAG API"
+2 -1
View File
@@ -41,12 +41,13 @@ function update_script() {
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="rrd" fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball"
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating LibreNMS"
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage}
chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && uv venv --python 3.13 --clear .venv && source .venv/bin/activate && uv pip install -r requirements.txt"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan optimize:clear"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated"
+1
View File
@@ -36,6 +36,7 @@ function update_script() {
systemctl stop matter-server
msg_ok "Stopped Service"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Matter Server"
MATTER_VERSION=$(get_latest_github_release "matter-js/python-matter-server")
$STD uv pip install --python /opt/matter-server/.venv/bin/python --upgrade "python-matter-server[server]==${MATTER_VERSION}"
+1
View File
@@ -29,6 +29,7 @@ function update_script() {
fi
if check_for_gh_release "mylar3" "MylarComics/mylar3"; then
PYTHON_VERSION="3.11" setup_uv
fetch_and_deploy_gh_release "mylar3" "MylarComics/mylar3" "tarball"
systemctl restart mylar3
msg_ok "Updated successfully!"
+1
View File
@@ -38,6 +38,7 @@ function update_script() {
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating NetAlertX"
cd /opt/netalertx
$STD uv pip install --python .venv/bin/python -r requirements.txt
Executable
+55
View File
@@ -0,0 +1,55 @@
#!/usr/bin/env bash
# Engine comes from community-scripts/core; this repo only ships the scripts.
# A local core checkout wins (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core),
# so a fork or branch of core can be tested without editing this file.
_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: Nick Berardi (nberardi)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://nextdns.io | https://github.com/nextdns/nextdns
APP="NextDNS"
var_tags="${var_tags:-dns;adblock;network}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-2}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
export var_nextdns_profile="${var_nextdns_profile:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -x /usr/bin/nextdns ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating ${APP}"
$STD apt update
$STD apt install -y nextdns
msg_ok "Updated ${APP}"
msg_ok "Updated successfully!"
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}NextDNS is configured and serving DNS on:${CL}"
echo -e "${GATEWAY}${BGN}${IP}:53${CL} ${YW}(TCP/UDP)${CL}"
echo -e "${INFO}${YW}Profiles are managed at: https://my.nextdns.io${CL}"
echo -e "${INFO}${YW}Point DHCP clients or your router upstream DNS at the container IP.${CL}"
+1 -10
View File
@@ -61,20 +61,11 @@ function update_script() {
fi
$STD apt install -y build-essential "$pcre_pkg" libssl-dev zlib1g-dev
OPENRESTY_VERSION="1.31.8.1"
OPENRESTY_VERSION="1.31.9.1"
if [[ "$(cat ~/.openresty 2>/dev/null)" != "$OPENRESTY_VERSION" ]]; then
CLEAN_INSTALL=1 fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty" ||
CLEAN_INSTALL=1 fetch_and_deploy_from_url "https://distfiles.alpinelinux.org/distfiles/edge/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty"
msg_info "Patching nginx HTTP/2 (CVE-2026-123007, CVE-2026-123633)"
for commit in 61031503dc8087c2c17cd2142c9b4b19062f90c4 2df48a501d0fb8212b7d39dffeeff5876332ba59 e27f5fa84fe6e98505e70bc543b748747dad0a3b; do
curl_with_retry "https://api.github.com/repos/nginx/nginx/commits/${commit}" "/tmp/nginx-${commit}.patch" "-HAccept:application/vnd.github.patch" ||
curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "/tmp/nginx-${commit}.patch"
patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s <"/tmp/nginx-${commit}.patch"
rm -f "/tmp/nginx-${commit}.patch"
done
msg_ok "Patched nginx HTTP/2"
msg_info "Building OpenResty"
cd /opt/openresty
$STD ./configure \
+89
View File
@@ -0,0 +1,89 @@
#!/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/asciimoo/nogon
APP="Nogon"
var_tags="${var_tags:-search;browser-history;personal}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-20}"
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 [[ ! -f /usr/local/bin/nogon && ! -f /usr/local/bin/hister ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
MIGRATING=false
[[ -f /usr/local/bin/hister ]] && MIGRATING=true
if [[ "$MIGRATING" == "true" ]] || check_for_gh_release "nogon" "asciimoo/nogon"; then
msg_info "Stopping Service"
if [[ "$MIGRATING" == "true" ]]; then
systemctl disable -q --now hister
else
systemctl stop nogon
fi
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "nogon" "asciimoo/nogon" "singlefile" "latest" "/usr/local/bin" "nogon_*_linux_$(arch_resolve)"
if [[ "$MIGRATING" == "true" ]]; then
msg_info "Migrating Hister to Nogon"
CONFIG_FILE=/etc/nogon/config.yaml
[[ -f /etc/hister/config.yaml ]] && CONFIG_FILE=/etc/hister/config.yaml
cat <<EOF >/etc/systemd/system/nogon.service
[Unit]
Description=Nogon Search Engine
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/nogon listen --config ${CONFIG_FILE}
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
rm -f /etc/systemd/system/hister.service /usr/local/bin/hister ~/.hister
systemctl daemon-reload
systemctl enable -q nogon
sed -i 's/hister/nogon/g' /usr/bin/update
msg_ok "Migrated Hister to Nogon"
fi
msg_info "Starting Service"
systemctl start nogon
msg_ok "Started Service"
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}:4433${CL}"
+8 -2
View File
@@ -38,9 +38,15 @@ function update_script() {
fi
if dpkg -s wkhtmltopdf &>/dev/null; then
systemctl stop odoo
$STD apt remove --purge -y wkhtmltopdf
fetch_and_deploy_gh_release "wkhtmltopdf" "wkhtmltopdf/packaging" "binary" "latest" "" "wkhtmltox_*.bookworm_$(arch_resolve).deb"
fi
if dpkg -s wkhtmltox &>/dev/null; then
$STD apt remove --purge -y wkhtmltox
fi
if [[ ! -f ~/.pdfkiln ]] || check_for_gh_release "pdfkiln" "pdfkiln/pdfkiln"; then
systemctl stop odoo
fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb"
systemctl start odoo
fi
+1
View File
@@ -41,6 +41,7 @@ function update_script() {
systemctl stop openviking
msg_ok "Stopped Service"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating OpenViking"
$STD uv pip install --python /opt/openviking/bin/python --upgrade openviking
msg_ok "Updated OpenViking"
+1
View File
@@ -35,6 +35,7 @@ function update_script() {
systemctl stop pyload
msg_ok "Stopped Service"
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating ${APP}"
$STD uv pip install --python /opt/pyload/.venv --upgrade --prerelease allow "pyload-ng[all]"
msg_ok "Updated ${APP}"
+74
View File
@@ -0,0 +1,74 @@
#!/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/sebadob/rauthy
APP="Rauthy"
var_tags="${var_tags:-auth;sso;oidc}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6144}"
var_disk="${var_disk:-12}"
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 [[ ! -f /opt/rauthy/rauthy ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "rauthy" "sebadob/rauthy"; then
setup_rust
fetch_and_deploy_gh_release "rauthy" "sebadob/rauthy" "tarball" "latest" "/opt/rauthy-build"
msg_info "Building Rauthy (Patience)"
cd /opt/rauthy-build
tar -xf assets/static_html/static_v1.tar.gz
tar -xf assets/static_html/templates_html.tar.gz
if ! CURL_RETRIES=8 curl_with_retry "https://mds.fidoalliance.org/" "/opt/rauthy-build/mds.jwt"; then
rm -rf /opt/rauthy-build
msg_error "The FIDO MDS download was rate-limited (HTTP 429); Rauthy was not changed, try the update again later"
exit 7
fi
CARGO_PROFILE_DEV_DEBUG=0 $STD cargo run --bin fido-mds-prep -- --source mds.jwt
CARGO_PROFILE_RELEASE_LTO=thin CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 \
$STD cargo build --release --bin rauthy
msg_ok "Built Rauthy"
msg_info "Stopping Rauthy"
systemctl stop rauthy
mv /opt/rauthy-build/target/release/rauthy /opt/rauthy/rauthy
cd /opt
rm -rf /opt/rauthy-build ~/.cargo/registry
msg_ok "Stopped Rauthy"
msg_info "Starting Rauthy"
systemctl start rauthy
msg_ok "Started Rauthy"
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}:8443/auth/v1/${CL}"
+2 -2
View File
@@ -35,12 +35,12 @@ function update_script() {
systemctl stop scraparr
msg_ok "Services Stopped"
PYTHON_VERSION="3.12" setup_uv
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
msg_info "Updating Scraparr"
cd /opt/scraparr
$STD uv venv --clear /opt/scraparr/.venv
$STD uv venv --python 3.13 --clear /opt/scraparr/.venv
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
+1
View File
@@ -43,6 +43,7 @@ function update_script() {
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "subwave" "perminder-klair/subwave" "tarball"
fetch_and_deploy_gh_release "liquidsoap" "savonet/liquidsoap" "binary" "$(grep -oP 'savonet/liquidsoap:\Kv[0-9.]+' /opt/subwave/docker/Dockerfile.broadcast)" "" "liquidsoap_*-debian-trixie-ocaml4.14.2-*_$(arch_resolve).deb"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Analyzer and Kokoro"
$STD uv pip install --python /opt/analyzer/venv/bin/python librosa==0.11.0 soundfile==0.14.0 pyloudnorm==0.2.0
$STD uv pip install --python /opt/kokoro/venv/bin/python kokoro-onnx==0.5.0 soundfile==0.12.1 misaki==0.9.4 pyopenjtalk-plus==0.4.1.post10 cn2an==0.5.24 jieba==0.42.1 ordered-set==4.1.0 pypinyin==0.55.0 pypinyin-dict==0.9.0
+76
View File
@@ -0,0 +1,76 @@
#!/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/MODSetter/SurfSense
APP="SurfSense"
var_tags="${var_tags:-ai;documents;rag}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-16}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}" # upstream stages llama.cpp and opencode for linux-x64 only
var_unprivileged="${var_unprivileged:-1}"
export var_surfsense_password="${var_surfsense_password:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/surfsense ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "surfsense" "MODSetter/SurfSense"; then
msg_info "Stopping SurfSense"
systemctl stop surfsense
msg_ok "Stopped SurfSense"
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="surfsense_local/backend/.venv surfsense_local/backend/models" fetch_and_deploy_gh_release "surfsense" "MODSetter/SurfSense" "tarball"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "caddy" "caddyserver/caddy" "prebuild" "v$(grep -oP 'CADDY_IMAGE=caddy:\K[0-9.]+' /opt/surfsense/docker/surfsense/Dockerfile)" "/opt/caddy" "caddy_*_linux_$(arch_resolve).tar.gz"
NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/surfsense/surfsense_local/frontend/package.json)" setup_nodejs
PYTHON_VERSION="3.12" setup_uv
msg_info "Building SurfSense"
cd /opt/surfsense/surfsense_local/frontend
$STD pnpm install --frozen-lockfile
VITE_API_BASE=/api VITE_SURFSENSE_RUNTIME=docker VITE_SURFSENSE_VERSION="$(cat ../VERSION)" $STD pnpm build
rm -rf node_modules
cd /opt/surfsense/surfsense_local/backend
$STD uv sync --frozen --no-dev
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_embedding_model.py models
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_docling_models.py models
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_silero_vad.py models
cd /opt/surfsense/surfsense_local
$STD node runtimes/fetch-llamacpp.mjs --variant cpu --out electron/llamacpp
$STD node runtimes/opencode/stage.mjs
msg_ok "Built SurfSense"
msg_info "Starting SurfSense"
systemctl start surfsense
msg_ok "Started SurfSense"
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
@@ -29,7 +29,7 @@ function update_script() {
exit
fi
setup_uv
PYTHON_VERSION="3.13" setup_uv
if check_for_gh_release "tianji" "msgbyte/tianji"; then
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
+5 -1
View File
@@ -58,8 +58,12 @@ update_alpine() {
msg_ok "Updated Alpine Packages"
msg_info "Updating traefik from edge"
$STD apk add traefik --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
$STD apk upgrade traefik --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
msg_ok "Updated traefik"
msg_info "Restarting traefik"
$STD rc-service traefik restart
msg_ok "Restarted traefik"
msg_ok "Updated successfully!"
}
+2 -1
View File
@@ -49,9 +49,10 @@ function update_script() {
restore_backup
PYTHON_VERSION="3.13" setup_uv
msg_info "Updating Python Dependencies"
cd /opt/transmute
$STD uv venv --clear /opt/transmute/.venv
$STD uv venv --python 3.13 --clear /opt/transmute/.venv
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
msg_ok "Updated Python Dependencies"
+1
View File
@@ -47,6 +47,7 @@ function update_script() {
cp -r /opt/trip/src/dist/trip/browser/* /opt/trip/frontend/
msg_ok "Updated Frontend"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating Backend"
cd /opt/trip/backend
$STD uv pip install --python /opt/trip/.venv/bin/python -r trip/requirements.txt
+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/typecho/typecho
APP="Typecho"
var_tags="${var_tags:-blog;cms}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
export var_admin_user="${var_admin_user:-admin}"
export var_admin_pass="${var_admin_pass:-$(random_password)}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/typecho ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "typecho" "typecho/typecho"; then
msg_info "Stopping Typecho"
systemctl stop nginx
msg_ok "Stopped Typecho"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "typecho" "typecho/typecho" "prebuild" "latest" "/opt/typecho" "typecho.zip"
fetch_and_deploy_from_url "https://github.com/typecho/languages/releases/download/ci/langs.zip" "/opt/typecho_data/usr/langs"
msg_info "Linking Typecho Data"
rm -rf /opt/typecho/usr /opt/typecho/install.php
ln -s /opt/typecho_data/usr /opt/typecho/usr
ln -s /opt/typecho_data/config.inc.php /opt/typecho/config.inc.php
msg_ok "Linked Typecho Data"
msg_info "Starting Typecho"
systemctl start nginx
msg_ok "Started Typecho"
msg_ok "Updated successfully!"
echo -e "${INFO}${YW}Open http://${LOCAL_IP}/admin/ and confirm the database upgrade if Typecho asks for one${CL}"
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}"
echo -e "${INFO}${YW}Admin panel: http://${IP}/admin/${CL}"
echo -e "${INFO}${YW}Admin Username: ${var_admin_user}${CL}"
echo -e "${INFO}${YW}Admin Password: ${var_admin_pass}${CL}"
+10 -1
View File
@@ -9,7 +9,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
APP="Umami"
var_tags="${var_tags:-analytics}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-12}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
@@ -30,6 +30,15 @@ function update_script() {
exit
fi
if ! grep -q '^APP_SECRET=' /opt/umami/.env 2>/dev/null; then
msg_info "Setting APP_SECRET"
# 3.5 dropped the DATABASE_URL fallback; the same value keeps logins and session IDs valid
DB_URL=$(sed -n 's/^DATABASE_URL=//p' /opt/umami/.env 2>/dev/null | head -n1)
echo "APP_SECRET=${DB_URL:-$(openssl rand -hex 32)}" >>/opt/umami/.env
systemctl restart umami
msg_ok "Set APP_SECRET"
fi
if check_for_gh_release "umami" "umami-software/umami"; then
msg_info "Stopping Service"
systemctl stop umami
+1
View File
@@ -41,6 +41,7 @@ function update_script() {
msg_info "Building Vane"
cd /opt/vane
export ONNXRUNTIME_NODE_INSTALL_CUDA=skip
$STD yarn install --frozen-lockfile --network-timeout 600000
$STD yarn build
$STD yarn cache clean
+2
View File
@@ -41,6 +41,8 @@ function update_script() {
VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)"
VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")"
PYTHON_VERSION="3.12" setup_uv
msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)"
case "$VLLM_BACKEND" in
rocm)
+59
View File
@@ -0,0 +1,59 @@
#!/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/windmill-labs/windmill
APP="Windmill"
var_tags="${var_tags:-automation;workflow;scripts}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}" # upstream ships the CE binary for amd64 only
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/windmill/windmill ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "windmill" "windmill-labs/windmill"; then
msg_info "Stopping Windmill"
systemctl stop windmill
msg_ok "Stopped Windmill"
setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "windmill" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill-amd64"
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "windmill-duckdb" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill_duckdb_runner"
msg_info "Starting Windmill"
systemctl start windmill
msg_ok "Started Windmill"
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}:8000${CL}"
+79
View File
@@ -0,0 +1,79 @@
#!/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/woodpecker-ci/woodpecker
APP="Woodpecker-CI"
var_tags="${var_tags:-ci;devops;git}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
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_forge="${var_forge:-}"
export var_forge_url="${var_forge_url:-}"
export var_forge_client="${var_forge_client:-}"
export var_forge_secret="${var_forge_secret:-}"
export var_forge_admin="${var_forge_admin:-}"
if [[ -n "${var_forge}" ]]; then
if [[ ! "${var_forge}" =~ ^(forgejo|gitea|github|gitlab|bitbucket)$ ]] ||
[[ -z "${var_forge_client}" || -z "${var_forge_secret}" || -z "${var_forge_admin}" ]] ||
[[ "${var_forge}" =~ ^(forgejo|gitea)$ && -z "${var_forge_url}" ]]; then
msg_error "var_forge must be forgejo, gitea, github, gitlab or bitbucket and needs var_forge_client, var_forge_secret and var_forge_admin (Forgejo and Gitea also var_forge_url)"
exit 1
fi
fi
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/woodpecker ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "woodpecker-server" "woodpecker-ci/woodpecker"; then
msg_info "Stopping Woodpecker CI"
systemctl stop woodpecker-agent woodpecker-server
msg_ok "Stopped Woodpecker CI"
fetch_and_deploy_gh_release "woodpecker-server" "woodpecker-ci/woodpecker" "prebuild" "latest" "/opt/woodpecker" "woodpecker-server_linux_$(arch_resolve).tar.gz"
fetch_and_deploy_gh_release "woodpecker-agent" "woodpecker-ci/woodpecker" "prebuild" "latest" "/opt/woodpecker" "woodpecker-agent_linux_$(arch_resolve).tar.gz"
fetch_and_deploy_gh_release "plugin-git" "woodpecker-ci/plugin-git" "singlefile" "latest" "/usr/local/bin" "linux-$(arch_resolve)_plugin-git"
msg_info "Starting Woodpecker CI"
systemctl start woodpecker-server woodpecker-agent
msg_ok "Started Woodpecker CI"
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}"
if [[ -z "${var_forge}" ]]; then
echo -e "${INFO}${YW}Woodpecker CI signs in through a forge. Create an OAuth app on Forgejo, Gitea, GitHub, GitLab or Bitbucket with the callback URL:${CL}"
echo -e "${TAB}${BGN}http://${IP}:8000/authorize${CL}"
echo -e "${INFO}${YW}Fill in the forge block and WOODPECKER_ADMIN in /opt/woodpecker_data/server.env, then start Woodpecker CI:${CL}"
echo -e "${TAB}${BGN}systemctl enable --now woodpecker-server woodpecker-agent${CL}"
fi
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8000${CL}"
+111
View File
@@ -0,0 +1,111 @@
#!/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/JMS1717/8mb.local
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
setup_hwaccel
msg_info "Installing Dependencies"
$STD apt install -y redis-server
msg_ok "Installed Dependencies"
setup_ffmpeg
NODE_VERSION="22" setup_nodejs
PYTHON_VERSION="3.12" setup_uv
fetch_and_deploy_gh_release "8mblocal" "JMS1717/8mb.local" "tarball"
msg_info "Building 8mb.local"
mv /opt/8mblocal /opt/8mblocal-build
cd /opt/8mblocal-build/frontend
$STD npm ci
$STD npm run build
# Same layout as the official image: the worker imports backend.history_manager and Celery includes worker.worker
mkdir -p /opt/8mblocal
mv /opt/8mblocal-build/backend-api/app /opt/8mblocal/backend
mv /opt/8mblocal-build/worker/app /opt/8mblocal/worker
mv /opt/8mblocal-build/shared /opt/8mblocal-build/requirements.txt /opt/8mblocal/
mv /opt/8mblocal-build/frontend/build /opt/8mblocal/frontend-build
rm -rf /opt/8mblocal-build
cd /opt/8mblocal
$STD uv venv --python 3.12 .venv
$STD uv pip install --python .venv/bin/python -r requirements.txt packaging
msg_ok "Built 8mb.local"
msg_info "Configuring 8mb.local"
mkdir -p /opt/8mblocal_data/{uploads/.tmp,outputs,state}
cat <<EOF >/opt/8mblocal_data/.env
AUTH_ENABLED=true
AUTH_USER=admin
AUTH_PASS=$(random_password)
FILE_RETENTION_HOURS=1
MEDIA_STORAGE=disk
WORKER_CONCURRENCY=auto
HISTORY_ENABLED=true
REDIS_URL=redis://127.0.0.1:6379/0
APP_DATA_DIR=/opt/8mblocal_data
ENV_FILE=/opt/8mblocal_data/.env
SETTINGS_FILE=/opt/8mblocal_data/state/settings.json
HISTORY_FILE=/opt/8mblocal_data/state/history.json
TMPDIR=/opt/8mblocal_data/uploads/.tmp
FRONTEND_BUILD_DIR=/opt/8mblocal/frontend-build
BACKEND_APP_ROOT=/opt/8mblocal
EOF
chmod 600 /opt/8mblocal_data/.env
msg_ok "Configured 8mb.local"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/8mblocal-worker.service
[Unit]
Description=8mb.local Worker
After=network.target redis-server.service
Requires=redis-server.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/8mblocal
EnvironmentFile=/opt/8mblocal_data/.env
Environment=PYTHONPATH=/opt/8mblocal
ExecStart=/opt/8mblocal/.venv/bin/celery -A worker.celery_app worker --loglevel=info
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/8mblocal.service
[Unit]
Description=8mb.local
After=network.target redis-server.service 8mblocal-worker.service
Requires=redis-server.service
Wants=8mblocal-worker.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/8mblocal
EnvironmentFile=/opt/8mblocal_data/.env
Environment=PYTHONPATH=/opt/8mblocal
ExecStart=/opt/8mblocal/.venv/bin/uvicorn backend.main:app --host 0.0.0.0 --port 8001
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now 8mblocal-worker 8mblocal
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+114
View File
@@ -0,0 +1,114 @@
#!/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/activepieces/activepieces
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 \
poppler-utils \
redis-server
msg_ok "Installed Dependencies"
PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql
PG_DB_NAME="activepieces" PG_DB_USER="activepieces" PG_DB_EXTENSIONS="vector" setup_postgresql_db
fetch_and_deploy_gh_release "activepieces" "activepieces/activepieces" "tarball"
NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/activepieces/package.json)" setup_nodejs
fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "v$(jq -r '.devDependencies.deno' /opt/activepieces/packages/server/engine/package.json)" "/usr/local/bin" "deno-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip"
msg_info "Building Activepieces"
cd /opt/activepieces
REDISMS_DISABLE_POSTINSTALL=1 $STD bun install --frozen-lockfile
$STD npx turbo run build --filter=web --filter=@activepieces/engine --filter=api --filter=worker
find dist/packages/web -name '*.map' -delete
rm -rf node_modules bun.lock packages/pieces/core packages/pieces/custom packages/web packages/cli packages/tests-e2e packages/ee
find packages/pieces/community -mindepth 1 -maxdepth 1 -type d ! -name slack ! -name square ! -name facebook-leads ! -name intercom ! -name microsoft-teams-bot -exec rm -rf {} +
node -e "const fs=require('fs');const p=JSON.parse(fs.readFileSync('package.json','utf8'));p.workspaces=p.workspaces.filter(w=>fs.existsSync(w.replace('/*','')));fs.writeFileSync('package.json',JSON.stringify(p,null,2))"
REDISMS_DISABLE_POSTINSTALL=1 $STD bun install --production
rm -rf ~/.bun/install/cache
msg_ok "Built Activepieces"
msg_info "Configuring Activepieces"
mkdir -p /opt/activepieces_data/cache
JWT_SECRET=$(openssl rand -hex 32)
cat <<EOF >/opt/activepieces_data/.env
NODE_ENV=production
AP_ENVIRONMENT=prod
AP_PORT=80
AP_FRONTEND_URL=http://${LOCAL_IP}
AP_API_KEY=$(openssl rand -hex 64)
AP_ENCRYPTION_KEY=$(openssl rand -hex 16)
AP_JWT_SECRET=${JWT_SECRET}
AP_WORKER_TOKEN=$(node -e "process.stdout.write(require('jsonwebtoken').sign({ id: require('crypto').randomUUID(), type: 'WORKER' }, process.argv[1], { expiresIn: '100y', keyid: '1', algorithm: 'HS256', issuer: 'activepieces' }))" "${JWT_SECRET}")
AP_POSTGRES_HOST=localhost
AP_POSTGRES_PORT=5432
AP_POSTGRES_DATABASE=activepieces
AP_POSTGRES_USERNAME=activepieces
AP_POSTGRES_PASSWORD=${PG_DB_PASS}
AP_REDIS_HOST=localhost
AP_REDIS_PORT=6379
AP_EXECUTION_MODE=UNSANDBOXED
AP_DENO_PATH=/usr/local/bin/deno
AP_CACHE_BASE_PATH=/opt/activepieces_data/cache
AP_CONFIG_PATH=/opt/activepieces_data
AP_TELEMETRY_ENABLED=false
EOF
chmod 600 /opt/activepieces_data/.env
msg_ok "Configured Activepieces"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/activepieces.service
[Unit]
Description=Activepieces
After=network.target postgresql.service redis-server.service
Wants=activepieces-worker.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/activepieces
EnvironmentFile=/opt/activepieces_data/.env
Environment=AP_CONTAINER_TYPE=APP
ExecStart=/usr/bin/node --enable-source-maps packages/server/api/dist/src/bootstrap.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/activepieces-worker.service
[Unit]
Description=Activepieces Worker
After=activepieces.service
PartOf=activepieces.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/activepieces
EnvironmentFile=/opt/activepieces_data/.env
ExecStart=/usr/bin/node --enable-source-maps packages/server/worker/dist/src/bootstrap.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now activepieces activepieces-worker
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+93
View File
@@ -0,0 +1,93 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: cheesejaguar
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/maximhq/bifrost
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
# Gateway binaries live on the upstream CDN; GitHub also releases unrelated SDKs and plugins.
if ! check_for_gh_release "bifrost" "maximhq/bifrost" "${var_appversion:-}" "" "transports/v"; then
msg_error "Could not select a Bifrost gateway release"
exit 1
fi
msg_info "Installing Bifrost Gateway"
BIFROST_URL="https://downloads.getmaxim.ai/bifrost/${CHECK_UPDATE_RELEASE##*/}/linux/$(arch_resolve)"
mkdir -p /opt/bifrost /opt/bifrost-update
chmod 700 /opt/bifrost-update
curl_with_retry "${BIFROST_URL}/bifrost-http" /opt/bifrost-update/bifrost-http
curl_with_retry "${BIFROST_URL}/bifrost-http.sha256" /opt/bifrost-update/bifrost-http.sha256
cd /opt/bifrost-update || exit 1
$STD sha256sum --check bifrost-http.sha256
install -m 755 /opt/bifrost-update/bifrost-http /opt/bifrost/bifrost-http
cd /opt/bifrost || exit 1
rm -rf /opt/bifrost-update
msg_ok "Installed Bifrost Gateway"
msg_info "Configuring Bifrost"
mkdir -p /opt/bifrost_data
chmod 700 /opt/bifrost_data
cat <<EOF >/opt/bifrost_data/.env
BIFROST_ADMIN_PASSWORD=$(random_password 32)
BIFROST_ENCRYPTION_KEY=$(random_password 64)
BIFROST_SETUP_TOKEN=$(random_password 32)
EOF
cat <<'EOF' >/opt/bifrost_data/config.json
{
"encryption_key": "env.BIFROST_ENCRYPTION_KEY",
"setup_token": "env.BIFROST_SETUP_TOKEN",
"client": {
"enforce_auth_on_inference": true
},
"governance": {
"auth_config": {
"admin_username": "admin",
"admin_password": "env.BIFROST_ADMIN_PASSWORD",
"is_enabled": true
}
}
}
EOF
chmod 600 /opt/bifrost_data/.env /opt/bifrost_data/config.json
msg_ok "Configured Bifrost"
msg_info "Creating Bifrost Service"
cat <<EOF >/etc/systemd/system/bifrost.service
[Unit]
Description=Bifrost AI Gateway
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/bifrost_data
EnvironmentFile=/opt/bifrost_data/.env
UMask=0077
ExecStart=/opt/bifrost/bifrost-http -host 0.0.0.0 -port 8080 -app-dir /opt/bifrost_data
Restart=on-failure
RestartSec=5
TimeoutStopSec=60
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now bifrost
$STD curl --fail --silent --show-error --retry 30 --retry-connrefused --retry-delay 2 --retry-max-time 120 --max-time 5 http://127.0.0.1:8080/health
systemctl is-active --quiet bifrost
cat <<EOF >~/.bifrost
${CHECK_UPDATE_RELEASE}
EOF
msg_ok "Created Bifrost Service"
motd_ssh
customize
cleanup_lxc
+159
View File
@@ -0,0 +1,159 @@
#!/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/David-Crty/databasement
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 \
git \
mariadb-client \
redis-tools \
sqlite3 \
sshpass \
zstd \
7zip
msg_ok "Installed Dependencies"
msg_info "Installing PostgreSQL Clients"
setup_deb822_repo \
"pgdg" \
"https://www.postgresql.org/media/keys/ACCC4CF8.asc" \
"https://apt.postgresql.org/pub/repos/apt" \
"$(get_os_info codename)-pgdg" \
"main"
# pg_dump on PATH resolves to the newest client; Databasement switches to the 16 client for servers up to 16
$STD apt install -y \
postgresql-client-16 \
postgresql-client-18
msg_ok "Installed PostgreSQL Clients"
# MongoDB ships no Debian 13 build of its tools and only an amd64 Debian 12 one; the Ubuntu 24.04 build covers both
fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2404-$(arch_resolve "x86_64" "arm64")-$(get_latest_gh_tag "mongodb/mongo-tools" "100.").deb"
PHP_VERSION="8.5" PHP_FPM="YES" PHP_MODULE="mongodb,smbclient" setup_php
setup_composer
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "databasement" "David-Crty/databasement" "tarball"
msg_info "Setting up Databasement"
mkdir -p /opt/databasement_data/backups
touch /opt/databasement_data/database.sqlite
cat <<EOF >/opt/databasement_data/.env
APP_NAME=Databasement
APP_ENV=production
APP_KEY=base64:$(openssl rand -base64 32)
APP_DEBUG=false
APP_URL=http://${LOCAL_IP}
APP_VERSION=$(cat ~/.databasement)
APP_DISPLAY_TIMEZONE=UTC
DB_CONNECTION=sqlite
DB_DATABASE=/opt/databasement_data/database.sqlite
LOG_LEVEL=warning
EOF
ln -sf /opt/databasement_data/.env /opt/databasement/.env
# the demo backup offered at sign-up writes to /data/backups, the volume path of the upstream image
ln -s /opt/databasement_data /data
cd /opt/databasement
$STD composer install --no-dev --optimize-autoloader --no-interaction
$STD php artisan vendor:publish --force --tag=livewire:assets
$STD npm ci --ignore-scripts
$STD npm run build
$STD php artisan migrate --force
$STD php artisan optimize
chown -R www-data:www-data /opt/databasement /opt/databasement_data
chmod 600 /opt/databasement_data/.env
msg_ok "Set up Databasement"
msg_info "Configuring Nginx"
PHP_SOCK=$(get_php_fpm_socket)
cat <<EOF >/etc/nginx/sites-available/databasement
server {
listen 80;
server_name _;
root /opt/databasement/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files \$uri \$uri/ /index.php?\$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php\$ {
fastcgi_pass unix:${PHP_SOCK};
fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name;
include fastcgi_params;
fastcgi_hide_header X-Powered-By;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
EOF
nginx_enable_site "databasement"
msg_ok "Configured Nginx"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/databasement-worker.service
[Unit]
Description=Databasement Queue Worker
After=network.target php8.5-fpm.service
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/databasement
ExecStart=/usr/bin/php artisan queue:work --queue=backups,default --tries=3 --timeout=3600 --sleep=3 --max-jobs=1000
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/databasement-scheduler.service
[Unit]
Description=Databasement Scheduler
After=network.target php8.5-fpm.service
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/databasement
ExecStart=/usr/bin/php artisan schedule:work --quiet
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now databasement-worker databasement-scheduler
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+2
View File
@@ -170,6 +170,8 @@ exec .venv/bin/uwsgi \\
--master \\
--workers=4 \\
--gevent=400 \\
--gevent-early-monkey-patch \\
--import=dispatcharr.gevent_patch \\
--http=0.0.0.0:5656 \\
--http-keepalive=1 \\
--http-timeout=600 \\
+1 -1
View File
@@ -51,7 +51,7 @@ EOF
$STD systemctl restart mariadb
msg_ok "Configured MariaDB for ERPNext"
fetch_and_deploy_gh_release "wkhtmltopdf" "wkhtmltopdf/packaging" "binary" "latest" "" "wkhtmltox_*.bookworm_$(arch_resolve).deb"
fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb"
msg_info "Installing Frappe Bench"
useradd -m -s /bin/bash frappe
+137
View File
@@ -0,0 +1,137 @@
#!/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/dannyvfilms/Floppy
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 \
redis-server
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "floppy" "dannyvfilms/Floppy" "tarball"
PYTHON_VERSION="3.12" UV_PROJECT_DIR="/opt/floppy" setup_uv
msg_info "Installing Python Dependencies"
cd /opt/floppy
$STD uv sync --locked --no-default-groups
msg_ok "Installed Python Dependencies"
var_admin_user="${var_admin_user:-admin}"
var_admin_pass="${var_admin_pass:-$(random_password 16)}"
msg_info "Configuring Floppy"
mkdir -p /opt/floppy_data/{db,backups,logs}
cat <<EOF >/opt/floppy_data/.env
SECRET=$(random_password 50)
DEBUG=False
ADMIN_ENABLED=False
DEMO_ACCOUNT_ENABLED=False
REGISTRATION=False
ALLOWED_HOSTS=*
TZ=$(cat /etc/timezone)
FLOPPY_DATA_DIR=/opt/floppy_data/db
BACKUP_DIR=/opt/floppy_data/backups
LOG_DIR=/opt/floppy_data/logs
REDIS_URL=redis://127.0.0.1:6379
VERSION=v$(cat ~/.floppy)
DJANGO_SUPERUSER_USERNAME=${var_admin_user}
DJANGO_SUPERUSER_PASSWORD=${var_admin_pass}
EOF
chmod 600 /opt/floppy_data/.env
msg_ok "Configured Floppy"
msg_info "Setting up Floppy Database (Patience)"
set -a
source /opt/floppy_data/.env
set +a
cd /opt/floppy/src
$STD /opt/floppy/.venv/bin/python manage.py migrate --noinput
$STD /opt/floppy/.venv/bin/python manage.py collectstatic --noinput
$STD /opt/floppy/.venv/bin/python manage.py createsuperuser --noinput --email "${var_admin_user}@localhost"
msg_ok "Set up Floppy Database"
msg_info "Configuring Nginx"
cat <<EOF >/etc/nginx/sites-available/floppy
server {
listen 8000;
server_name _;
client_max_body_size 512M;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host \$http_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 \$http_x_forwarded_proto;
}
location /static/ {
alias /opt/floppy/src/staticfiles/;
expires 30d;
add_header Cache-Control "public";
}
}
EOF
nginx_enable_site "floppy"
msg_ok "Configured Nginx"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/floppy.service
[Unit]
Description=Floppy Web
After=network.target redis-server.service
Requires=redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/floppy/src
EnvironmentFile=/opt/floppy_data/.env
ExecStart=/opt/floppy/.venv/bin/gunicorn --config python:config.gunicorn config.wsgi:application
KillMode=mixed
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/floppy-celery.service
[Unit]
Description=Floppy Celery Worker
After=network.target redis-server.service floppy.service
Requires=redis-server.service
[Service]
Type=simple
WorkingDirectory=/opt/floppy/src
EnvironmentFile=/opt/floppy_data/.env
Environment=FLOPPY_PROCESS_ROLE=combined
ExecStart=/opt/floppy/.venv/bin/celery --app config worker --beat --scheduler django --queues celery,interactive,discover --loglevel INFO --without-mingle --without-gossip
KillMode=mixed
TimeoutStopSec=60
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now redis-server floppy floppy-celery
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+131
View File
@@ -0,0 +1,131 @@
#!/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/formbricks/formbricks
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 valkey-server
sed -i 's/^appendonly no/appendonly yes/' /etc/valkey/valkey.conf
systemctl restart valkey-server
msg_ok "Installed Dependencies"
PG_VERSION="18" PG_MODULES="pgvector" setup_postgresql
PG_DB_NAME="formbricks" PG_DB_USER="formbricks" PG_DB_EXTENSIONS="vector" setup_postgresql_db
# setup_postgresql_db keeps an already set PG_DB_PASS, so the SpiceDB role gets the same password
PG_DB_NAME="spicedb" PG_DB_USER="spicedb" setup_postgresql_db
fetch_and_deploy_gh_release "spicedb" "authzed/spicedb" "binary"
fetch_and_deploy_gh_release "formbricks" "formbricks/formbricks" "tarball"
NODE_VERSION="24" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/formbricks/package.json)" setup_nodejs
msg_info "Building Formbricks (Patience)"
cd /opt/formbricks
sed -i "s/\"version\": \"0.0.0\"/\"version\": \"$(cat ~/.formbricks)\"/" apps/web/package.json
sed -i 's/^const nextConfig = {$/&\n typescript: { ignoreBuildErrors: true },/' apps/web/next.config.mjs
touch apps/web/.env
$STD pnpm install --ignore-scripts --frozen-lockfile
$STD sh apps/web/scripts/docker/read-secrets.sh pnpm build --filter=@formbricks/web...
cp -r apps/web/.next/static apps/web/.next/standalone/apps/web/.next/
cp -r apps/web/public apps/web/.next/standalone/apps/web/
msg_ok "Built Formbricks"
msg_info "Configuring Formbricks"
mkdir -p /opt/formbricks_data
AUTHZED_TOKEN=$(openssl rand -hex 32)
cat <<EOF >/opt/formbricks_data/.env
NODE_ENV=production
WEBAPP_URL=http://${LOCAL_IP}:3000
NEXTAUTH_URL=http://${LOCAL_IP}:3000
NEXTAUTH_SECRET=$(openssl rand -hex 32)
ENCRYPTION_KEY=$(openssl rand -hex 32)
CRON_SECRET=$(openssl rand -hex 32)
DATABASE_URL=postgresql://formbricks:${PG_DB_PASS}@localhost:5432/formbricks?schema=public
REDIS_URL=redis://localhost:6379
AUTHZED_ENABLED=true
AUTHZED_ENDPOINT=127.0.0.1:50051
AUTHZED_TOKEN=${AUTHZED_TOKEN}
AUTHZED_SYSTEM_KEY=formbricks
AUTHZED_INSECURE=true
AUTHZED_CONSISTENCY=fully_consistent
HUB_API_URL=http://127.0.0.1:8080
HUB_API_KEY=$(openssl rand -hex 32)
CUBEJS_API_URL=http://127.0.0.1:4000
CUBEJS_API_SECRET=$(openssl rand -hex 32)
EMAIL_VERIFICATION_DISABLED=1
PASSWORD_RESET_DISABLED=1
TELEMETRY_DISABLED=1
EOF
cat <<EOF >/opt/formbricks_data/spicedb.env
SPICEDB_DATASTORE_ENGINE=postgres
SPICEDB_DATASTORE_CONN_URI=postgres://spicedb:${PG_DB_PASS}@localhost:5432/spicedb?sslmode=disable
SPICEDB_GRPC_PRESHARED_KEY=${AUTHZED_TOKEN}
SPICEDB_GRPC_ADDR=127.0.0.1:50051
SPICEDB_METRICS_ADDR=127.0.0.1:9090
SPICEDB_TELEMETRY_ENDPOINT=
SPICEDB_LOG_LEVEL=warn
EOF
chmod 600 /opt/formbricks_data/.env /opt/formbricks_data/spicedb.env
msg_ok "Configured Formbricks"
msg_info "Setting up SpiceDB"
set -a && source /opt/formbricks_data/spicedb.env && set +a
$STD spicedb datastore migrate head
cat <<EOF >/etc/systemd/system/spicedb.service
[Unit]
Description=SpiceDB
After=network.target postgresql.service
[Service]
Type=simple
User=root
EnvironmentFile=/opt/formbricks_data/spicedb.env
ExecStart=/usr/bin/spicedb serve
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now spicedb
msg_ok "Set up SpiceDB"
msg_info "Migrating Formbricks Database"
set -a && source /opt/formbricks_data/.env && set +a
$STD node packages/database/dist/scripts/apply-migrations.js
$STD node apps/web/dist/authzed-cli/index.mjs upgrade prepare
msg_ok "Migrated Formbricks Database"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/formbricks.service
[Unit]
Description=Formbricks
After=network.target postgresql.service valkey-server.service spicedb.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/formbricks/apps/web/.next/standalone
EnvironmentFile=/opt/formbricks_data/.env
ExecStart=/usr/bin/node apps/web/server.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now formbricks
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
PHP_VERSION="8.4" PHP_APACHE="YES" setup_php
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_MODULE="xml,intl" setup_php
PG_VERSION="16" setup_postgresql
PG_DB_NAME="freshrss" PG_DB_USER="freshrss_usr" setup_postgresql_db
+1 -1
View File
@@ -78,7 +78,7 @@ $STD uv venv -c -p python3.12 /opt/gramps-web/venv
source /opt/gramps-web/venv/bin/activate
$STD uv pip install --no-cache-dir --upgrade pip setuptools wheel
$STD uv pip install --no-cache-dir gunicorn
$STD uv pip install --no-cache-dir /opt/gramps-web-api
$STD uv pip install --no-cache-dir "/opt/gramps-web-api[ai]"
GRAMPS_VERSION=$(/opt/gramps-web/venv/bin/python3 -c "import gramps.version; print('%s%s' % (gramps.version.VERSION_TUPLE[0], gramps.version.VERSION_TUPLE[1]))" 2>/dev/null || echo "60")
GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"
+84
View File
@@ -0,0 +1,84 @@
#!/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/hedgedoc/hedgedoc
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 \
git \
python3
msg_ok "Installed Dependencies"
PG_VERSION="18" setup_postgresql
PG_DB_NAME="hedgedoc" PG_DB_USER="hedgedoc" setup_postgresql_db
NODE_VERSION="24" NODE_MODULE="yarn" setup_nodejs
fetch_and_deploy_gh_release "hedgedoc" "hedgedoc/hedgedoc" "prebuild" "latest" "/opt/hedgedoc" "hedgedoc-*.tar.gz"
msg_info "Installing HedgeDoc Dependencies"
cd /opt/hedgedoc
$STD yarn workspaces focus --production
msg_ok "Installed HedgeDoc Dependencies"
msg_info "Configuring HedgeDoc"
mkdir -p /opt/hedgedoc_data/uploads
cat <<EOF >/opt/hedgedoc_data/config.json
{
"production": {
"domain": "${LOCAL_IP}",
"urlAddPort": true,
"sessionSecret": "$(openssl rand -hex 64)",
"db": {
"dialect": "postgres",
"host": "localhost",
"port": 5432,
"database": "${PG_DB_NAME}",
"username": "${PG_DB_USER}",
"password": "${PG_DB_PASS}"
},
"uploadsPath": "/opt/hedgedoc_data/uploads",
"allowAnonymous": false,
"allowAnonymousEdits": true,
"enableStatsApi": false
}
}
EOF
chmod 600 /opt/hedgedoc_data/config.json
msg_ok "Configured HedgeDoc"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/hedgedoc.service
[Unit]
Description=HedgeDoc
After=network.target postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/hedgedoc
Environment=NODE_ENV=production
Environment=CMD_CONFIG_FILE=/opt/hedgedoc_data/config.json
ExecStart=/usr/bin/node app.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now hedgedoc
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+326
View File
@@ -0,0 +1,326 @@
#!/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/zoriya/Kyoo
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 \
pkg-config \
git \
nginx \
libavformat-dev \
libavutil-dev \
libswscale-dev
msg_ok "Installed Dependencies"
setup_ffmpeg
setup_hwaccel
PG_VERSION="18" setup_postgresql
PG_DB_NAME="kyoo" PG_DB_USER="kyoo" setup_postgresql_db
setup_go
PYTHON_VERSION="3.14" setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "kyoo" "zoriya/Kyoo" "tarball"
msg_info "Building Kyoo Auth"
cd /opt/kyoo/auth
$STD go build -o keibi
msg_ok "Built Kyoo Auth"
msg_info "Building Kyoo Transcoder"
cd /opt/kyoo/transcoder
$STD go build -o transcoder
msg_ok "Built Kyoo Transcoder"
msg_info "Building Kyoo API"
cd /opt/kyoo/api
$STD bun install --production
$STD bun build --compile --compile-autoload-package-json --minify-whitespace --minify-syntax --target bun --outfile server ./src/index.ts
msg_ok "Built Kyoo API"
msg_info "Setting up Kyoo Scanner"
cd /opt/kyoo/scanner
$STD uv sync --locked --python 3.14
msg_ok "Set up Kyoo Scanner"
msg_info "Building Kyoo Web App"
cd /opt/kyoo/front
NODE_ENV=production $STD bun install --production
$STD bun run web
rm -rf /opt/kyoo/front/node_modules ~/.bun/install/cache
msg_ok "Built Kyoo Web App"
msg_info "Configuring Kyoo"
mkdir -p /opt/kyoo_data/{media,images,profile_pictures,metadata} /var/cache/kyoo
$STD openssl genrsa -traditional -out /opt/kyoo_data/keibi.pem 4096
SCANNER_APIKEY=$(openssl rand -hex 32)
case "${HWACCEL_VENDOR:-none}" in
nvidia) KYOO_HWACCEL="nvidia" ;;
intel | amd) KYOO_HWACCEL="vaapi" ;;
*) KYOO_HWACCEL="disabled" ;;
esac
cat <<EOF >/opt/kyoo_data/.env
PUBLIC_URL=https://${LOCAL_IP}
JWT_ISSUER=https://${LOCAL_IP}
EXTRA_OIDC_REDIRECT_URLS=kyoo
PGHOST=127.0.0.1
PGPORT=5432
PGDATABASE=kyoo
PGUSER=kyoo
PGPASSWORD=${PG_DB_PASS}
PGSSLMODE=disable
AUTH_SERVER=http://127.0.0.1:4568
JWKS_URL=http://127.0.0.1:4568/.well-known/jwks.json
TRANSCODER_SERVER=http://127.0.0.1:7666
KYOO_URL=http://127.0.0.1:8901/api
RSA_PRIVATE_KEY_PATH=/opt/kyoo_data/keibi.pem
KEIBI_APIKEY_SCANNER=${SCANNER_APIKEY}
KEIBI_APIKEY_SCANNER_CLAIMS='{"permissions": ["core.read", "core.write"]}'
KYOO_APIKEY=${SCANNER_APIKEY}
EXTRA_CLAIMS='{"permissions": ["core.read", "core.play"], "verified": false}'
FIRST_USER_CLAIMS='{"permissions": ["users.read", "users.write", "users.delete", "apikeys.read", "apikeys.write", "core.read", "core.write", "core.play", "scanner.trigger", "scanner.guess", "scanner.search", "scanner.add"], "verified": true}'
GUEST_CLAIMS='{"permissions": ["core.read"], "verified": true}'
PROTECTED_CLAIMS="permissions,verified"
SCANNER_LIBRARY_ROOT=/opt/kyoo_data/media
GOCODER_SAFE_PATH=/opt/kyoo_data/media
LIBRARY_IGNORE_PATTERN=".*/[dD]ownloads?/.*"
IMAGES_PATH=/opt/kyoo_data/images
PROFILE_PICTURE_PATH=/opt/kyoo_data/profile_pictures
GOCODER_METADATA_ROOT=/opt/kyoo_data/metadata
GOCODER_CACHE_ROOT=/var/cache/kyoo
GOCODER_HWACCEL=${KYOO_HWACCEL}
GOCODER_PRESET=fast
THEMOVIEDB_API_ACCESS_TOKEN=
TVDB_APIKEY=
TVDB_PIN=
EOF
chmod 600 /opt/kyoo_data/.env /opt/kyoo_data/keibi.pem
msg_ok "Configured Kyoo"
msg_info "Configuring Nginx"
create_self_signed_cert "kyoo"
# Upstream's Traefik routes; auth_request replaces its forwardAuth that swaps tokens/API keys for a JWT.
# HTTPS so browsers honour COOP/COEP (SharedArrayBuffer for subtitles); 127.0.0.1:8901 is plain HTTP for the scanner.
cat <<'EOF' >/etc/nginx/sites-available/kyoo
map $http_upgrade $kyoo_connection_upgrade {
default upgrade;
'' close;
}
map $http_x_forwarded_proto $kyoo_forwarded_proto {
default $http_x_forwarded_proto;
'' $scheme;
}
map $http_x_forwarded_host $kyoo_forwarded_host {
default $http_x_forwarded_host;
'' $http_host;
}
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl default_server;
listen 127.0.0.1:8901;
server_name _;
charset utf-8;
client_max_body_size 0;
ssl_certificate /etc/ssl/kyoo/kyoo.crt;
ssl_certificate_key /etc/ssl/kyoo/kyoo.key;
root /opt/kyoo/front/dist;
index index.html;
location / {
add_header Cross-Origin-Opener-Policy same-origin;
add_header Cross-Origin-Embedder-Policy credentialless;
try_files $uri $uri/ /index.html;
}
location = /_kyoo_jwt {
internal;
proxy_pass http://127.0.0.1:4568/auth/jwt;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Forwarded-Method $request_method;
proxy_set_header X-Forwarded-Uri $request_uri;
proxy_set_header X-Forwarded-Host $kyoo_forwarded_host;
proxy_set_header X-Forwarded-Proto $kyoo_forwarded_proto;
}
location /auth/ {
proxy_pass http://127.0.0.1:4568;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $kyoo_forwarded_host;
proxy_set_header X-Forwarded-Proto $kyoo_forwarded_proto;
}
location /.well-known/ {
proxy_pass http://127.0.0.1:4568;
}
location /swagger {
proxy_pass http://127.0.0.1:3567;
}
location /api/ {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type, Range, X-Api-Key" always;
add_header Vary Origin always;
return 204;
}
add_header Access-Control-Allow-Origin * always;
add_header Vary Origin always;
auth_request /_kyoo_jwt;
auth_request_set $kyoo_jwt $upstream_http_authorization;
proxy_pass http://127.0.0.1:3567;
proxy_http_version 1.1;
proxy_read_timeout 1h;
proxy_set_header Authorization $kyoo_jwt;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $kyoo_forwarded_host;
proxy_set_header X-Forwarded-Proto $kyoo_forwarded_proto;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $kyoo_connection_upgrade;
}
location /video {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin * always;
add_header Access-Control-Allow-Methods "GET, OPTIONS" always;
add_header Access-Control-Allow-Headers "Authorization, Content-Type, Range, X-Api-Key" always;
add_header Vary Origin always;
return 204;
}
add_header Access-Control-Allow-Origin * always;
add_header Vary Origin always;
auth_request /_kyoo_jwt;
auth_request_set $kyoo_jwt $upstream_http_authorization;
proxy_pass http://127.0.0.1:7666;
proxy_http_version 1.1;
proxy_buffering off;
proxy_read_timeout 1h;
proxy_set_header Authorization $kyoo_jwt;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $kyoo_forwarded_host;
proxy_set_header X-Forwarded-Proto $kyoo_forwarded_proto;
}
location /scanner/ {
auth_request /_kyoo_jwt;
auth_request_set $kyoo_jwt $upstream_http_authorization;
proxy_pass http://127.0.0.1:4389;
proxy_set_header Authorization $kyoo_jwt;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $kyoo_forwarded_host;
proxy_set_header X-Forwarded-Proto $kyoo_forwarded_proto;
}
}
EOF
nginx_enable_site "kyoo"
msg_ok "Configured Nginx"
msg_info "Creating Services"
cat <<EOF >/etc/systemd/system/kyoo-auth.service
[Unit]
Description=Kyoo Auth
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/kyoo/auth
EnvironmentFile=/opt/kyoo_data/.env
ExecStart=/opt/kyoo/auth/keibi
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/kyoo-transcoder.service
[Unit]
Description=Kyoo Transcoder
After=network.target postgresql.service kyoo-auth.service
Requires=postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/kyoo/transcoder
EnvironmentFile=/opt/kyoo_data/.env
ExecStart=/opt/kyoo/transcoder/transcoder
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/kyoo-api.service
[Unit]
Description=Kyoo API
After=network.target postgresql.service kyoo-auth.service
Requires=postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/kyoo/api
EnvironmentFile=/opt/kyoo_data/.env
Environment=NODE_ENV=production
ExecStart=/opt/kyoo/api/server
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/kyoo-scanner.service
[Unit]
Description=Kyoo Scanner
After=network.target postgresql.service nginx.service kyoo-api.service
Requires=postgresql.service
[Service]
Type=simple
WorkingDirectory=/opt/kyoo/scanner
EnvironmentFile=/opt/kyoo_data/.env
ExecStart=/opt/kyoo/scanner/.venv/bin/fastapi run scanner --host 127.0.0.1 --port 4389
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now kyoo-auth kyoo-transcoder kyoo-api kyoo-scanner
msg_ok "Created Services"
motd_ssh
customize
cleanup_lxc
+53
View File
@@ -0,0 +1,53 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Nick Berardi (nberardi)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://nextdns.io | https://github.com/nextdns/nextdns
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
setup_deb822_repo \
"nextdns" \
"https://repo.nextdns.io/nextdns.gpg" \
"https://repo.nextdns.io/deb" \
"stable" \
"main"
msg_info "Installing NextDNS"
$STD apt install -y nextdns
msg_ok "Installed NextDNS"
if [[ -z "${var_nextdns_profile:-}" ]]; then
echo -e "${INFO}${YW}Get your profile ID from: https://my.nextdns.io${CL}"
read -r -p "${TAB3}NextDNS Profile ID: " var_nextdns_profile || true
fi
var_nextdns_profile="${var_nextdns_profile//[[:space:]]/}"
if [[ -z "${var_nextdns_profile}" ]]; then
msg_error "NextDNS Profile ID is required (set var_nextdns_profile or enter it when prompted)"
exit 64
fi
msg_info "Configuring NextDNS"
nextdns install \
-profile "${var_nextdns_profile}" \
-report-client-info \
-setup-router
mkdir -p /etc/systemd/system/nextdns.service.d
cat <<EOF >/etc/systemd/system/nextdns.service.d/network-online.conf
[Unit]
Wants=network-online.target
After=network-online.target
EOF
systemctl daemon-reload
msg_ok "Configured NextDNS (profile ${var_nextdns_profile})"
motd_ssh
customize
cleanup_lxc
+1 -10
View File
@@ -36,19 +36,10 @@ $STD /opt/certbot/bin/pip install certbot certbot-dns-cloudflare
ln -sf /opt/certbot/bin/certbot /usr/local/bin/certbot
msg_ok "Set up Certbot"
OPENRESTY_VERSION="1.31.8.1"
OPENRESTY_VERSION="1.31.9.1"
fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty" ||
fetch_and_deploy_from_url "https://distfiles.alpinelinux.org/distfiles/edge/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty"
msg_info "Patching nginx HTTP/2 (CVE-2026-123007, CVE-2026-123633)"
for commit in 61031503dc8087c2c17cd2142c9b4b19062f90c4 2df48a501d0fb8212b7d39dffeeff5876332ba59 e27f5fa84fe6e98505e70bc543b748747dad0a3b; do
curl_with_retry "https://api.github.com/repos/nginx/nginx/commits/${commit}" "/tmp/nginx-${commit}.patch" "-HAccept:application/vnd.github.patch" ||
curl_with_retry "https://github.com/nginx/nginx/commit/${commit}.patch" "/tmp/nginx-${commit}.patch"
patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s <"/tmp/nginx-${commit}.patch"
rm -f "/tmp/nginx-${commit}.patch"
done
msg_ok "Patched nginx HTTP/2"
msg_info "Building OpenResty"
cd /opt/openresty
$STD ./configure \
@@ -3,7 +3,7 @@
# 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/asciimoo/hister
# Source: https://github.com/asciimoo/nogon
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
@@ -13,37 +13,37 @@ setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "hister" "asciimoo/hister" "singlefile" "latest" "/usr/local/bin" "hister_*_linux_$(arch_resolve)"
fetch_and_deploy_gh_release "nogon" "asciimoo/nogon" "singlefile" "latest" "/usr/local/bin" "nogon_*_linux_$(arch_resolve)"
msg_info "Configuring Hister"
mkdir -p /opt/hister/data /etc/hister
msg_info "Configuring Nogon"
mkdir -p /opt/nogon/data /etc/nogon
LOCAL_IP=$(hostname -I | awk '{print $1}')
cat <<EOF >/etc/hister/config.yaml
cat <<EOF >/etc/nogon/config.yaml
app:
directory: '/opt/hister/data'
directory: '/opt/nogon/data'
server:
address: '0.0.0.0:4433'
base_url: 'http://${LOCAL_IP}:4433'
EOF
msg_ok "Configured Hister"
msg_ok "Configured Nogon"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/hister.service
cat <<EOF >/etc/systemd/system/nogon.service
[Unit]
Description=Hister Search Engine
Description=Nogon Search Engine
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/hister listen --config /etc/hister/config.yaml
ExecStart=/usr/local/bin/nogon listen --config /etc/nogon/config.yaml
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now hister
systemctl enable -q --now nogon
msg_ok "Created Service"
motd_ssh
+4 -1
View File
@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "wkhtmltopdf" "wkhtmltopdf/packaging" "binary" "latest" "" "wkhtmltox_*.bookworm_$(arch_resolve).deb"
fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb"
PG_VERSION="18" setup_postgresql
@@ -38,6 +38,9 @@ sed -i \
-e "s|^;*db_user *=.*|db_user = odoo_usr|" \
-e "s|^;*db_password *=.*|db_password = $PG_DB_PASS|" \
/etc/odoo/odoo.conf
cat <<EOF >>/etc/odoo/odoo.conf
http_interface = 0.0.0.0
EOF
$STD sudo -u odoo odoo -c /etc/odoo/odoo.conf -d odoo -i base --stop-after-init
rm -f /opt/odoo.deb
echo "${LATEST_VERSION}" >/opt/${APPLICATION}_version.txt
+115
View File
@@ -0,0 +1,115 @@
#!/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/sebadob/rauthy
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 \
pkg-config
msg_ok "Installed Dependencies"
setup_rust
fetch_and_deploy_gh_release "rauthy" "sebadob/rauthy" "tarball" "latest" "/opt/rauthy-build"
msg_info "Building Rauthy (Patience)"
cd /opt/rauthy-build
tar -xf assets/static_html/static_v1.tar.gz
tar -xf assets/static_html/templates_html.tar.gz
if ! CURL_RETRIES=8 curl_with_retry "https://mds.fidoalliance.org/" "/opt/rauthy-build/mds.jwt"; then
msg_error "The FIDO MDS download was rate-limited (HTTP 429); run the script again in a few minutes"
exit 7
fi
CARGO_PROFILE_DEV_DEBUG=0 $STD cargo run --bin fido-mds-prep -- --source mds.jwt
CARGO_PROFILE_RELEASE_LTO=thin CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 \
$STD cargo build --release --bin rauthy
mkdir -p /opt/rauthy
mv target/release/rauthy /opt/rauthy/rauthy
cd /opt
rm -rf /opt/rauthy-build ~/.cargo/registry
msg_ok "Built Rauthy"
create_self_signed_cert "rauthy"
msg_info "Configuring Rauthy"
mkdir -p /opt/rauthy_data
ENC_KEY_ID=$(openssl rand -hex 4)
cat <<EOF >/opt/rauthy_data/config.toml
## Reference: https://sebadob.github.io/rauthy/config/config.html
[bootstrap]
# Password for admin@localhost, only read when the database is created on the first start
password_plain = '$(random_password)'
[cluster]
node_id = 1
nodes = ['1 localhost:8100 localhost:8200']
data_dir = '/opt/rauthy_data/hiqlite'
secret_raft = '$(random_password 48)'
secret_api = '$(random_password 48)'
[email]
#smtp_url = 'smtp.example.com'
#smtp_username = 'rauthy@example.com'
#smtp_password = ''
#smtp_from = 'Rauthy <rauthy@example.com>'
[encryption]
keys = ['${ENC_KEY_ID}/$(openssl rand -base64 32)']
key_active = '${ENC_KEY_ID}'
[mfa]
# Passkeys need a DNS name, so admin MFA cannot be set up while Rauthy is reached by IP
admin_force_mfa = false
[server]
scheme = 'https'
pub_url = '${LOCAL_IP}:8443'
[tls]
cert_path = '/etc/ssl/rauthy/rauthy.crt'
key_path = '/etc/ssl/rauthy/rauthy.key'
[webauthn]
# Must be a domain, an IP is rejected; set both to the public DNS name before registering passkeys
rp_id = 'localhost'
rp_origin = 'https://localhost:8443'
EOF
chmod 600 /opt/rauthy_data/config.toml
msg_ok "Configured Rauthy"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/rauthy.service
[Unit]
Description=Rauthy
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/rauthy_data
Environment=MALLOC_CONF=abort_conf:true,narenas:8,tcache_max:4096,dirty_decay_ms:5000,muzzy_decay_ms:5000
ExecStart=/opt/rauthy/rauthy serve -c /opt/rauthy_data/config.toml
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now rauthy
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+101
View File
@@ -0,0 +1,101 @@
#!/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/MODSetter/SurfSense
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 \
libgomp1 \
libxinerama1 \
libx11-xcb1 \
libxext6 \
libsm6 \
libfontconfig1 \
fonts-dejavu-core \
libnss3 \
libdbus-1-3 \
libcairo2 \
libglib2.0-0t64 \
libcups2t64
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "surfsense" "MODSetter/SurfSense" "tarball"
fetch_and_deploy_gh_release "caddy" "caddyserver/caddy" "prebuild" "v$(grep -oP 'CADDY_IMAGE=caddy:\K[0-9.]+' /opt/surfsense/docker/surfsense/Dockerfile)" "/opt/caddy" "caddy_*_linux_$(arch_resolve).tar.gz"
NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/surfsense/surfsense_local/frontend/package.json)" setup_nodejs
PYTHON_VERSION="3.12" setup_uv
msg_info "Building SurfSense Frontend"
cd /opt/surfsense/surfsense_local/frontend
$STD pnpm install --frozen-lockfile
VITE_API_BASE=/api VITE_SURFSENSE_RUNTIME=docker VITE_SURFSENSE_VERSION="$(cat ../VERSION)" $STD pnpm build
rm -rf node_modules
msg_ok "Built SurfSense Frontend"
msg_info "Setting up SurfSense Backend"
cd /opt/surfsense/surfsense_local/backend
$STD uv sync --frozen --no-dev
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_embedding_model.py models
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_docling_models.py models
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data $STD .venv/bin/python scripts/fetch_silero_vad.py models
msg_ok "Set up SurfSense Backend"
msg_info "Staging llama.cpp and opencode"
cd /opt/surfsense/surfsense_local
$STD node runtimes/fetch-llamacpp.mjs --variant cpu --out electron/llamacpp
$STD node runtimes/opencode/stage.mjs
msg_ok "Staged llama.cpp and opencode"
msg_info "Configuring SurfSense"
mkdir -p /opt/surfsense_data
cat <<EOF >/opt/surfsense_data/.env
SURFSENSE_LOCAL_DATA_DIR=/opt/surfsense_data
SURFSENSE_LOCAL_CADDY=/opt/caddy/caddy
SURFSENSE_LOCAL_CADDYFILE=/opt/surfsense/docker/surfsense/caddy/Caddyfile
SURFSENSE_LOCAL_PUBLIC_PORT=80
SURFSENSE_LOCAL_CORS_ORIGINS=
SURFSENSE_PASSWORD=${var_surfsense_password:-}
SURFSENSE_ALLOWED_HOSTS=
SURFSENSE_AUTH=
SURFSENSE_TLS=
SURFSENSE_DOMAIN=
SURFSENSE_HTTPS_PORT=443
EOF
chmod 600 /opt/surfsense_data/.env
msg_ok "Configured SurfSense"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/surfsense.service
[Unit]
Description=SurfSense
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/surfsense/surfsense_local
EnvironmentFile=/opt/surfsense_data/.env
ExecStart=/usr/bin/node /opt/surfsense/surfsense_local/headless/main.ts
KillMode=mixed
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now surfsense
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc
+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/typecho/typecho
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 \
sqlite3
msg_ok "Installed Dependencies"
PHP_FPM="YES" setup_php
fetch_and_deploy_gh_release "typecho" "typecho/typecho" "prebuild" "latest" "/opt/typecho" "typecho.zip"
fetch_and_deploy_from_url "https://github.com/typecho/languages/releases/download/ci/langs.zip" "/opt/typecho/usr/langs"
var_admin_user="${var_admin_user:-admin}"
var_admin_pass="${var_admin_pass:-$(random_password 16)}"
msg_info "Installing Typecho"
mkdir -p /opt/typecho_data
mv /opt/typecho/usr /opt/typecho_data/usr
ln -s /opt/typecho_data/usr /opt/typecho/usr
cd /opt/typecho
TYPECHO_SITE_URL="http://${LOCAL_IP}" \
TYPECHO_LANG="en_US" \
TYPECHO_DB_ADAPTER="Pdo_SQLite" \
TYPECHO_DB_FILE="/opt/typecho_data/typecho.db" \
TYPECHO_USER_NAME="${var_admin_user}" \
TYPECHO_USER_PASSWORD="${var_admin_pass}" \
$STD php install.php
# PHP resolves symlinks in __FILE__, so a linked config has to name the root itself
sed -i "s|dirname(__FILE__)|'/opt/typecho'|" config.inc.php
mv config.inc.php /opt/typecho_data/config.inc.php
ln -s /opt/typecho_data/config.inc.php /opt/typecho/config.inc.php
rm -f install.php
# upstream defaults to UTC+8 and index.php URLs; the vhost below handles rewritten ones
sqlite3 /opt/typecho_data/typecho.db "UPDATE typecho_options SET value = '1' WHERE name = 'rewrite'; UPDATE typecho_options SET value = '0' WHERE name = 'timezone';"
chown -R www-data:www-data /opt/typecho_data
cat <<EOF >~/typecho.creds
Typecho Admin
URL: http://${LOCAL_IP}/admin/
Username: ${var_admin_user}
Password: ${var_admin_pass}
EOF
chmod 600 ~/typecho.creds
msg_ok "Installed Typecho"
msg_info "Configuring Nginx"
PHP_SOCK=$(get_php_fpm_socket)
cat <<EOF >/etc/nginx/sites-available/typecho
server {
listen 80 default_server;
server_name _;
root /opt/typecho;
index index.php;
client_max_body_size 128M;
location / {
try_files \$uri \$uri/ /index.php\$is_args\$args;
}
location ~ [^/]\.php(/|\$) {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:${PHP_SOCK};
}
}
EOF
nginx_enable_site "typecho"
msg_ok "Configured Nginx"
motd_ssh
customize
cleanup_lxc
+4 -1
View File
@@ -13,15 +13,18 @@ setting_up_container
network_check
update_os
NODE_VERSION="22" NODE_MODULE="pnpm@latest" setup_nodejs
PG_VERSION="17" setup_postgresql
PG_DB_NAME="umamidb" PG_DB_USER="umami" setup_postgresql_db
fetch_and_deploy_gh_release "umami" "umami-software/umami" "tarball"
PNPM_VERSION=$(jq -r '.engines.pnpm // "latest"' /opt/umami/package.json)
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
msg_info "Configuring Umami"
cd /opt/umami
$STD pnpm install
echo -e "DATABASE_URL=postgresql://$PG_DB_USER:$PG_DB_PASS@localhost:5432/$PG_DB_NAME" >>/opt/umami/.env
echo "APP_SECRET=$(openssl rand -hex 32)" >>/opt/umami/.env
$STD pnpm run build
msg_ok "Configured Umami"
+1 -1
View File
@@ -74,7 +74,7 @@ msg_ok "Found UniFi OS Server ${UOS_VERSION}"
msg_info "Downloading UniFi OS Server installer"
mkdir -p /usr/local/sbin
curl -fsSL "$UOS_URL" -o /usr/local/sbin/unifi-os-server.bin
curl_download /usr/local/sbin/unifi-os-server.bin "$UOS_URL"
chmod +x /usr/local/sbin/unifi-os-server.bin
msg_ok "Downloaded UniFi OS Server installer"
+1
View File
@@ -53,6 +53,7 @@ fetch_and_deploy_gh_release "vane" "ItzCrazyKns/Vane" "tarball"
msg_info "Building Vane"
cd /opt/vane
export ONNXRUNTIME_NODE_INSTALL_CUDA=skip
$STD yarn install --frozen-lockfile --network-timeout 600000
$STD yarn build
$STD yarn cache clean
+65
View File
@@ -0,0 +1,65 @@
#!/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/windmill-labs/windmill
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
PG_VERSION="18" setup_postgresql
PG_DB_NAME="windmill" PG_DB_USER="windmill" setup_postgresql_db
setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "windmill" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill-amd64"
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "windmill-duckdb" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill_duckdb_runner"
msg_info "Creating Windmill Database Roles"
# Windmill's migrations can only create these as superuser (windmill_admin needs BYPASSRLS)
$STD sudo -u postgres psql -c "CREATE ROLE windmill_user; CREATE ROLE windmill_admin WITH BYPASSRLS; GRANT windmill_user TO windmill_admin; GRANT windmill_admin, windmill_user TO windmill;"
msg_ok "Created Windmill Database Roles"
msg_info "Configuring Windmill"
mkdir -p /opt/windmill_data
cat <<EOF >/opt/windmill_data/.env
DATABASE_URL=postgres://windmill:${PG_DB_PASS}@127.0.0.1:5432/windmill?sslmode=disable
MODE=standalone
BASE_URL=http://${LOCAL_IP}:8000
EOF
chmod 600 /opt/windmill_data/.env
msg_ok "Configured Windmill"
msg_info "Creating Windmill Service"
cat <<EOF >/etc/systemd/system/windmill.service
[Unit]
Description=Windmill
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/windmill
EnvironmentFile=/opt/windmill_data/.env
# ~/.windmill is the version file, but Windmill keeps its standalone bundles in \$HOME/.windmill
Environment=HOME=/opt/windmill_data
Environment=WINDMILL_DIR=/opt/windmill_data
ExecStart=/opt/windmill/windmill
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now windmill
msg_ok "Created Windmill Service"
motd_ssh
customize
cleanup_lxc
+114
View File
@@ -0,0 +1,114 @@
#!/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/woodpecker-ci/woodpecker
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 \
git \
git-lfs
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "woodpecker-server" "woodpecker-ci/woodpecker" "prebuild" "latest" "/opt/woodpecker" "woodpecker-server_linux_$(arch_resolve).tar.gz"
fetch_and_deploy_gh_release "woodpecker-agent" "woodpecker-ci/woodpecker" "prebuild" "latest" "/opt/woodpecker" "woodpecker-agent_linux_$(arch_resolve).tar.gz"
# The local backend clones with plugin-git from PATH; without it every workflow downloads it from the GitHub API
fetch_and_deploy_gh_release "plugin-git" "woodpecker-ci/plugin-git" "singlefile" "latest" "/usr/local/bin" "linux-$(arch_resolve)_plugin-git"
msg_info "Configuring Woodpecker CI"
mkdir -p /opt/woodpecker_data/workspaces
AGENT_SECRET=$(openssl rand -hex 32)
cat <<EOF >/opt/woodpecker_data/server.env
WOODPECKER_HOST=http://${LOCAL_IP}:8000
WOODPECKER_AGENT_SECRET=${AGENT_SECRET}
WOODPECKER_GRPC_SECRET=$(openssl rand -hex 32)
WOODPECKER_DATABASE_DRIVER=sqlite3
WOODPECKER_DATABASE_DATASOURCE=/opt/woodpecker_data/woodpecker.sqlite
WOODPECKER_OPEN=false
WOODPECKER_ADMIN=${var_forge_admin:-}
EOF
if [[ -n "${var_forge:-}" ]]; then
cat <<EOF >>/opt/woodpecker_data/server.env
WOODPECKER_${var_forge^^}=true
WOODPECKER_${var_forge^^}_URL=${var_forge_url:-}
WOODPECKER_${var_forge^^}_CLIENT=${var_forge_client}
WOODPECKER_${var_forge^^}_SECRET=${var_forge_secret}
EOF
else
cat <<EOF >>/opt/woodpecker_data/server.env
# Woodpecker CI signs users in through one forge. Create an OAuth app there with the
# callback URL http://${LOCAL_IP}:8000/authorize, set your forge login in WOODPECKER_ADMIN
# and fill in the block below. GitHub, Gitea, GitLab and Bitbucket use the same
# WOODPECKER_<FORGE>_* names: https://woodpecker-ci.org/docs/administration/configuration/forges/overview
# Then run: systemctl enable --now woodpecker-server woodpecker-agent
#WOODPECKER_FORGEJO=true
#WOODPECKER_FORGEJO_URL=https://forgejo.example.com
#WOODPECKER_FORGEJO_CLIENT=
#WOODPECKER_FORGEJO_SECRET=
EOF
fi
# Debian 13 keeps /tmp in RAM, so workflows are checked out on disk instead
cat <<EOF >/opt/woodpecker_data/agent.env
WOODPECKER_SERVER=localhost:9000
WOODPECKER_AGENT_SECRET=${AGENT_SECRET}
WOODPECKER_BACKEND=local
WOODPECKER_BACKEND_LOCAL_TEMP_DIR=/opt/woodpecker_data/workspaces
WOODPECKER_AGENT_CONFIG_FILE=/opt/woodpecker_data/agent.conf
EOF
chmod 600 /opt/woodpecker_data/server.env /opt/woodpecker_data/agent.env
msg_ok "Configured Woodpecker CI"
msg_info "Creating Woodpecker CI Services"
cat <<EOF >/etc/systemd/system/woodpecker-server.service
[Unit]
Description=Woodpecker CI Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/woodpecker_data
EnvironmentFile=/opt/woodpecker_data/server.env
ExecStart=/opt/woodpecker/woodpecker-server
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/woodpecker-agent.service
[Unit]
Description=Woodpecker CI Agent
After=network-online.target woodpecker-server.service
Wants=network-online.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/woodpecker_data
EnvironmentFile=/opt/woodpecker_data/agent.env
ExecStart=/opt/woodpecker/woodpecker-agent
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
if [[ -n "${var_forge:-}" ]]; then
systemctl enable -q --now woodpecker-server woodpecker-agent
fi
msg_ok "Created Woodpecker CI Services"
motd_ssh
customize
cleanup_lxc
+174
View File
@@ -0,0 +1,174 @@
#!/usr/bin/env bash
# community-scripts ORG | Immich Power Tools Addon Installer
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/immich-power-tools/immich-power-tools
if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
fi
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/lib/tools.func")
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/error_handler.func")
APP="Immich Power Tools"
APP_TYPE="addon"
header_info "$APP"
color
catch_errors
if [[ ! -f /opt/immich/.env ]] || ! systemctl is-active --quiet immich-web; then
msg_error "Immich is not installed or not running. Install the Immich LXC first, then run this addon inside it."
exit 1
fi
if [[ "$(cut -d. -f1 ~/.immich 2>/dev/null)" -lt 3 ]]; then
msg_error "Immich Power Tools needs Immich 3.0 or newer. Update the Immich LXC first."
exit 1
fi
MEM_MB=$(awk '/MemTotal/ {printf "%.0f", $2/1024}' /proc/meminfo)
if ((MEM_MB < 4096)); then
msg_error "Insufficient memory: ${MEM_MB} MB detected. At least 4096 MB RAM is required to build Immich Power Tools."
exit 1
fi
get_lxc_ip
function build_power_tools() {
cd /opt/immich-power-tools || exit 1
$STD bun install --frozen-lockfile
VERSION="$(cat ~/.immich-power-tools)" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
cp -r public .next/standalone/
cp -r .next/static .next/standalone/.next/
mkdir -p .next/standalone/src/db
cp -r src/db/migrations .next/standalone/src/db/
cp -r node_modules/@libsql node_modules/libsql .next/standalone/node_modules/
rm -rf node_modules .next/cache
$STD bun pm cache rm
}
function install_ui() {
if [[ -z "${var_immich_api_key:-}" ]]; then
var_immich_api_key=$(prompt_input "Immich API key (empty = log in with your Immich account):" "" 120)
fi
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools" "tarball"
msg_info "Building Immich Power Tools"
build_power_tools
msg_ok "Built Immich Power Tools"
msg_info "Configuring Immich Power Tools"
IMMICH_PORT=$(sed -n 's/^IMMICH_PORT=//p' /opt/immich/.env)
DB_PORT=$(sed -n 's/^DB_PORT=//p' /opt/immich/.env)
mkdir -p /opt/immich-power-tools_data
cat <<EOF >/opt/immich-power-tools_data/.env
NODE_ENV=production
NEXT_TELEMETRY_DISABLED=1
PORT=8001
HOSTNAME=0.0.0.0
APP_DB_PATH=/opt/immich-power-tools_data/app.db
IMMICH_URL=http://127.0.0.1:${IMMICH_PORT:-2283}
EXTERNAL_IMMICH_URL=http://${LOCAL_IP}:${IMMICH_PORT:-2283}
# Immich > Account Settings > API Keys (all permissions). Empty = log in with an Immich account.
# With a key there is no login: everyone reaching port 8001 acts as the key's owner.
IMMICH_API_KEY=${var_immich_api_key}
DB_HOST=$(sed -n 's/^DB_HOSTNAME=//p' /opt/immich/.env)
DB_PORT=${DB_PORT:-5432}
$(grep -E '^DB_(USERNAME|PASSWORD|DATABASE_NAME)=' /opt/immich/.env)
SECURE_COOKIE=false
JWT_SECRET=$(openssl rand -hex 32)
POWER_TOOLS_ENDPOINT_URL=http://${LOCAL_IP}:8001
# Optional, any OpenAI-compatible API for "Find"
# AI_API_KEY=
# AI_BASE_URL=https://api.openai.com/v1
# AI_MODEL=gpt-4o-mini
EOF
chmod 600 /opt/immich-power-tools_data/.env
cat <<EOF >/etc/systemd/system/immich-power-tools.service
[Unit]
Description=Immich Power Tools
After=network.target postgresql.service immich-web.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/immich-power-tools/.next/standalone
EnvironmentFile=/opt/immich-power-tools_data/.env
ExecStart=/usr/bin/node /opt/immich-power-tools/.next/standalone/server.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now immich-power-tools
msg_ok "Configured Immich Power Tools"
msg_ok "Immich Power Tools installed at http://${LOCAL_IP}:8001"
if [[ -n "$var_immich_api_key" ]]; then
msg_warn "Immich Power Tools has no login with an API key: everyone reaching port 8001 acts as the key's owner"
else
echo -e "${INFO}${YW} Log in with your Immich account, or set IMMICH_API_KEY in /opt/immich-power-tools_data/.env and run: systemctl restart immich-power-tools${CL}"
fi
}
function uninstall_ui() {
msg_info "Uninstalling Immich Power Tools"
systemctl disable -q --now immich-power-tools
rm -f /etc/systemd/system/immich-power-tools.service
systemctl daemon-reload
rm -rf /opt/immich-power-tools /opt/immich-power-tools_data ~/.immich-power-tools
msg_ok "Uninstalled Immich Power Tools"
}
function update_ui() {
if check_for_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools"; then
msg_info "Stopping Immich Power Tools"
systemctl stop immich-power-tools
msg_ok "Stopped Immich Power Tools"
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools" "tarball"
msg_info "Building Immich Power Tools"
build_power_tools
msg_ok "Built Immich Power Tools"
msg_info "Starting Immich Power Tools"
systemctl start immich-power-tools
msg_ok "Started Immich Power Tools"
msg_ok "Updated Immich Power Tools"
fi
}
if [[ -f /etc/systemd/system/immich-power-tools.service ]]; then
read -r -p "Update (1), Uninstall (2), Cancel (3)? [1/2/3]: " action
action="${action//[[:space:]]/}"
case "$action" in
1) update_ui ;;
2) uninstall_ui ;;
3) msg_warn "Cancelled" ;;
*) msg_error "Invalid input" ;;
esac
else
read -r -p "Install Immich Power Tools? (y/n): " answer
answer="${answer//[[:space:]]/}"
if [[ "${answer,,}" =~ ^(y|yes)$ ]]; then
install_ui
else
msg_warn "Installation of Immich Power Tools skipped"
fi
fi
+114
View File
@@ -0,0 +1,114 @@
#!/usr/bin/env bash
# community-scripts ORG | VueTorrent Addon Installer
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/VueTorrent/VueTorrent
if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
fi
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/lib/tools.func")
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/error_handler.func")
color
catch_errors
APP="VueTorrent"
APP_TYPE="addon"
QBT_CONF="/root/.config/qBittorrent/qBittorrent.conf"
header_info "$APP"
require_debian_like
get_lxc_ip
if [[ ! -f /etc/systemd/system/qbittorrent-nox.service || ! -f "$QBT_CONF" ]]; then
msg_error "qBittorrent is not installed. Install the qBittorrent LXC first, then run the VueTorrent addon inside it."
exit 1
fi
QBT_PORT=$(sed -nE '/^(WebUI\\)?Port=/{s/^[^=]*=//p;q}' "$QBT_CONF")
# qBittorrent 5.3 moved the WebUI keys from [Preferences] (WebUI\Key) to their own [WebUI] section
function qbt_webui_set() {
local section="Preferences" key="WebUI\\$1" tmp
if grep -q '^\[WebUI\]' "$QBT_CONF"; then
section="WebUI"
key="$1"
fi
tmp=$(mktemp)
SECTION="[${section}]" KEY="${key}=" LINE="${key}=$2" awk '
/^\[/ { in_section = ($0 == ENVIRON["SECTION"]) }
in_section && index($0, ENVIRON["KEY"]) == 1 { next }
{ print }
in_section && $0 == ENVIRON["SECTION"] && !done { print ENVIRON["LINE"]; done = 1 }
END { if (!done) printf "\n%s\n%s\n", ENVIRON["SECTION"], ENVIRON["LINE"] }
' "$QBT_CONF" >"$tmp"
cat "$tmp" >"$QBT_CONF"
rm -f "$tmp"
}
function install_vuetorrent() {
fetch_and_deploy_gh_release "vuetorrent" "VueTorrent/VueTorrent" "prebuild" "latest" "/opt/vuetorrent" "vuetorrent.zip"
# qBittorrent writes its config back on shutdown, so it has to be stopped before editing
msg_info "Enabling VueTorrent in qBittorrent"
systemctl stop qbittorrent-nox
qbt_webui_set AlternativeUIEnabled true
qbt_webui_set RootFolder /opt/vuetorrent
systemctl start qbittorrent-nox
msg_ok "Enabled VueTorrent in qBittorrent"
echo ""
msg_ok "VueTorrent is reachable at: ${BL}http://${LOCAL_IP}:${QBT_PORT:-8080}${CL}"
echo -e "${INFO}${YW} Log in with your qBittorrent WebUI credentials${CL}"
}
function update_vuetorrent() {
if check_for_gh_release "vuetorrent" "VueTorrent/VueTorrent"; then
# qBittorrent turns the alternative UI off for good if index.html is missing on a request, so swap instead of wiping in place
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "vuetorrent" "VueTorrent/VueTorrent" "prebuild" "latest" "/opt/vuetorrent.new" "vuetorrent.zip"
rm -rf /opt/vuetorrent.old
mv /opt/vuetorrent /opt/vuetorrent.old
mv /opt/vuetorrent.new /opt/vuetorrent
rm -rf /opt/vuetorrent.old
msg_ok "Updated VueTorrent"
fi
}
function uninstall_vuetorrent() {
msg_info "Uninstalling VueTorrent"
systemctl stop qbittorrent-nox
qbt_webui_set AlternativeUIEnabled false
qbt_webui_set RootFolder ""
rm -rf /opt/vuetorrent "$HOME/.vuetorrent"
systemctl start qbittorrent-nox
msg_ok "Uninstalled VueTorrent, qBittorrent is back on its built-in WebUI"
}
if [[ -d /opt/vuetorrent ]]; then
if [[ "${type:-}" == "update" ]]; then
update_vuetorrent
exit 0
fi
read -r -p "${TAB}Update (1), Uninstall (2), Cancel (3)? [1/2/3]: " action || action=""
action="${action//[[:space:]]/}"
case "$action" in
1) update_vuetorrent ;;
2) uninstall_vuetorrent ;;
3) msg_warn "No changes made to VueTorrent" ;;
*) msg_error "Invalid input - no changes made to VueTorrent" ;;
esac
else
read -r -p "${TAB}Install VueTorrent? (y/n): " answer || answer=""
answer="${answer//[[:space:]]/}"
if [[ "${answer,,}" =~ ^(y|yes)$ ]]; then
install_vuetorrent
else
msg_warn "VueTorrent installation skipped"
fi
fi
+12 -3
View File
@@ -111,9 +111,18 @@ while true; do
continue
fi
# Read the IP from the host side; pct exec depends on tools inside the
# guest, which minimal/OCI images may lack.
IP=$(lxc-info -n "$instance" -iH 2>/dev/null | awk '/^[0-9.]+$/ && !/^(127|169\.254)\./ {print; exit}')
if [ -z "$IP" ] || ! ping -c 1 -W 2 "$IP" >/dev/null 2>&1; then
# guest, which minimal/OCI images may lack. net0's address comes first:
# lxc-info lists Docker bridges and VPN tunnels too, often before it.
net0=$(value_of net0)
IP=$(grep -oP '(^|,)ip=\K[0-9.]+(?=/)' <<<"$net0" || true)
if [ -z "$IP" ]; then
iface=$(grep -oP '(^|,)name=\K[^,]+' <<<"$net0" || true)
pid=$(lxc-info -n "$instance" -pH 2>/dev/null)
[ -n "$pid" ] && IP=$(nsenter -t "$pid" -n ip -4 -o addr show dev "${iface:-eth0}" scope global 2>/dev/null | awk '{sub(/\/.*/, "", $4); print $4; exit}')
fi
[ -z "$IP" ] && IP=$(lxc-info -n "$instance" -iH 2>/dev/null | awk '/^[0-9.]+$/ && !/^(127|169\.254)\./ {print; exit}')
# Two rounds of three pings, so one lost packet does not restart it.
if [ -z "$IP" ] || ! { ping -c 3 -W 2 "$IP" >/dev/null 2>&1 || { sleep 5 && ping -c 3 -W 2 "$IP" >/dev/null 2>&1; }; }; then
echo "$(date): CT $instance is not responding, restarting..."
pct stop "$instance" >/dev/null 2>&1
sleep 5
+3 -3
View File
@@ -99,14 +99,14 @@ main() {
fi
start_routines_8
elif [[ "$PVE_MAJOR" == "9" ]]; then
if ((PVE_MINOR < 0 || PVE_MINOR > 2)); then
msg_error "Only Proxmox 9.0-9.2.x is currently supported"
if ((PVE_MINOR < 0 || PVE_MINOR > 3)); then
msg_error "Only Proxmox 9.0-9.3.x is currently supported"
exit 105
fi
start_routines_9 "$PVE_MINOR"
else
msg_error "Unsupported Proxmox VE major version: $PVE_MAJOR"
echo -e "Supported: 8.0–8.9.x and 9.0–9.2.x"
echo -e "Supported: 8.0–8.9.x and 9.0–9.3.x"
exit 105
fi
}
+13 -2
View File
@@ -273,10 +273,15 @@ function dry_run_container() {
# The line of vzdump or pct restore output that says why it failed.
function failure_reason() {
local reason
local reason tool q="'"
reason=$(grep -m1 '^ERROR:' <<<"$1" | sed 's/^ERROR: //')
# A rejected option ends in the usage line, the option's error is above it.
[[ -n "$reason" ]] || reason=$(grep -v -e '^[[:space:]]*$' -e '\[OPTIONS\]$' <<<"$1" | tail -n1)
# vzdump quotes its whole tar pipeline there; what tar or zstd said is above it.
if [[ "$reason" == *" failed - command '"* ]]; then
tool=$(sed '/^ERROR:/q' <<<"$1" | grep -E '^INFO: (tar|zstd|gzip|lzop|rsync|proxmox-backup-client|lxc-usernsexec|Error)[: ]' | tail -n1 | sed 's/^INFO: //; s/[[:space:]]*$//')
reason="${reason%% - command ${q}*} (${reason##*failed: })${tool:+: $tool}"
fi
printf '%s' "$reason"
}
@@ -292,7 +297,13 @@ function backup_container() {
msg_error "Backup of container $1 was interrupted (Ctrl+C or the task was stopped)"
exit 130
fi
msg_error "Backup failed for container $1: $(failure_reason "$output")"
local reason
reason=$(failure_reason "$output")
# zstd writes the archive itself, so its "No space left" is the backup storage.
if [[ "$reason" == *"zstd:"*"No space left on device"* ]]; then
reason+=" - storage '$STORAGE_CHOICE' has $(pvesm status --storage "$STORAGE_CHOICE" 2>/dev/null | awk 'NR==2 {printf "%.1f", $6 / 1048576}') GiB free"
fi
msg_error "Backup failed for container $1: $reason"
exit 235
fi
}