diff --git a/.github/PULL_REQUEST_TEMPLATE/tools.md b/.github/PULL_REQUEST_TEMPLATE/tools.md new file mode 100644 index 00000000..693535ae --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/tools.md @@ -0,0 +1,45 @@ + + +## ✍️ Description + + +## πŸ”— Related Issue + +Fixes # + +## βœ… Prerequisites (**X** in brackets) + +- [ ] **Self-review completed** – Code follows project standards. +- [ ] **Tested thoroughly** – Changes work as expected. +- [ ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. + +--- + +## πŸ—οΈ arm64 Support (**X** in brackets) + +- [ ] **arm64 supported** - Tested and supported on arm64. +- [ ] **arm64 not tested** - Assumed to work on arm64, but testing has not been done. +- [ ] **arm64 not supported** - Confirmed upstream dependencies or binaries do not support arm64. + +**Tested on:** + +--- + +## πŸ› οΈ Type of Change (**X** in brackets) + +- [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. +- [ ] ✨ **New feature** – Adds new, non-breaking functionality. +- [ ] πŸ’₯ **Breaking change** – Alters existing functionality in a way that may require updates. +- [ ] πŸ†• **New script** – A fully functional and tested script or script set. +- [ ] πŸ”§ **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. +- [ ] πŸ“ **Documentation update** – Changes to `README`, `docs/`, or other docs. + +--- + +## πŸ€– AI Assistance (**X** in brackets) + +> If you used an AI tool (GitHub Copilot, Claude, ChatGPT, etc.) to write or generate any scripts in this PR, you **must** confirm compliance below. +> Select exactly one option. + +- [ ] **No AI used** – Scripts were written without AI assistance. +- [ ] **AI was used** – I confirm the scripts were built using [`AGENTS.md`](https://github.com/community-scripts/DevScripts/blob/main/AGENTS.md) and [`.github/agents/pve-script-creator.agent.md`](https://github.com/community-scripts/DevScripts/blob/main/.github/agents/pve-script-creator.agent.md) as guidance, and the output has been reviewed and corrected to match those guidelines. diff --git a/.github/PULL_REQUEST_TEMPLATE/vm.md b/.github/PULL_REQUEST_TEMPLATE/vm.md new file mode 100644 index 00000000..f4148a43 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE/vm.md @@ -0,0 +1,45 @@ + + +## ✍️ Description + + +## πŸ”— Related Issue + +Fixes # + +## βœ… Prerequisites (**X** in brackets) + +- [ ] **Self-review completed** – Code follows project standards. +- [ ] **Tested thoroughly** – Changes work as expected. +- [ ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. + +--- + +## πŸ—οΈ arm64 Support (**X** in brackets) + +- [ ] **arm64 supported** - Tested and supported on arm64. +- [ ] **arm64 not tested** - Assumed to work on arm64, but testing has not been done. +- [ ] **arm64 not supported** - Confirmed upstream dependencies or binaries do not support arm64. + +**Tested on:** + +--- + +## πŸ› οΈ Type of Change (**X** in brackets) + +- [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. +- [ ] ✨ **New feature** – Adds new, non-breaking functionality. +- [ ] πŸ’₯ **Breaking change** – Alters existing functionality in a way that may require updates. +- [ ] πŸ†• **New script** – A fully functional and tested script or script set. +- [ ] πŸ”§ **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. +- [ ] πŸ“ **Documentation update** – Changes to `README`, `docs/`, or other docs. + +--- + +## πŸ€– AI Assistance (**X** in brackets) + +> If you used an AI tool (GitHub Copilot, Claude, ChatGPT, etc.) to write or generate any scripts in this PR, you **must** confirm compliance below. +> Select exactly one option. + +- [ ] **No AI used** – Scripts were written without AI assistance. +- [ ] **AI was used** – I confirm the scripts were built using [`AGENTS.md`](https://github.com/community-scripts/DevScripts/blob/main/AGENTS.md) and [`.github/agents/pve-script-creator.agent.md`](https://github.com/community-scripts/DevScripts/blob/main/.github/agents/pve-script-creator.agent.md) as guidance, and the output has been reviewed and corrected to match those guidelines. diff --git a/.github/workflows/mirror-releases.yml b/.github/workflows/mirror-releases.yml new file mode 100644 index 00000000..127b5e44 --- /dev/null +++ b/.github/workflows/mirror-releases.yml @@ -0,0 +1,52 @@ +name: Mirror releases from ProxmoxVE + +# ProxmoxVE cuts a release of the previous day's changelog at 00:01 UTC. The +# scripts here are a copy of its ct/ and install/, so the same notes apply. + +on: + schedule: + - cron: "20 0 * * *" + workflow_dispatch: + inputs: + tag: + description: "Release to mirror (YYYY-MM-DD, default: yesterday)" + required: false + default: "" + +permissions: + contents: write + +concurrency: + group: mirror-releases + cancel-in-progress: false + +jobs: + mirror: + if: github.repository == 'community-scripts/Incus' + runs-on: ubuntu-latest + steps: + - name: Mirror the release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG_INPUT: ${{ github.event.inputs.tag }} + run: | + set -euo pipefail + tag="${TAG_INPUT:-$(date -u --date=yesterday +%Y-%m-%d)}" + if [[ ! "$tag" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]]; then + echo "::error::'$tag' is not a YYYY-MM-DD release tag" + exit 1 + fi + if gh release view "$tag" -R "$GITHUB_REPOSITORY" >/dev/null 2>&1; then + echo "Release $tag already exists here" + exit 0 + fi + if ! body="$(gh release view "$tag" -R community-scripts/ProxmoxVE --json body --jq .body 2>/dev/null)"; then + echo "ProxmoxVE has no release $tag" + exit 0 + fi + { + echo "> Mirrored from [ProxmoxVE ${tag}](https://github.com/community-scripts/ProxmoxVE/releases/tag/${tag}). This repository carries its \`ct/\` and \`install/\` scripts; entries about VMs, turnkey and Proxmox host tools do not apply to Incus." + echo + printf '%s\n' "$body" + } >notes.md + gh release create "$tag" -R "$GITHUB_REPOSITORY" --target "$GITHUB_SHA" -t "$tag" -F notes.md diff --git a/.github/workflows/sync-scripts.yml b/.github/workflows/sync-scripts.yml index eadffd1c..a5169898 100644 --- a/.github/workflows/sync-scripts.yml +++ b/.github/workflows/sync-scripts.yml @@ -5,7 +5,7 @@ name: Sync scripts from ProxmoxVE # which must load the engine from core (ProxmoxVE's own misc/build.func is a # monolith with no Incus backend, so an unmodified copy would not run here). # -# Only ct/ and install/ are mirrored. vm/ calls qm and pvesm directly, turnkey/ +# Only ct/, install/ and CHANGELOG.md are mirrored. vm/ calls qm and pvesm directly, turnkey/ # is a Proxmox feature, and tools/pve/ is Proxmox host management -- none of # them are portable. Headers are excluded: they are generated into core, which # serves them to every script repo. tools/incus/ and json/ are maintained in @@ -53,6 +53,7 @@ jobs: rm -rf ct install cp -r .upstream/ct ct cp -r .upstream/install install + cp .upstream/CHANGELOG.md CHANGELOG.md # Headers live in core, generated for every script repo at once. rm -rf ct/headers rm -rf .upstream @@ -139,12 +140,12 @@ jobs: branch: sync/proxmoxve-scripts title: "Sync scripts from ProxmoxVE" commit-message: | - Sync ct/ and install/ from ProxmoxVE + Sync ct/, install/ and CHANGELOG.md from ProxmoxVE Mirrored automatically. The bootstrap line is rewritten to load the engine from core, which is the only difference to upstream. body: | - Automated mirror of `ct/` and `install/` from + Automated mirror of `ct/`, `install/` and `CHANGELOG.md` from [ProxmoxVE](https://github.com/community-scripts/ProxmoxVE). The only change applied on top is the bootstrap line, which loads the diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..0891c8c3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,1571 @@ +ο»Ώ
+ + + +
+

Changelog

+ +

All notable changes to this project will be documented in this file.

+ +> [!CAUTION] +Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

πŸ“œ History

+ + +
+

2026

+ + +
+

November (14 entries)

+ +[View November 2026 Changelog](.github/changelogs/2026/11.md) + +
+ +
+

October (31 entries)

+ +[View October 2026 Changelog](.github/changelogs/2026/10.md) + +
+ +
+

September (30 entries)

+ +[View September 2026 Changelog](.github/changelogs/2026/09.md) + +
+ +
+

August (31 entries)

+ +[View August 2026 Changelog](.github/changelogs/2026/08.md) + +
+ +
+

July (31 entries)

+ +[View July 2026 Changelog](.github/changelogs/2026/07.md) + +
+ +
+

June (30 entries)

+ +[View June 2026 Changelog](.github/changelogs/2026/06.md) + +
+ +
+

May (31 entries)

+ +[View May 2026 Changelog](.github/changelogs/2026/05.md) + +
+ +
+

April (30 entries)

+ +[View April 2026 Changelog](.github/changelogs/2026/04.md) + +
+ +
+

March (31 entries)

+ +[View March 2026 Changelog](.github/changelogs/2026/03.md) + +
+ +
+

February (28 entries)

+ +[View February 2026 Changelog](.github/changelogs/2026/02.md) + +
+ +
+

January (31 entries)

+ +[View January 2026 Changelog](.github/changelogs/2026/01.md) + +
+ +
+ +
+

2025

+ + +
+

December (31 entries)

+ +[View December 2025 Changelog](.github/changelogs/2025/12.md) + +
+ +
+

November (29 entries)

+ +[View November 2025 Changelog](.github/changelogs/2025/11.md) + +
+ +
+

October (30 entries)

+ +[View October 2025 Changelog](.github/changelogs/2025/10.md) + +
+ +
+

September (29 entries)

+ +[View September 2025 Changelog](.github/changelogs/2025/09.md) + +
+ +
+

August (30 entries)

+ +[View August 2025 Changelog](.github/changelogs/2025/08.md) + +
+ +
+

July (29 entries)

+ +[View July 2025 Changelog](.github/changelogs/2025/07.md) + +
+ +
+

June (29 entries)

+ +[View June 2025 Changelog](.github/changelogs/2025/06.md) + +
+ +
+

May (30 entries)

+ +[View May 2025 Changelog](.github/changelogs/2025/05.md) + +
+ +
+

April (25 entries)

+ +[View April 2025 Changelog](.github/changelogs/2025/04.md) + +
+ +
+

March (30 entries)

+ +[View March 2025 Changelog](.github/changelogs/2025/03.md) + +
+ +
+

February (26 entries)

+ +[View February 2025 Changelog](.github/changelogs/2025/02.md) + +
+ +
+

January (27 entries)

+ +[View January 2025 Changelog](.github/changelogs/2025/01.md) + +
+ +
+ +
+

2024

+ + +
+

December (22 entries)

+ +[View December 2024 Changelog](.github/changelogs/2024/12.md) + +
+ +
+

November (15 entries)

+ +[View November 2024 Changelog](.github/changelogs/2024/11.md) + +
+ +
+

October (9 entries)

+ +[View October 2024 Changelog](.github/changelogs/2024/10.md) + +
+ +
+

September (1 entries)

+ +[View September 2024 Changelog](.github/changelogs/2024/09.md) + +
+ +
+

August (2 entries)

+ +[View August 2024 Changelog](.github/changelogs/2024/08.md) + +
+ +
+

July (0 entries)

+ +[View July 2024 Changelog](.github/changelogs/2024/07.md) + +
+ +
+

June (8 entries)

+ +[View June 2024 Changelog](.github/changelogs/2024/06.md) + +
+ +
+

May (16 entries)

+ +[View May 2024 Changelog](.github/changelogs/2024/05.md) + +
+ +
+

April (14 entries)

+ +[View April 2024 Changelog](.github/changelogs/2024/04.md) + +
+ +
+

March (5 entries)

+ +[View March 2024 Changelog](.github/changelogs/2024/03.md) + +
+ +
+

February (9 entries)

+ +[View February 2024 Changelog](.github/changelogs/2024/02.md) + +
+ +
+

January (9 entries)

+ +[View January 2024 Changelog](.github/changelogs/2024/01.md) + +
+ +
+ +
+

2023

+ + +
+

December (3 entries)

+ +[View December 2023 Changelog](.github/changelogs/2023/12.md) + +
+ +
+

November (3 entries)

+ +[View November 2023 Changelog](.github/changelogs/2023/11.md) + +
+ +
+

October (7 entries)

+ +[View October 2023 Changelog](.github/changelogs/2023/10.md) + +
+ +
+

September (10 entries)

+ +[View September 2023 Changelog](.github/changelogs/2023/09.md) + +
+ +
+

August (7 entries)

+ +[View August 2023 Changelog](.github/changelogs/2023/08.md) + +
+ +
+

July (5 entries)

+ +[View July 2023 Changelog](.github/changelogs/2023/07.md) + +
+ +
+

June (5 entries)

+ +[View June 2023 Changelog](.github/changelogs/2023/06.md) + +
+ +
+

May (8 entries)

+ +[View May 2023 Changelog](.github/changelogs/2023/05.md) + +
+ +
+

April (8 entries)

+ +[View April 2023 Changelog](.github/changelogs/2023/04.md) + +
+ +
+

March (8 entries)

+ +[View March 2023 Changelog](.github/changelogs/2023/03.md) + +
+ +
+

February (6 entries)

+ +[View February 2023 Changelog](.github/changelogs/2023/02.md) + +
+ +
+

January (15 entries)

+ +[View January 2023 Changelog](.github/changelogs/2023/01.md) + +
+ +
+ +
+

2022

+ + +
+

December (7 entries)

+ +[View December 2022 Changelog](.github/changelogs/2022/12.md) + +
+ +
+

November (7 entries)

+ +[View November 2022 Changelog](.github/changelogs/2022/11.md) + +
+ +
+

October (2 entries)

+ +[View October 2022 Changelog](.github/changelogs/2022/10.md) + +
+ +
+

September (9 entries)

+ +[View September 2022 Changelog](.github/changelogs/2022/09.md) + +
+ +
+

August (7 entries)

+ +[View August 2022 Changelog](.github/changelogs/2022/08.md) + +
+ +
+

July (10 entries)

+ +[View July 2022 Changelog](.github/changelogs/2022/07.md) + +
+ +
+

June (1 entries)

+ +[View June 2022 Changelog](.github/changelogs/2022/06.md) + +
+ +
+

May (8 entries)

+ +[View May 2022 Changelog](.github/changelogs/2022/05.md) + +
+ +
+

April (13 entries)

+ +[View April 2022 Changelog](.github/changelogs/2022/04.md) + +
+ +
+

March (20 entries)

+ +[View March 2022 Changelog](.github/changelogs/2022/03.md) + +
+ +
+

February (15 entries)

+ +[View February 2022 Changelog](.github/changelogs/2022/02.md) + +
+ +
+

January (3 entries)

+ +[View January 2022 Changelog](.github/changelogs/2022/01.md) + +
+ +
+ +
+ +## 2026-11-19 + +### πŸ†• New Scripts + + - T3 Code [@lukdz](https://github.com/lukdz) ([#18845](https://github.com/community-scripts/ProxmoxVE/pull/18845)) +- Faraday [@MickLesk](https://github.com/MickLesk) ([#18844](https://github.com/community-scripts/ProxmoxVE/pull/18844)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Frigate: bump to v0.18.3 [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18841](https://github.com/community-scripts/ProxmoxVE/pull/18841)) + - Nginx Proxy Manager: patch nginx HTTP/2 CVE-2026-123007 / CVE-2026-123633 [@valentingoulier](https://github.com/valentingoulier) ([#18835](https://github.com/community-scripts/ProxmoxVE/pull/18835)) + +### πŸ›°οΈ Services + + - Take the API reference out of the menu and cut it down [@MickLesk](https://github.com/MickLesk) ([services#21](https://github.com/community-scripts/services/pull/21)) +- Add an API reference page and offer 3 days instead of a year [@MickLesk](https://github.com/MickLesk) ([services#20](https://github.com/community-scripts/services/pull/20)) + +## 2026-11-18 + +### πŸ†• New Scripts + + - Factorio [@LindholmLabs](https://github.com/LindholmLabs) ([#18830](https://github.com/community-scripts/ProxmoxVE/pull/18830)) +- Scrutiny [@MickLesk](https://github.com/MickLesk) ([#18827](https://github.com/community-scripts/ProxmoxVE/pull/18827)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - WireGuard: increase Alpine disk size to 2 GB [@degeens](https://github.com/degeens) ([#18831](https://github.com/community-scripts/ProxmoxVE/pull/18831)) + + - #### ✨ New Features + + - OpenCloud: bump to v9.2.0 [@SimKaiLong](https://github.com/SimKaiLong) ([#18822](https://github.com/community-scripts/ProxmoxVE/pull/18822)) + +### 🧰 Tools + + - Scrutiny Collector ([#18826](https://github.com/community-scripts/ProxmoxVE/pull/18826)) + +## 2026-11-17 + +### πŸ†• New Scripts + + - AIOStreams [@MrNRod](https://github.com/MrNRod) ([#18673](https://github.com/community-scripts/ProxmoxVE/pull/18673)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - immichframe: move to .NET 10 (1.0.40.0 requires it) [@supersoju](https://github.com/supersoju) ([#18806](https://github.com/community-scripts/ProxmoxVE/pull/18806)) + - LibreNMS: write a valid APP_KEY before migrating [@MickLesk](https://github.com/MickLesk) ([#18776](https://github.com/community-scripts/ProxmoxVE/pull/18776)) + + - #### ✨ New Features + + - OpenCloud: bump to v9.1.1 [@SimKaiLong](https://github.com/SimKaiLong) ([#18795](https://github.com/community-scripts/ProxmoxVE/pull/18795)) + - Portabase: support file and folder backups (restic / rclone) [@MickLesk](https://github.com/MickLesk) ([#18766](https://github.com/community-scripts/ProxmoxVE/pull/18766)) + + - #### πŸ”§ Refactor + + - ITSM-NG: fetch the repo and key over HTTPS [@MickLesk](https://github.com/MickLesk) ([#18799](https://github.com/community-scripts/ProxmoxVE/pull/18799)) + - Frigate: Fetch the OpenVINO model over HTTPS [@MickLesk](https://github.com/MickLesk) ([#18797](https://github.com/community-scripts/ProxmoxVE/pull/18797)) + - Change Detection: replace Browserless with SockPuppetBrowser [@MickLesk](https://github.com/MickLesk) ([#18767](https://github.com/community-scripts/ProxmoxVE/pull/18767)) + +### πŸ’Ύ Core + + - Stop setting kernel.keys.maxkeys on Incus containers [@MickLesk](https://github.com/MickLesk) ([core#277](https://github.com/community-scripts/core/pull/277)) +- Bound the template catalog lookup so a dead storage cannot hang the run [@MickLesk](https://github.com/MickLesk) ([core#275](https://github.com/community-scripts/core/pull/275)) +- Record a failed command as written in the script [@MickLesk](https://github.com/MickLesk) ([core#274](https://github.com/community-scripts/core/pull/274)) +- Let the Incus network wait ask again when its probe fails [@MickLesk](https://github.com/MickLesk) ([core#273](https://github.com/community-scripts/core/pull/273)) +- Run the VM cleanup and Incus file pull tests in CI | Take files out of an Incus guest as a bounded stream into a private file [@MickLesk](https://github.com/MickLesk) ([core#272](https://github.com/community-scripts/core/pull/272)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - Arcane: show the generated admin password [@MickLesk](https://github.com/MickLesk) ([#18785](https://github.com/community-scripts/ProxmoxVE/pull/18785)) + +### πŸ“š Documentation + + - Changelog: Credit script authors and list services and website changes [@MickLesk](https://github.com/MickLesk) ([#18809](https://github.com/community-scripts/ProxmoxVE/pull/18809)) +- Merge only the changelog pull request the job opened [@MickLesk](https://github.com/MickLesk) ([#18804](https://github.com/community-scripts/ProxmoxVE/pull/18804)) + +### πŸ›°οΈ Services + + - Let contributors read traces and open issues with a password of their own [@MickLesk](https://github.com/MickLesk) ([services#19](https://github.com/community-scripts/services/pull/19)) +- Rework the dashboard around triaging failures [@MickLesk](https://github.com/MickLesk) ([services#18](https://github.com/community-scripts/services/pull/18)) +- Serve failure text only to requests that carry the admin token [@MickLesk](https://github.com/MickLesk) ([services#17](https://github.com/community-scripts/services/pull/17)) +- Number the notes in the testing message and show their type [@MickLesk](https://github.com/MickLesk) ([services#16](https://github.com/community-scripts/services/pull/16)) +- Decide exit 255 by the command, not as dpkg [@MickLesk](https://github.com/MickLesk) ([services#14](https://github.com/community-scripts/services/pull/14)) + +### ❔ Uncategorized + + - chore(ct): sync paperclip defaults with PocketBase [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18820](https://github.com/community-scripts/ProxmoxVE/pull/18820)) + +## 2026-11-16 + +### πŸ†• New Scripts + + - Gitea Runner ([#18782](https://github.com/community-scripts/ProxmoxVE/pull/18782)) +- NetAlertX ([#18781](https://github.com/community-scripts/ProxmoxVE/pull/18781)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Dawarich: let Rails serve undigested asset paths [@ryanvo](https://github.com/ryanvo) ([#18779](https://github.com/community-scripts/ProxmoxVE/pull/18779)) + - ArchiveBox: install libatomic1 for the Playwright driver [@MickLesk](https://github.com/MickLesk) ([#18722](https://github.com/community-scripts/ProxmoxVE/pull/18722)) + - Ollama/OpenWebUI: download update before stopping the service [@jobben-2025](https://github.com/jobben-2025) ([#18755](https://github.com/community-scripts/ProxmoxVE/pull/18755)) + - opengym: bump Node.js from 22 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18756](https://github.com/community-scripts/ProxmoxVE/pull/18756)) + - razzia: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18757](https://github.com/community-scripts/ProxmoxVE/pull/18757)) + - reactive-resume: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18758](https://github.com/community-scripts/ProxmoxVE/pull/18758)) + + - #### πŸ’₯ Breaking Changes + + - immich: reuse prebuilt image-processing libraries from the base image [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18605](https://github.com/community-scripts/ProxmoxVE/pull/18605)) + +### πŸ’Ύ Core + + - Treat a closed update menu as cancel [@MickLesk](https://github.com/MickLesk) ([core#270](https://github.com/community-scripts/core/pull/270)) +- forge: a .deb without service units is not an error [@MickLesk](https://github.com/MickLesk) ([core#269](https://github.com/community-scripts/core/pull/269)) + +## 2026-11-15 + +### πŸ†• New Scripts + + - DietPi ([#18746](https://github.com/community-scripts/ProxmoxVE/pull/18746)) +- openlist ([#18747](https://github.com/community-scripts/ProxmoxVE/pull/18747)) +- BlissOS VM ([#18745](https://github.com/community-scripts/ProxmoxVE/pull/18745)) +- vLLM ([#18744](https://github.com/community-scripts/ProxmoxVE/pull/18744)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Trilium: keep the installed version when an update download fails [@s31teg](https://github.com/s31teg) ([#18592](https://github.com/community-scripts/ProxmoxVE/pull/18592)) + - several scripts: keep the port in redirects of PHP apps behind nginx on a custom port [@MickLesk](https://github.com/MickLesk) ([#18732](https://github.com/community-scripts/ProxmoxVE/pull/18732)) + - NPMplus: offer the container's timezone as the default [@MickLesk](https://github.com/MickLesk) ([#18733](https://github.com/community-scripts/ProxmoxVE/pull/18733)) + + - #### ✨ New Features + + - OpenCloud: bump to v9.0.0, configure the service account through env [@SimKaiLong](https://github.com/SimKaiLong) ([#18586](https://github.com/community-scripts/ProxmoxVE/pull/18586)) + + - #### πŸ”§ Refactor + + - Nginx Proxy Manager: fall back to Alpine's distfiles for the OpenResty source [@MickLesk](https://github.com/MickLesk) ([#18736](https://github.com/community-scripts/ProxmoxVE/pull/18736)) + +### πŸ’Ύ Core + + - Keep the certificate CN within 64 characters [@MickLesk](https://github.com/MickLesk) ([core#267](https://github.com/community-scripts/core/pull/267)) +- setup_rust: retry the rustup install [@MickLesk](https://github.com/MickLesk) ([core#266](https://github.com/community-scripts/core/pull/266)) +- setup_nodejs: probe a module's binaries by its bin field [@MickLesk](https://github.com/MickLesk) ([core#265](https://github.com/community-scripts/core/pull/265)) + +## 2026-11-14 + +### πŸ†• New Scripts + + - LibreDB Studio ([#18699](https://github.com/community-scripts/ProxmoxVE/pull/18699)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - GoatCounter: let the singlefile download unpack the binary [@MickLesk](https://github.com/MickLesk) ([#18721](https://github.com/community-scripts/ProxmoxVE/pull/18721)) + - Zerobyte: let the singlefile download unpack restic [@MickLesk](https://github.com/MickLesk) ([#18720](https://github.com/community-scripts/ProxmoxVE/pull/18720)) + - LibreNMS: default to an 8 GB disk [@MickLesk](https://github.com/MickLesk) ([#18723](https://github.com/community-scripts/ProxmoxVE/pull/18723)) + +## 2026-11-13 + +### πŸ†• New Scripts + + - marimo ([#18672](https://github.com/community-scripts/ProxmoxVE/pull/18672)) +- GoatCounter ([#18662](https://github.com/community-scripts/ProxmoxVE/pull/18662)) +- Unsloth ([#18697](https://github.com/community-scripts/ProxmoxVE/pull/18697)) +- colanode ([#18685](https://github.com/community-scripts/ProxmoxVE/pull/18685)) +- SimpleLogin ([#18680](https://github.com/community-scripts/ProxmoxVE/pull/18680)) +- Nightingale ([#18674](https://github.com/community-scripts/ProxmoxVE/pull/18674)) +- Temporal ([#18670](https://github.com/community-scripts/ProxmoxVE/pull/18670)) +- TrailBase ([#18669](https://github.com/community-scripts/ProxmoxVE/pull/18669)) +- Weaviate ([#18671](https://github.com/community-scripts/ProxmoxVE/pull/18671)) +- Spacebot ([#18668](https://github.com/community-scripts/ProxmoxVE/pull/18668)) +- New-API ([#18667](https://github.com/community-scripts/ProxmoxVE/pull/18667)) +- Martin ([#18666](https://github.com/community-scripts/ProxmoxVE/pull/18666)) +- Langflow ([#18665](https://github.com/community-scripts/ProxmoxVE/pull/18665)) +- Inngest ([#18664](https://github.com/community-scripts/ProxmoxVE/pull/18664)) +- Hatchet ([#18663](https://github.com/community-scripts/ProxmoxVE/pull/18663)) +- Engram ([#18661](https://github.com/community-scripts/ProxmoxVE/pull/18661)) +- Euro-Office ([#18660](https://github.com/community-scripts/ProxmoxVE/pull/18660)) +- Cypht ([#18659](https://github.com/community-scripts/ProxmoxVE/pull/18659)) +- AirConnect ([#18653](https://github.com/community-scripts/ProxmoxVE/pull/18653)) +- Bulwark ([#18656](https://github.com/community-scripts/ProxmoxVE/pull/18656)) +- Convex ([#18658](https://github.com/community-scripts/ProxmoxVE/pull/18658)) +- Chroma ([#18657](https://github.com/community-scripts/ProxmoxVE/pull/18657)) +- Bugsink ([#18655](https://github.com/community-scripts/ProxmoxVE/pull/18655)) +- 9Router ([#18654](https://github.com/community-scripts/ProxmoxVE/pull/18654)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - wikijs: fix missing backend deps on amd64 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#18715](https://github.com/community-scripts/ProxmoxVE/pull/18715)) + +### πŸ’Ύ Core + + - tools: Issue self-signed certificates for 825 days and renew expiring ones [@MickLesk](https://github.com/MickLesk) ([core#251](https://github.com/community-scripts/core/pull/251)) +- core: start and restart a .deb's services after binary mode installs it [@MickLesk](https://github.com/MickLesk) ([core#250](https://github.com/community-scripts/core/pull/250)) +- forge: find a pinned tag whether or not it is written with its v [@MickLesk](https://github.com/MickLesk) ([core#249](https://github.com/community-scripts/core/pull/249)) +- core: unpack a compressed single binary in singlefile mode [@MickLesk](https://github.com/MickLesk) ([core#248](https://github.com/community-scripts/core/pull/248)) +- forge: skip pre-release tags in get_latest_gh_tag [@MickLesk](https://github.com/MickLesk) ([core#263](https://github.com/community-scripts/core/pull/263)) +- tools: use MySQL's current signing key and the trixie suite [@MickLesk](https://github.com/MickLesk) ([core#262](https://github.com/community-scripts/core/pull/262)) +- tools: install a bare executable from a URL [@MickLesk](https://github.com/MickLesk) ([core#260](https://github.com/community-scripts/core/pull/260)) +- tools: match packageManager pins without their hash [@MickLesk](https://github.com/MickLesk) ([core#258](https://github.com/community-scripts/core/pull/258)) +- tools: build Ruby on disk and without docs [@MickLesk](https://github.com/MickLesk) ([core#257](https://github.com/community-scripts/core/pull/257)) +- forge: rank a trailing letter as a revision in the version key [@MickLesk](https://github.com/MickLesk) ([core#256](https://github.com/community-scripts/core/pull/256)) +- fix: pin tag-only apps with var_appversion too [@MickLesk](https://github.com/MickLesk) ([core#255](https://github.com/community-scripts/core/pull/255)) +- tools: read the mounts once when emptying a target for a clean install [@MickLesk](https://github.com/MickLesk) ([core#254](https://github.com/community-scripts/core/pull/254)) +- forge: use the designated release for a tag prefix when it carries the prefix [@MickLesk](https://github.com/MickLesk) ([core#252](https://github.com/community-scripts/core/pull/252)) +- gpu / hwaccell: type GPUs by PCI ID and install the right NVIDIA packages on Ubuntu [@MickLesk](https://github.com/MickLesk) ([core#247](https://github.com/community-scripts/core/pull/247)) +- Clear yarn 1's root cache in cleanup_lxc [@MickLesk](https://github.com/MickLesk) ([core#246](https://github.com/community-scripts/core/pull/246)) +- fix: run Meilisearch --upgrade-db on patch updates too [@CrazyWolf13](https://github.com/CrazyWolf13) ([core#259](https://github.com/community-scripts/core/pull/259)) +- db: only chmod a database credentials file that is a regular file [@MickLesk](https://github.com/MickLesk) ([core#253](https://github.com/community-scripts/core/pull/253)) +- fix: take a Debian cloud image from the newest build that has it [@MickLesk](https://github.com/MickLesk) ([core#261](https://github.com/community-scripts/core/pull/261)) +- telemetry: always on for DevScripts, with a one-time notice [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([core#245](https://github.com/community-scripts/core/pull/245)) +- Shield pct start and the template check from a closed console [@MickLesk](https://github.com/MickLesk) ([core#239](https://github.com/community-scripts/core/pull/239)) +- core: say why a container stopped by itself during its setup [@MickLesk](https://github.com/MickLesk) ([core#234](https://github.com/community-scripts/core/pull/234)) +- Download a corrupt local template again instead of keeping it [@MickLesk](https://github.com/MickLesk) ([core#235](https://github.com/community-scripts/core/pull/235)) +- fetch the install script before the container is created [@MickLesk](https://github.com/MickLesk) ([core#236](https://github.com/community-scripts/core/pull/236)) + +## 2026-11-12 + +### πŸ†• New Scripts + + - Pixelfed ([#18523](https://github.com/community-scripts/ProxmoxVE/pull/18523)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - OnlyOffice: change ct port to 8083 [@MickLesk](https://github.com/MickLesk) ([#18642](https://github.com/community-scripts/ProxmoxVE/pull/18642)) + - dotnetaspwebapi: start the service only once an app is deployed [@MickLesk](https://github.com/MickLesk) ([#18639](https://github.com/community-scripts/ProxmoxVE/pull/18639)) + - Whisparr-eros: set the first login and save it [@MickLesk](https://github.com/MickLesk) ([#18617](https://github.com/community-scripts/ProxmoxVE/pull/18617)) + + - #### πŸ’₯ Breaking Changes + + - Updated ASP.NET Web App script to Debian and adds a .Net selection [@kris701](https://github.com/kris701) ([#18628](https://github.com/community-scripts/ProxmoxVE/pull/18628)) + +### πŸ’Ύ Core + + - github: bump workflow actions to their current majors [@MickLesk](https://github.com/MickLesk) ([core#240](https://github.com/community-scripts/core/pull/240)) +- Say what the host sees when a container gets no address [@MickLesk](https://github.com/MickLesk) ([core#230](https://github.com/community-scripts/core/pull/230)) +- Fall back to public DNS for Alpine containers too [@MickLesk](https://github.com/MickLesk) ([core#231](https://github.com/community-scripts/core/pull/231)) +- Do not fail a finished install over the monitoring service [@MickLesk](https://github.com/MickLesk) ([core#232](https://github.com/community-scripts/core/pull/232)) +- Deploy a release by moving it, and stop on a full diskΒ² [@MickLesk](https://github.com/MickLesk) ([core#233](https://github.com/community-scripts/core/pull/233)) +- core: say when pct create fails because timedatectl does not answer [@MickLesk](https://github.com/MickLesk) ([core#237](https://github.com/community-scripts/core/pull/237)) +- ref: stop calling every exit 255 a dpkg error [@MickLesk](https://github.com/MickLesk) ([core#238](https://github.com/community-scripts/core/pull/238)) +- Write uv's shell completions without STD [@MickLesk](https://github.com/MickLesk) ([core#241](https://github.com/community-scripts/core/pull/241)) +- Generate database passwords with random_password / Keep the database helpers' credentials files private [@MickLesk](https://github.com/MickLesk) ([core#242](https://github.com/community-scripts/core/pull/242)) + +### πŸ“š Documentation + + - github: bump workflow actions to their current majors [@MickLesk](https://github.com/MickLesk) ([#18637](https://github.com/community-scripts/ProxmoxVE/pull/18637)) +- pocketbase-bot: apply website metadata requests from Accept/Decline boxes [@MickLesk](https://github.com/MickLesk) ([#18631](https://github.com/community-scripts/ProxmoxVE/pull/18631)) + +## 2026-11-11 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - TrueNas: Fixing isolookup and dialog [@juronja](https://github.com/juronja) ([#18578](https://github.com/community-scripts/ProxmoxVE/pull/18578)) + + - #### ✨ New Features + + - Immich: bump to 3.4.1 [@MickLesk](https://github.com/MickLesk) ([#18619](https://github.com/community-scripts/ProxmoxVE/pull/18619)) + - Immich: bump to 3.4.0 [@MickLesk](https://github.com/MickLesk) ([#18600](https://github.com/community-scripts/ProxmoxVE/pull/18600)) + + - #### πŸ’₯ Breaking Changes + + - Pocketbase: install and update from the new host (removed in github) [@MickLesk](https://github.com/MickLesk) ([#18609](https://github.com/community-scripts/ProxmoxVE/pull/18609)) + + - #### πŸ”§ Refactor + + - Paperless-AI: install and update to 4.0 [@MickLesk](https://github.com/MickLesk) ([#18620](https://github.com/community-scripts/ProxmoxVE/pull/18620)) + +### πŸ’Ύ Core + + - core: drop the SUDO_ variables an update through sudo carries [@MickLesk](https://github.com/MickLesk) ([core#229](https://github.com/community-scripts/core/pull/229)) +- feat: let setup_deb822_repo use a keyring already on the system [@MickLesk](https://github.com/MickLesk) ([core#227](https://github.com/community-scripts/core/pull/227)) + +### πŸ“š Documentation + + - Fill platforms when a script moves from DevScripts [@MickLesk](https://github.com/MickLesk) ([#18611](https://github.com/community-scripts/ProxmoxVE/pull/18611)) + +## 2026-11-10 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - writefreely: Force symbolic link update [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18588](https://github.com/community-scripts/ProxmoxVE/pull/18588)) + - openproject: start memcached when IPv6 is disabled [@MickLesk](https://github.com/MickLesk) ([#18584](https://github.com/community-scripts/ProxmoxVE/pull/18584)) + - homeassistant.sh: Update pip install command for runlike [@Zajsoft](https://github.com/Zajsoft) ([#18583](https://github.com/community-scripts/ProxmoxVE/pull/18583)) + - Tunarr: fix install and update for the new release layout and latest ErsatzTV-ffmpeg [@chrisbenincasa](https://github.com/chrisbenincasa) ([#18577](https://github.com/community-scripts/ProxmoxVE/pull/18577)) + +### πŸ’Ύ Core + + - fix: keep a script's config file when a package installs it [@MickLesk](https://github.com/MickLesk) ([core#226](https://github.com/community-scripts/core/pull/226)) +- fix: flush the image before importing a VM disk [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([core#223](https://github.com/community-scripts/core/pull/223)) + +### πŸ“‚ Github + + - pr-script-test: pre-answer prompt variables built in a loop [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18596](https://github.com/community-scripts/ProxmoxVE/pull/18596)) +- Build PR scripts on a Proxmox test host via /test [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18594](https://github.com/community-scripts/ProxmoxVE/pull/18594)) + +## 2026-11-09 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - zipline: Update RAM to 3GB [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18569](https://github.com/community-scripts/ProxmoxVE/pull/18569)) + - OpenObserve: record installed version, drop killall ExecStop [@BadFlo](https://github.com/BadFlo) ([#18566](https://github.com/community-scripts/ProxmoxVE/pull/18566)) + - OpenObserve: extract release tarball with --no-same-owner [@BadFlo](https://github.com/BadFlo) ([#18564](https://github.com/community-scripts/ProxmoxVE/pull/18564)) + - Immich: download before stopping, and clear maintenance mode after an interrupted update [@angusmaul](https://github.com/angusmaul) ([#18553](https://github.com/community-scripts/ProxmoxVE/pull/18553)) + - cinephage: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18374](https://github.com/community-scripts/ProxmoxVE/pull/18374)) + - kan: bump Node.js from 20 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18549](https://github.com/community-scripts/ProxmoxVE/pull/18549)) + - myip: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18550](https://github.com/community-scripts/ProxmoxVE/pull/18550)) + + - #### πŸ”§ Refactor + + - security: remove hardcoded credentials in several scripts [@MickLesk](https://github.com/MickLesk) ([#18572](https://github.com/community-scripts/ProxmoxVE/pull/18572)) + - yuvomi: install from the attested release asset [@ulsklyc](https://github.com/ulsklyc) ([#18554](https://github.com/community-scripts/ProxmoxVE/pull/18554)) + +### πŸ—‘οΈ Deleted Scripts + + - coolify: delete old ct / its an addon [@michelroegl-brunner](https://github.com/michelroegl-brunner) ([#18562](https://github.com/community-scripts/ProxmoxVE/pull/18562)) + +### πŸ’Ύ Core + + - core: detect GPUs by their PCI class, not by text anywhere in the line [@MickLesk](https://github.com/MickLesk) ([core#221](https://github.com/community-scripts/core/pull/221)) +- core: load an app's own settings from its .vars file [@MickLesk](https://github.com/MickLesk) ([core#216](https://github.com/community-scripts/core/pull/216)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - IP-Tag: filter guest-agent IPs by CIDR before limiting to 3 [@mazelado](https://github.com/mazelado) ([#18537](https://github.com/community-scripts/ProxmoxVE/pull/18537)) + +## 2026-11-08 + +### πŸ†• New Scripts + + - Chatto ([#18521](https://github.com/community-scripts/ProxmoxVE/pull/18521)) +- Firefox-Syncserver ([#18520](https://github.com/community-scripts/ProxmoxVE/pull/18520)) + +### πŸš€ Updated Scripts + + - #### πŸ”§ Refactor + + - Immich: do not clone libjxl's testdata [@MickLesk](https://github.com/MickLesk) ([#18539](https://github.com/community-scripts/ProxmoxVE/pull/18539)) + - Databasus: build 3.65 and ship the verification agent [@MickLesk](https://github.com/MickLesk) ([#18500](https://github.com/community-scripts/ProxmoxVE/pull/18500)) + +### πŸ’Ύ Core + + - fix: a closed console no longer ends a running setup | ERR trap fixes | check VM ID before creating [@MickLesk](https://github.com/MickLesk) ([core#219](https://github.com/community-scripts/core/pull/219)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - update-apps: keep the backup alive on a closed console, stop before restoring [@MickLesk](https://github.com/MickLesk) ([#18540](https://github.com/community-scripts/ProxmoxVE/pull/18540)) + - clean-lxcs: run with sh and keep going when one container fails [@MickLesk](https://github.com/MickLesk) ([#18538](https://github.com/community-scripts/ProxmoxVE/pull/18538)) + - update-lxcs: keep going when one container fails [@MickLesk](https://github.com/MickLesk) ([#18541](https://github.com/community-scripts/ProxmoxVE/pull/18541)) + +## 2026-11-07 + +### πŸ†• New Scripts + + - EspoCRM ([#18519](https://github.com/community-scripts/ProxmoxVE/pull/18519)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - RomM: emit player isolation headers from the serving location [@adotagarwal](https://github.com/adotagarwal) ([#18511](https://github.com/community-scripts/ProxmoxVE/pull/18511)) + + - #### πŸ’₯ Breaking Changes + + - fix: gotenberg: update to v9 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#18491](https://github.com/community-scripts/ProxmoxVE/pull/18491)) + +### πŸ’Ύ Core + + - nvidia: close the hardware acceleration step when no GPU is usable | pin the whole NVIDIA userspace to the host's driver version [@MickLesk](https://github.com/MickLesk) ([core#215](https://github.com/community-scripts/core/pull/215)) +- fix: stage release downloads on disk, not in /tmp [@rcourtman](https://github.com/rcourtman) ([core#218](https://github.com/community-scripts/core/pull/218)) +- Minor fixes: restart php-fpm during sigpipe, Install jq for forge commands [@MickLesk](https://github.com/MickLesk) ([core#213](https://github.com/community-scripts/core/pull/213)) +- incus: name the project restriction that refuses an Incus launch [@MickLesk](https://github.com/MickLesk) ([core#214](https://github.com/community-scripts/core/pull/214)) + +## 2026-11-06 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - UmbrelOS-VM: report runs as ProxmoxVE, not DevScripts [@MickLesk](https://github.com/MickLesk) ([#18497](https://github.com/community-scripts/ProxmoxVE/pull/18497)) + - Caddy: skip the xCaddy test build below 2 GB RAM [@MickLesk](https://github.com/MickLesk) ([#18472](https://github.com/community-scripts/ProxmoxVE/pull/18472)) + - Thingsboard: keep the package defaults in thingsboard.conf [@MickLesk](https://github.com/MickLesk) ([#18499](https://github.com/community-scripts/ProxmoxVE/pull/18499)) + - Nexterm: keep the extracted app out of the /tmp cleanup [@MickLesk](https://github.com/MickLesk) ([#18501](https://github.com/community-scripts/ProxmoxVE/pull/18501)) + - PLANKA: run the service with node instead of nodemon [@MickLesk](https://github.com/MickLesk) ([#18503](https://github.com/community-scripts/ProxmoxVE/pull/18503)) + - MeTube/Yubal: install Deno without its shell setup [@MickLesk](https://github.com/MickLesk) ([#18406](https://github.com/community-scripts/ProxmoxVE/pull/18406)) + - OPNsense VM: size the temp space check to the unpacked image | say why the EFI disk could not be allocated [@MickLesk](https://github.com/MickLesk) ([#18404](https://github.com/community-scripts/ProxmoxVE/pull/18404)) + + - #### πŸ”§ Refactor + + - Technitium DNS: read the version from its GitHub releases [@MickLesk](https://github.com/MickLesk) ([#18425](https://github.com/community-scripts/ProxmoxVE/pull/18425)) + +### πŸ’Ύ Core + + - fix: spot same-filesystem bind mounts on Alpine [@rcourtman](https://github.com/rcourtman) ([core#212](https://github.com/community-scripts/core/pull/212)) +- fix: report a container that went down during setup, keep finished installs [@MickLesk](https://github.com/MickLesk) ([core#211](https://github.com/community-scripts/core/pull/211)) + +### πŸ“š Documentation + + - ci: reject DevScripts URLs in scripts [@MickLesk](https://github.com/MickLesk) ([#18498](https://github.com/community-scripts/ProxmoxVE/pull/18498)) + +## 2026-11-05 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - OpenWRT-VM: leave the NIC untagged on a bridge without a port [@MickLesk](https://github.com/MickLesk) ([#18473](https://github.com/community-scripts/ProxmoxVE/pull/18473)) + - Podman: skip Portainer where Podman has no Quadlet [@MickLesk](https://github.com/MickLesk) ([#18469](https://github.com/community-scripts/ProxmoxVE/pull/18469)) + - Planka: change npm start argument to --production [@CerberusStyle](https://github.com/CerberusStyle) ([#18478](https://github.com/community-scripts/ProxmoxVE/pull/18478)) + - OPNsense VM: wait for the FreeBSD login prompt instead of 180 seconds [@MickLesk](https://github.com/MickLesk) ([#18467](https://github.com/community-scripts/ProxmoxVE/pull/18467)) + + - #### πŸ”§ Refactor + + - truenas-VM: let a failed ISO lookup reach its own error [@MickLesk](https://github.com/MickLesk) ([#18476](https://github.com/community-scripts/ProxmoxVE/pull/18476)) + - proxmox-mail-gateway: take the repo suite from the container [@MickLesk](https://github.com/MickLesk) ([#18475](https://github.com/community-scripts/ProxmoxVE/pull/18475)) + - Immich: Bump to 3.3.6 and minor improvement [@MickLesk](https://github.com/MickLesk) ([#18474](https://github.com/community-scripts/ProxmoxVE/pull/18474)) + - Tududi: run 2.0 on PostgreSQL, keep SQLite installs on 1.15.0 [@MickLesk](https://github.com/MickLesk) ([#18465](https://github.com/community-scripts/ProxmoxVE/pull/18465)) + +### πŸ’Ύ Core + + - fix: keep the existing install until the new archive has extracted [@rcourtman](https://github.com/rcourtman) ([core#201](https://github.com/community-scripts/core/pull/201)) +- fix: keep the install when a clone or an Alpine extract fails [@rcourtman](https://github.com/rcourtman) ([core#210](https://github.com/community-scripts/core/pull/210)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - Arcane: write both env names, stop shipping the unused .env [@MickLesk](https://github.com/MickLesk) ([#18466](https://github.com/community-scripts/ProxmoxVE/pull/18466)) + +## 2026-11-04 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Teleport: Poll readyz instead of fixed 10 second sleep. [@cthach](https://github.com/cthach) ([#18461](https://github.com/community-scripts/ProxmoxVE/pull/18461)) + - n8n: install past its unsatisfiable canvas dependencies [@MickLesk](https://github.com/MickLesk) ([#18439](https://github.com/community-scripts/ProxmoxVE/pull/18439)) + - Teable: add Redis cache [@MickLesk](https://github.com/MickLesk) ([#18450](https://github.com/community-scripts/ProxmoxVE/pull/18450)) + +### πŸ’Ύ Core + + - feat: say why download_gpg_key failed [@MickLesk](https://github.com/MickLesk) ([core#208](https://github.com/community-scripts/core/pull/208)) +- feat: read the MOTD's OS version at login [@MickLesk](https://github.com/MickLesk) ([core#207](https://github.com/community-scripts/core/pull/207)) +- feat: skip screen clear when there is no terminal | pin only the scripts own app with var_appversion [@MickLesk](https://github.com/MickLesk) ([core#203](https://github.com/community-scripts/core/pull/203)) + +## 2026-11-03 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Fedora VM: let the engine install libguestfs-tools [@MickLesk](https://github.com/MickLesk) ([#18422](https://github.com/community-scripts/ProxmoxVE/pull/18422)) + - Cinephage: run the camoufox binary the package now ships [@MickLesk](https://github.com/MickLesk) ([#18426](https://github.com/community-scripts/ProxmoxVE/pull/18426)) + - AlmaLinux VM: report failures through the engine's error handler [@MickLesk](https://github.com/MickLesk) ([#18418](https://github.com/community-scripts/ProxmoxVE/pull/18418)) + - WireGuard: give the Debian container 1 GB for WGDashboard [@MickLesk](https://github.com/MickLesk) ([#18419](https://github.com/community-scripts/ProxmoxVE/pull/18419)) + - zabbix: use os specific apt packages [@MickLesk](https://github.com/MickLesk) ([#18417](https://github.com/community-scripts/ProxmoxVE/pull/18417)) + - Discourse: build libvips 8.18 for its image worker [@MickLesk](https://github.com/MickLesk) ([#18430](https://github.com/community-scripts/ProxmoxVE/pull/18430)) + - Wazuh: show the installer's own error when it fails [@MickLesk](https://github.com/MickLesk) ([#18428](https://github.com/community-scripts/ProxmoxVE/pull/18428)) + - Tracearr: move to Node.js 26 [@connorgallopo](https://github.com/connorgallopo) ([#18393](https://github.com/community-scripts/ProxmoxVE/pull/18393)) + + - #### ✨ New Features + + - Wiki.js: install 3.x [@MickLesk](https://github.com/MickLesk) ([#18382](https://github.com/community-scripts/ProxmoxVE/pull/18382)) + + - #### πŸ”§ Refactor + + - OpenWrt VM: read the stable release from downloads.openwrt.org [@MickLesk](https://github.com/MickLesk) ([#18411](https://github.com/community-scripts/ProxmoxVE/pull/18411)) + - Immich: fetch VectorChord from its new repo, skip Java, get GeoNames first [@MickLesk](https://github.com/MickLesk) ([#18397](https://github.com/community-scripts/ProxmoxVE/pull/18397)) + +### πŸ’Ύ Core + + - fix: put the reason for a VM failure into its trace [@MickLesk](https://github.com/MickLesk) ([core#200](https://github.com/community-scripts/core/pull/200)) +- fix: check the bridge before creating a container, and its state after start [@MickLesk](https://github.com/MickLesk) ([core#199](https://github.com/community-scripts/core/pull/199)) +- ref: offer to remove only the container this run created [@MickLesk](https://github.com/MickLesk) ([core#198](https://github.com/community-scripts/core/pull/198)) +- feat: report a cancelled tool dialog as an abort and name the failing command [@MickLesk](https://github.com/MickLesk) ([core#197](https://github.com/community-scripts/core/pull/197)) +- feat: check KVM and the host's threads before building a VM [@MickLesk](https://github.com/MickLesk) ([core#196](https://github.com/community-scripts/core/pull/196)) +- ref: give a host tool one log file for the whole run [@MickLesk](https://github.com/MickLesk) ([core#194](https://github.com/community-scripts/core/pull/194)) +- fix: keep a piped stdin when output moves to the log after a hangup [@MickLesk](https://github.com/MickLesk) ([core#193](https://github.com/community-scripts/core/pull/193)) +- fix: pve-LXC: say when the container went away during its setup [@MickLesk](https://github.com/MickLesk) ([core#192](https://github.com/community-scripts/core/pull/192)) +- fix: treat Esc in a VM wizard dialog as leaving the script [@MickLesk](https://github.com/MickLesk) ([core#190](https://github.com/community-scripts/core/pull/190)) +- ref: count a container stopped during a detached install as an abort [@MickLesk](https://github.com/MickLesk) ([core#187](https://github.com/community-scripts/core/pull/187)) +- feat: find the assets of a renamed GitHub repo without the API [@MickLesk](https://github.com/MickLesk) ([core#188](https://github.com/community-scripts/core/pull/188)) +- fix: restore npm when an interrupted update left it behind [@MickLesk](https://github.com/MickLesk) ([core#189](https://github.com/community-scripts/core/pull/189)) +- feat: add var_cmode to set the container console mode [@MickLesk](https://github.com/MickLesk) ([core#180](https://github.com/community-scripts/core/pull/180)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - all-templates: answering No or Cancel is not a failure [@MickLesk](https://github.com/MickLesk) ([#18423](https://github.com/community-scripts/ProxmoxVE/pull/18423)) + - homebrew: skip service accounts when picking the user, survive a failed apt update [@MickLesk](https://github.com/MickLesk) ([#18424](https://github.com/community-scripts/ProxmoxVE/pull/18424)) + - add-tailscale-lxc: start a stopped container and check its OS first [@MickLesk](https://github.com/MickLesk) ([#18421](https://github.com/community-scripts/ProxmoxVE/pull/18421)) + - netdata: survive a failed apt update, leave quietly on Cancel [@MickLesk](https://github.com/MickLesk) ([#18427](https://github.com/community-scripts/ProxmoxVE/pull/18427)) + - Privilege-Converter: offer only container-capable storages as the converter's restore target [@MickLesk](https://github.com/MickLesk) ([#18415](https://github.com/community-scripts/ProxmoxVE/pull/18415)) + - let post-pve-install go on when legacy sources are kept [@MickLesk](https://github.com/MickLesk) ([#18403](https://github.com/community-scripts/ProxmoxVE/pull/18403)) + + - #### πŸ”§ Refactor + + - update-apps: say why an backup or restore failed [@MickLesk](https://github.com/MickLesk) ([#18405](https://github.com/community-scripts/ProxmoxVE/pull/18405)) + - Keep host tools running when clear does not know the terminal [@MickLesk](https://github.com/MickLesk) ([#18412](https://github.com/community-scripts/ProxmoxVE/pull/18412)) + - Refuse to run the PBS 4 upgrade on a Proxmox VE host [@MickLesk](https://github.com/MickLesk) ([#18416](https://github.com/community-scripts/ProxmoxVE/pull/18416)) + - fstrim: keep trimming when pct fstrim fails on one container [@MickLesk](https://github.com/MickLesk) ([#18413](https://github.com/community-scripts/ProxmoxVE/pull/18413)) + - execute-lxc: do not abort on a container that is not Debian or Ubuntu [@MickLesk](https://github.com/MickLesk) ([#18414](https://github.com/community-scripts/ProxmoxVE/pull/18414)) + +### πŸ“š Documentation + + - github: flag instead of closing on first PR template miss; add script-request eligibility check [@MickLesk](https://github.com/MickLesk) ([#18384](https://github.com/community-scripts/ProxmoxVE/pull/18384)) + +## 2026-11-02 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - FileFlows: replace the program folders on update [@MickLesk](https://github.com/MickLesk) ([#18380](https://github.com/community-scripts/ProxmoxVE/pull/18380)) + - anchor: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18373](https://github.com/community-scripts/ProxmoxVE/pull/18373)) + - guardian: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18375](https://github.com/community-scripts/ProxmoxVE/pull/18375)) + - nametag: bump Node.js from 20 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18376](https://github.com/community-scripts/ProxmoxVE/pull/18376)) + +### πŸ’Ύ Core + + - github: trim theater, add signal to the engine bug report; move AI block to end of PR template [@MickLesk](https://github.com/MickLesk) ([core#186](https://github.com/community-scripts/core/pull/186)) +- fix: do not wait forever for verbose output a daemon keeps open [@MickLesk](https://github.com/MickLesk) ([core#185](https://github.com/community-scripts/core/pull/185)) + +## 2026-11-01 + +### πŸ†• New Scripts + + - Amazon Linux ([#18369](https://github.com/community-scripts/ProxmoxVE/pull/18369)) +- CachyOS VM ([#18368](https://github.com/community-scripts/ProxmoxVE/pull/18368)) +- Razzia ([#18366](https://github.com/community-scripts/ProxmoxVE/pull/18366)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - fix(zerobyte): build the bundled local agent [@nicotsx](https://github.com/nicotsx) ([#18363](https://github.com/community-scripts/ProxmoxVE/pull/18363)) + +## 2026-10-31 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Docker VM: take the imported disk from vm_import_disk [@MickLesk](https://github.com/MickLesk) ([#18341](https://github.com/community-scripts/ProxmoxVE/pull/18341)) + - Twenty: move to Node.js 26 [@MickLesk](https://github.com/MickLesk) ([#18337](https://github.com/community-scripts/ProxmoxVE/pull/18337)) + - Norish: fetch Obscura from the repo Norish pins [@MickLesk](https://github.com/MickLesk) ([#18338](https://github.com/community-scripts/ProxmoxVE/pull/18338)) + - HAOS VM: take the imported disk from vm_import_disk [@MickLesk](https://github.com/MickLesk) ([#18342](https://github.com/community-scripts/ProxmoxVE/pull/18342)) + - Aurral: build the pnpm workspace and run backend/server.ts [@MickLesk](https://github.com/MickLesk) ([#18340](https://github.com/community-scripts/ProxmoxVE/pull/18340)) + - PS5-MQTT: build the yarn workspace and run the packaged server [@MickLesk](https://github.com/MickLesk) ([#18339](https://github.com/community-scripts/ProxmoxVE/pull/18339)) + - Jellyseerr, Overseerr, Paperless-ngx, Vikunja: skip migration prompts when unattended [@florianpunz](https://github.com/florianpunz) ([#18321](https://github.com/community-scripts/ProxmoxVE/pull/18321)) + - Discourse: track the Ruby version Discourse requires [@MickLesk](https://github.com/MickLesk) ([#18329](https://github.com/community-scripts/ProxmoxVE/pull/18329)) + + - #### ✨ New Features + + - MatterJS-Server: Add time sync [@tomfrenzel](https://github.com/tomfrenzel) ([#18330](https://github.com/community-scripts/ProxmoxVE/pull/18330)) + + - #### πŸ”§ Refactor + + - Debian VM: keep a static IP without a snippets storage [@MickLesk](https://github.com/MickLesk) ([#18346](https://github.com/community-scripts/ProxmoxVE/pull/18346)) + - Ubuntu VM: check for a snippets storage before building a static-IP VM [@MickLesk](https://github.com/MickLesk) ([#18347](https://github.com/community-scripts/ProxmoxVE/pull/18347)) + +### πŸ’Ύ Core + + - feat: add setup_java_memory: size Java services from the CT's RAM on Proxmox [@MickLesk](https://github.com/MickLesk) ([core#181](https://github.com/community-scripts/core/pull/181)) +- analytics: name the Proxmox tasks when a container stops mid-install [@MickLesk](https://github.com/MickLesk) ([core#184](https://github.com/community-scripts/core/pull/184)) +- PVE: do not abort when the spinner PID file cannot be written [@MickLesk](https://github.com/MickLesk) ([core#183](https://github.com/community-scripts/core/pull/183)) + +### πŸ“‚ Github + + - Drop the legacy engine copies from misc/ [@MickLesk](https://github.com/MickLesk) ([#18294](https://github.com/community-scripts/ProxmoxVE/pull/18294)) + +## 2026-10-30 + +### πŸ†• New Scripts + + - Reconya ([#18325](https://github.com/community-scripts/ProxmoxVE/pull/18325)) +- Blinko ([#18324](https://github.com/community-scripts/ProxmoxVE/pull/18324)) +- ChartDB ([#18323](https://github.com/community-scripts/ProxmoxVE/pull/18323)) + +## 2026-10-29 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Karakeep: fix monolith release asset pattern [@MohamedBassem](https://github.com/MohamedBassem) ([#18317](https://github.com/community-scripts/ProxmoxVE/pull/18317)) + - Vikunja: fold the package's service block into the config's service section [@MickLesk](https://github.com/MickLesk) ([#18311](https://github.com/community-scripts/ProxmoxVE/pull/18311)) + - Stirling-PDF: size JVM heap from container memory, not host RAM [@aashishvanand](https://github.com/aashishvanand) ([#18292](https://github.com/community-scripts/ProxmoxVE/pull/18292)) + - fix(authentik): migrate systemd units when still on pre-2026.8 paths [@CervezaStallone](https://github.com/CervezaStallone) ([#18307](https://github.com/community-scripts/ProxmoxVE/pull/18307)) + - fix(dawarich): serve .mjs MapLibre modules as JavaScript [@ricbaral](https://github.com/ricbaral) ([#18304](https://github.com/community-scripts/ProxmoxVE/pull/18304)) + + - #### ✨ New Features + + - VictoriaLogs: enable syslog ingestion on TCP/UDP 514 [@opastorello](https://github.com/opastorello) ([#18300](https://github.com/community-scripts/ProxmoxVE/pull/18300)) + +### πŸ’Ύ Core + + - feat: Performance - load host data in the background and stop reporting failed pre-checks [@MickLesk](https://github.com/MickLesk) ([core#179](https://github.com/community-scripts/core/pull/179)) + +### πŸ“š Documentation + + - gh: let the bot set oidc_url and license [@MickLesk](https://github.com/MickLesk) ([#18313](https://github.com/community-scripts/ProxmoxVE/pull/18313)) + +## 2026-10-28 + +### πŸ†• New Scripts + + - VictoriaLogs ([#18282](https://github.com/community-scripts/ProxmoxVE/pull/18282)) +- Deemix ([#18272](https://github.com/community-scripts/ProxmoxVE/pull/18272)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - fix(vm/opnsense): increase startup wait from 90 to 180 seconds [@MTlyx](https://github.com/MTlyx) ([#18086](https://github.com/community-scripts/ProxmoxVE/pull/18086)) + - apache-tomcat: restore the update backup from its real store [@mazelado](https://github.com/mazelado) ([#18145](https://github.com/community-scripts/ProxmoxVE/pull/18145)) + - AdventureLog: clean-install on update and drop the DRF <3.15 pin [@angusmaul](https://github.com/angusmaul) ([#18281](https://github.com/community-scripts/ProxmoxVE/pull/18281)) + + - #### πŸ”§ Refactor + + - Refactor: ownCloud VM [@MickLesk](https://github.com/MickLesk) ([#18295](https://github.com/community-scripts/ProxmoxVE/pull/18295)) + +### πŸ’Ύ Core + + - Keep the console hint out of the default output [@MickLesk](https://github.com/MickLesk) ([core#176](https://github.com/community-scripts/core/pull/176)) + +### πŸ“š Documentation + + - Move a promoted script's telemetry history to ProxmoxVE [@MickLesk](https://github.com/MickLesk) ([#18271](https://github.com/community-scripts/ProxmoxVE/pull/18271)) + +### ❔ Uncategorized + + - chore(ct): sync tdarr defaults with PocketBase [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18289](https://github.com/community-scripts/ProxmoxVE/pull/18289)) + +## 2026-10-27 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Zabbix: leave out the NVIDIA agent2 plugin that breaks the all-plugins install [@MickLesk](https://github.com/MickLesk) ([#18262](https://github.com/community-scripts/ProxmoxVE/pull/18262)) + - Omada: detect latest version from product download page [@ChrisKappe](https://github.com/ChrisKappe) ([#18248](https://github.com/community-scripts/ProxmoxVE/pull/18248)) + - LanguageTool: count ngram prompt retries without tripping errexit [@MickLesk](https://github.com/MickLesk) ([#18258](https://github.com/community-scripts/ProxmoxVE/pull/18258)) + - Overseerr: point fresh installs to Seerr [@MickLesk](https://github.com/MickLesk) ([#18259](https://github.com/community-scripts/ProxmoxVE/pull/18259)) + - stalwart: pin to v0.16.27 until v1 migration is supported [@MickLesk](https://github.com/MickLesk) ([#18252](https://github.com/community-scripts/ProxmoxVE/pull/18252)) + + - #### ✨ New Features + + - TurnKey: offer only current appliances, stop on arm64 [@MickLesk](https://github.com/MickLesk) ([#18265](https://github.com/community-scripts/ProxmoxVE/pull/18265)) + + - #### πŸ”§ Refactor + + - NPMplus: let the ACME e-mail stay empty again, Let's Encrypt does not need one [@MickLesk](https://github.com/MickLesk) ([#18263](https://github.com/community-scripts/ProxmoxVE/pull/18263)) + +### πŸ—‘οΈ Deleted Scripts + + - Remove: Readarr [@MickLesk](https://github.com/MickLesk) ([#18264](https://github.com/community-scripts/ProxmoxVE/pull/18264)) + +### πŸ’Ύ Core + + - Say the same thing on both hosts while a container is created [@MickLesk](https://github.com/MickLesk) ([core#173](https://github.com/community-scripts/core/pull/173)) +- Skip the IPv6 sysctl when the host kernel has no IPv6 [@MickLesk](https://github.com/MickLesk) ([core#171](https://github.com/community-scripts/core/pull/171)) +- Stop reporting a closed console as a user abort, and shield the host's own work [@MickLesk](https://github.com/MickLesk) ([core#172](https://github.com/community-scripts/core/pull/172)) + +## 2026-10-26 + +### πŸ†• New Scripts + + - Vane ([#18168](https://github.com/community-scripts/ProxmoxVE/pull/18168)) +- HomeTube ([#18172](https://github.com/community-scripts/ProxmoxVE/pull/18172)) +- Honcho ([#18169](https://github.com/community-scripts/ProxmoxVE/pull/18169)) +- YTPTube ([#18174](https://github.com/community-scripts/ProxmoxVE/pull/18174)) +- Stump ([#18173](https://github.com/community-scripts/ProxmoxVE/pull/18173)) +- Casdoor ([#18170](https://github.com/community-scripts/ProxmoxVE/pull/18170)) +- Streamystats ([#18171](https://github.com/community-scripts/ProxmoxVE/pull/18171)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Immich: lock only this platform when mise installs the plugin tools [@MickLesk](https://github.com/MickLesk) ([#18241](https://github.com/community-scripts/ProxmoxVE/pull/18241)) + - Fix service name case for Splunkd [@CerberusStyle](https://github.com/CerberusStyle) ([#18238](https://github.com/community-scripts/ProxmoxVE/pull/18238)) + - VMs: pass the machine type, CPU, disk cache and discard settings to qm [@MickLesk](https://github.com/MickLesk) ([#18232](https://github.com/community-scripts/ProxmoxVE/pull/18232)) + - excalidash: bump Node.js from 20 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18213](https://github.com/community-scripts/ProxmoxVE/pull/18213)) + - readmeabook: bump Node.js from 20 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18217](https://github.com/community-scripts/ProxmoxVE/pull/18217)) + - homepage: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18214](https://github.com/community-scripts/ProxmoxVE/pull/18214)) + - remove old -install.sh (verdaccio) [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18218](https://github.com/community-scripts/ProxmoxVE/pull/18218)) + - meshcentral: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18215](https://github.com/community-scripts/ProxmoxVE/pull/18215)) + + - #### ✨ New Features + + - MeshCentral: update the npm package, not just the OS [@MickLesk](https://github.com/MickLesk) ([#18243](https://github.com/community-scripts/ProxmoxVE/pull/18243)) + +### πŸ’Ύ Core + + - feat: let an install survive a closed console / dont sighup installs [@MickLesk](https://github.com/MickLesk) ([core#167](https://github.com/community-scripts/core/pull/167)) +- feat: create containers from the linuxcontainers.org catalog when Proxmox has no template [@MickLesk](https://github.com/MickLesk) ([core#25](https://github.com/community-scripts/core/pull/25)) + +### πŸ“š Documentation + + - Ref: Docs / Readme [@MickLesk](https://github.com/MickLesk) ([#18233](https://github.com/community-scripts/ProxmoxVE/pull/18233)) + +## 2026-10-25 + +### πŸ†• New Scripts + + - Dreeve ([#18167](https://github.com/community-scripts/ProxmoxVE/pull/18167)) +- TaskView ([#18166](https://github.com/community-scripts/ProxmoxVE/pull/18166)) +- EmDash ([#18165](https://github.com/community-scripts/ProxmoxVE/pull/18165)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - fix(mealie): install ffmpeg for video recipe import [@clartek](https://github.com/clartek) ([#18210](https://github.com/community-scripts/ProxmoxVE/pull/18210)) + - Termix: step through 2.9.2 when updating from 2.8 or older [@MickLesk](https://github.com/MickLesk) ([#18158](https://github.com/community-scripts/ProxmoxVE/pull/18158)) + - Element Synapse: remove the registration line by its text, not line 34 [@MickLesk](https://github.com/MickLesk) ([#18201](https://github.com/community-scripts/ProxmoxVE/pull/18201)) + - Element Synapse: drop the ::1 listener so a container without IPv6 starts [@MickLesk](https://github.com/MickLesk) ([#18180](https://github.com/community-scripts/ProxmoxVE/pull/18180)) + - Heimdall: generate the app key without the production prompt [@MickLesk](https://github.com/MickLesk) ([#18156](https://github.com/community-scripts/ProxmoxVE/pull/18156)) + - Frigate: fetch the Intel graphics key with retries before building the media driver [@MickLesk](https://github.com/MickLesk) ([#18192](https://github.com/community-scripts/ProxmoxVE/pull/18192)) + - Pterodactyl Panel: default the admin's first and last name when left empty [@MickLesk](https://github.com/MickLesk) ([#18177](https://github.com/community-scripts/ProxmoxVE/pull/18177)) + - Jellyseerr: point fresh installs to Seerr instead of a missing install script [@MickLesk](https://github.com/MickLesk) ([#18183](https://github.com/community-scripts/ProxmoxVE/pull/18183)) + - Pi-hole: download the installer before running it [@MickLesk](https://github.com/MickLesk) ([#18182](https://github.com/community-scripts/ProxmoxVE/pull/18182)) + - OmniTools: give the build a git commit to read [@MickLesk](https://github.com/MickLesk) ([#18181](https://github.com/community-scripts/ProxmoxVE/pull/18181)) + - iVentoy: stop early in an unprivileged container [@MickLesk](https://github.com/MickLesk) ([#18179](https://github.com/community-scripts/ProxmoxVE/pull/18179)) + - Immich: stop early on Debian 12 instead of failing at apt [@MickLesk](https://github.com/MickLesk) ([#18178](https://github.com/community-scripts/ProxmoxVE/pull/18178)) + - paperless-ngx: fix missing index folder [@Segelzwerg](https://github.com/Segelzwerg) ([#18142](https://github.com/community-scripts/ProxmoxVE/pull/18142)) + - Anytype Server: keep the .env across updates and recreate a lost one [@MickLesk](https://github.com/MickLesk) ([#18155](https://github.com/community-scripts/ProxmoxVE/pull/18155)) + - changedetection: build Browserless from its lockfile on update [@MickLesk](https://github.com/MickLesk) ([#18157](https://github.com/community-scripts/ProxmoxVE/pull/18157)) + - Zitadel: identify the machine by hostname when it has no private IPv4 [@MickLesk](https://github.com/MickLesk) ([#18139](https://github.com/community-scripts/ProxmoxVE/pull/18139)) + - fix(bar-assistant): publish starter media catalog so new bars provision [@och29](https://github.com/och29) ([#18130](https://github.com/community-scripts/ProxmoxVE/pull/18130)) + + - #### ✨ New Features + + - Gramps-Web: run the Celery task queue with Redis [@MickLesk](https://github.com/MickLesk) ([#18141](https://github.com/community-scripts/ProxmoxVE/pull/18141)) + + - #### πŸ’₯ Breaking Changes + + - Hermes Agent: install, update and run everything as the hermes user [@MickLesk](https://github.com/MickLesk) ([#18203](https://github.com/community-scripts/ProxmoxVE/pull/18203)) + - tubearchivist: fix: prepare tubearchivist for v0.6.0 [@CrazyWolf13](https://github.com/CrazyWolf13) ([#17867](https://github.com/community-scripts/ProxmoxVE/pull/17867)) + + - #### πŸ”§ Refactor + + - TREK: build 5.0 with 4 GB RAM and without dependency install scripts [@MickLesk](https://github.com/MickLesk) ([#18194](https://github.com/community-scripts/ProxmoxVE/pull/18194)) + +### πŸ’Ύ Core + + - alpine: fix uv release url [@mfelipe](https://github.com/mfelipe) ([core#168](https://github.com/community-scripts/core/pull/168)) +- Set npm's script and git policy for root too, so --prefix keeps it [@MickLesk](https://github.com/MickLesk) ([core#170](https://github.com/community-scripts/core/pull/170)) +- Upgrade Node.js in place when an app package depends on it [@MickLesk](https://github.com/MickLesk) ([core#169](https://github.com/community-scripts/core/pull/169)) + +### 🧰 Tools + + - #### ✨ New Features + + - post-pmg-install: hide the subscription nag in the PMG 9 mobile quarantine [@MickLesk](https://github.com/MickLesk) ([#18140](https://github.com/community-scripts/ProxmoxVE/pull/18140)) + - post-pve-install: hide the mobile subscription nag in every UI language [@MickLesk](https://github.com/MickLesk) ([#18143](https://github.com/community-scripts/ProxmoxVE/pull/18143)) + +## 2026-10-24 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - patchmon: avoids systemd environment secret leaks via D-Bus/subprocesses. [@rhclayto](https://github.com/rhclayto) ([#18074](https://github.com/community-scripts/ProxmoxVE/pull/18074)) + - fix: Linkwarden - clear Yarn berry cache after install and update- #18115 [@bferd](https://github.com/bferd) ([#18116](https://github.com/community-scripts/ProxmoxVE/pull/18116)) + - Borg-UI: recreate the borg venvs with --clear [@MickLesk](https://github.com/MickLesk) ([#18118](https://github.com/community-scripts/ProxmoxVE/pull/18118)) + - SnapOtter: recreate the AI venv with --clear [@MickLesk](https://github.com/MickLesk) ([#18119](https://github.com/community-scripts/ProxmoxVE/pull/18119)) + - Update authentik version to 2026.8.5 [@thieneret](https://github.com/thieneret) ([#18125](https://github.com/community-scripts/ProxmoxVE/pull/18125)) + + - #### ✨ New Features + + - Frigate: bump to v0.18.2 [@MickLesk](https://github.com/MickLesk) ([#18120](https://github.com/community-scripts/ProxmoxVE/pull/18120)) + + - #### πŸ”§ Refactor + + - install: answer every prompt from the environment, survive a closed stdin [@MickLesk](https://github.com/MickLesk) ([#18121](https://github.com/community-scripts/ProxmoxVE/pull/18121)) + +### 🧰 Tools + + - #### 🐞 Bug Fixes + + - fix(addons): use catch_errors so the update marker is cleared [@mazelado](https://github.com/mazelado) ([#18128](https://github.com/community-scripts/ProxmoxVE/pull/18128)) + +## 2026-10-23 + +### πŸš€ Updated Scripts + + - postgresql: default the version prompt and match Alpine's packages [@MickLesk](https://github.com/MickLesk) ([#18093](https://github.com/community-scripts/ProxmoxVE/pull/18093)) +- Storyteller: build the runtime like upstream's Dockerfile [@MickLesk](https://github.com/MickLesk) ([#18083](https://github.com/community-scripts/ProxmoxVE/pull/18083)) + + - #### 🐞 Bug Fixes + + - proxcenter: skip the type check and lower the build heap [@MickLesk](https://github.com/MickLesk) ([#18090](https://github.com/community-scripts/ProxmoxVE/pull/18090)) + - hermesagent: retry the installer download, fall back to GitHub [@MickLesk](https://github.com/MickLesk) ([#18091](https://github.com/community-scripts/ProxmoxVE/pull/18091)) + - zabbix: use the arm64 repository for 7.0 [@MickLesk](https://github.com/MickLesk) ([#18089](https://github.com/community-scripts/ProxmoxVE/pull/18089)) + - kasm: survive a failed release lookup and answer the installer with flags [@MickLesk](https://github.com/MickLesk) ([#18092](https://github.com/community-scripts/ProxmoxVE/pull/18092)) + + - #### ✨ New Features + + - InvoiceShelf: run the Laravel scheduler [@MickLesk](https://github.com/MickLesk) ([#18079](https://github.com/community-scripts/ProxmoxVE/pull/18079)) + + - #### πŸ”§ Refactor + + - podman-homeassistant: require Debian 13 [@MickLesk](https://github.com/MickLesk) ([#18095](https://github.com/community-scripts/ProxmoxVE/pull/18095)) + - apache-guacamole: require Debian 13 [@MickLesk](https://github.com/MickLesk) ([#18094](https://github.com/community-scripts/ProxmoxVE/pull/18094)) + - unifi-os-server: require Debian 13 [@MickLesk](https://github.com/MickLesk) ([#18096](https://github.com/community-scripts/ProxmoxVE/pull/18096)) + - openwebui: drop the Intel oneAPI Base Toolkit [@MickLesk](https://github.com/MickLesk) ([#18098](https://github.com/community-scripts/ProxmoxVE/pull/18098)) + - ollama: drop the Intel oneAPI Base Toolkit [@MickLesk](https://github.com/MickLesk) ([#18097](https://github.com/community-scripts/ProxmoxVE/pull/18097)) + - tdarr: do not let a failed or slow updater block the service start [@MickLesk](https://github.com/MickLesk) ([#18100](https://github.com/community-scripts/ProxmoxVE/pull/18100)) + - immich: install mise from its GitHub release, retry jellyfin-ffmpeg, default the ML prompt [@MickLesk](https://github.com/MickLesk) ([#18099](https://github.com/community-scripts/ProxmoxVE/pull/18099)) + - Refactor: pimox-haos-vm [@MickLesk](https://github.com/MickLesk) ([#18077](https://github.com/community-scripts/ProxmoxVE/pull/18077)) + +### πŸ’Ύ Core + + - Telemetry: explain and categorize by the command that failed [@MickLesk](https://github.com/MickLesk) ([core#166](https://github.com/community-scripts/core/pull/166)) +- error-handler: report a handled silent failure only on its own line [@MickLesk](https://github.com/MickLesk) ([core#165](https://github.com/community-scripts/core/pull/165)) +- VM silent: return the failure instead of exiting [@MickLesk](https://github.com/MickLesk) ([core#164](https://github.com/community-scripts/core/pull/164)) +- error-handler: keep the start explanation and the final IP lookup from failing the run [@MickLesk](https://github.com/MickLesk) ([core#163](https://github.com/community-scripts/core/pull/163)) +- error output: report a failure inside a subshell once [@MickLesk](https://github.com/MickLesk) ([core#162](https://github.com/community-scripts/core/pull/162)) +- general: allow Composer as root in every script [@MickLesk](https://github.com/MickLesk) ([core#161](https://github.com/community-scripts/core/pull/161)) +- lxc-updater: skip the resource check when the container cannot read its RAM [@MickLesk](https://github.com/MickLesk) ([core#160](https://github.com/community-scripts/core/pull/160)) +- vm-core: let vm_timezone_default survive a host without /etc/timezone [@MickLesk](https://github.com/MickLesk) ([core#159](https://github.com/community-scripts/core/pull/159)) + +## 2026-10-22 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Zabbix: keep unattended updates on the installed series [@florianpunz](https://github.com/florianpunz) ([#18051](https://github.com/community-scripts/ProxmoxVE/pull/18051)) + + - #### πŸ”§ Refactor + + - Refactor: Cryptpad [@MickLesk](https://github.com/MickLesk) ([#18065](https://github.com/community-scripts/ProxmoxVE/pull/18065)) + +### πŸ’Ύ Core + + - Incus: drive a remote Incus server from the client's default remote [@MickLesk](https://github.com/MickLesk) ([core#154](https://github.com/community-scripts/core/pull/154)) +- Deploy the release again when an update is redone [@MickLesk](https://github.com/MickLesk) ([core#158](https://github.com/community-scripts/core/pull/158)) + +### ❔ Uncategorized + + - chore(ct): sync sparkyfitness defaults with PocketBase [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18061](https://github.com/community-scripts/ProxmoxVE/pull/18061)) + +## 2026-10-21 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Immich: bump release version to v3.3.5 (CVE) [@CerberusStyle](https://github.com/CerberusStyle) ([#18057](https://github.com/community-scripts/ProxmoxVE/pull/18057)) + - DroppedNeedle: pass release version to the app via COMMIT_TAG [@MickLesk](https://github.com/MickLesk) ([#18042](https://github.com/community-scripts/ProxmoxVE/pull/18042)) + +### πŸ’Ύ Core + + - Keep the version an update started from across a redo [@MickLesk](https://github.com/MickLesk) ([core#156](https://github.com/community-scripts/core/pull/156)) +- Redo an update whose run did not finish after the deploy [@MickLesk](https://github.com/MickLesk) ([core#155](https://github.com/community-scripts/core/pull/155)) + +## 2026-10-20 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Plane: give Silo its own HOME [@MickLesk](https://github.com/MickLesk) ([#18028](https://github.com/community-scripts/ProxmoxVE/pull/18028)) + - Immich: Pin version to 3.3.4 [@vhsdream](https://github.com/vhsdream) ([#18036](https://github.com/community-scripts/ProxmoxVE/pull/18036)) + - InvenTree: run apt under systemd so postinst can finish [@MickLesk](https://github.com/MickLesk) ([#18029](https://github.com/community-scripts/ProxmoxVE/pull/18029)) + - Profilarr: pass the deno pin as the version [@MickLesk](https://github.com/MickLesk) ([#18025](https://github.com/community-scripts/ProxmoxVE/pull/18025)) + - Silo: keep the version file out of ~/.silo [@MickLesk](https://github.com/MickLesk) ([#18030](https://github.com/community-scripts/ProxmoxVE/pull/18030)) + - InvenTree: move to go.packager.io [@MickLesk](https://github.com/MickLesk) ([#18015](https://github.com/community-scripts/ProxmoxVE/pull/18015)) + - Zitadel: run init and setup in the foreground [@MickLesk](https://github.com/MickLesk) ([#18016](https://github.com/community-scripts/ProxmoxVE/pull/18016)) + + - #### ✨ New Features + + - Zitadel: Support v1 and v2 Login [@MickLesk](https://github.com/MickLesk) ([#18031](https://github.com/community-scripts/ProxmoxVE/pull/18031)) + + - #### πŸ”§ Refactor + + - Refactor: OpenWebUI (remove numba pin) [@MickLesk](https://github.com/MickLesk) ([#18026](https://github.com/community-scripts/ProxmoxVE/pull/18026)) + +### πŸ’Ύ Core + + - Only treat an NVIDIA GPU as present when its device nodes are [@MickLesk](https://github.com/MickLesk) ([core#153](https://github.com/community-scripts/core/pull/153)) + +## 2026-10-19 + +### πŸ†• New Scripts + + - Calagopus ([#18012](https://github.com/community-scripts/ProxmoxVE/pull/18012)) +- Netronome ([#18011](https://github.com/community-scripts/ProxmoxVE/pull/18011)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - immich: record library revisions when the line is missing [@mazelado](https://github.com/mazelado) ([#17990](https://github.com/community-scripts/ProxmoxVE/pull/17990)) + - Update authentik 2026.8.4 [@thieneret](https://github.com/thieneret) ([#18004](https://github.com/community-scripts/ProxmoxVE/pull/18004)) + + - #### ✨ New Features + + - feat(mealie): add reverse proxy auth settings to mealie.env [@bferd](https://github.com/bferd) ([#18006](https://github.com/community-scripts/ProxmoxVE/pull/18006)) + +## 2026-10-18 + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Donetick: create selfhosted.yaml from the example [@MickLesk](https://github.com/MickLesk) ([#17992](https://github.com/community-scripts/ProxmoxVE/pull/17992)) + - Wiki.js: only back up db.sqlite on SQLite installs [@MickLesk](https://github.com/MickLesk) ([#17993](https://github.com/community-scripts/ProxmoxVE/pull/17993)) + - FlareSolverr: pass Chrome an en-US Accept-Language [@MickLesk](https://github.com/MickLesk) ([#17995](https://github.com/community-scripts/ProxmoxVE/pull/17995)) + - 2FAuth: install the locked dependencies [@MickLesk](https://github.com/MickLesk) ([#17996](https://github.com/community-scripts/ProxmoxVE/pull/17996)) + - Tracearr: drop the pnpm store after the update build [@gioxx](https://github.com/gioxx) ([#17869](https://github.com/community-scripts/ProxmoxVE/pull/17869)) + - vaultwarden: build before stopping the service [@mazelado](https://github.com/mazelado) ([#17983](https://github.com/community-scripts/ProxmoxVE/pull/17983)) + + - #### πŸ’₯ Breaking Changes + + - fix: geopulse 2.0.0 upgrade support (nginx .mjs, pg18, jwt cleanup) [@CrazyWolf13](https://github.com/CrazyWolf13) ([#17978](https://github.com/community-scripts/ProxmoxVE/pull/17978)) + +### πŸ’Ύ Core + + - Let get_current_ip reach its IPv6 fallback [@MickLesk](https://github.com/MickLesk) ([core#151](https://github.com/community-scripts/core/pull/151)) +- Drop apt autoclean before apt clean [@MickLesk](https://github.com/MickLesk) ([core#152](https://github.com/community-scripts/core/pull/152)) +- Silence apt's script warning in $STD [@MickLesk](https://github.com/MickLesk) ([core#150](https://github.com/community-scripts/core/pull/150)) + +## 2026-10-17 + +### πŸ†• New Scripts + + - ProxCenter ([#17961](https://github.com/community-scripts/ProxmoxVE/pull/17961)) +- Listenarr ([#17963](https://github.com/community-scripts/ProxmoxVE/pull/17963)) +- Youtarr ([#17962](https://github.com/community-scripts/ProxmoxVE/pull/17962)) +- Norish ([#17964](https://github.com/community-scripts/ProxmoxVE/pull/17964)) + +### πŸš€ Updated Scripts + + - #### πŸ”§ Refactor + + - Sonarr: stay on the newest v4 (pin) [@MickLesk](https://github.com/MickLesk) ([#17958](https://github.com/community-scripts/ProxmoxVE/pull/17958)) + +## 2026-10-16 + +### πŸ†• New Scripts + + - Downtify ([#17959](https://github.com/community-scripts/ProxmoxVE/pull/17959)) +- openGym ([#17960](https://github.com/community-scripts/ProxmoxVE/pull/17960)) + +### πŸš€ Updated Scripts + + - #### 🐞 Bug Fixes + + - Pelican Panel: pass the URL to p:environment:setup [@MickLesk](https://github.com/MickLesk) ([#17948](https://github.com/community-scripts/ProxmoxVE/pull/17948)) + - OneDev: use the onedev.server unit of 16.9 [@MickLesk](https://github.com/MickLesk) ([#17949](https://github.com/community-scripts/ProxmoxVE/pull/17949)) + - ReadMeABook: start the scheduler with the service [@MickLesk](https://github.com/MickLesk) ([#17950](https://github.com/community-scripts/ProxmoxVE/pull/17950)) + +### πŸ’Ύ Core + + - Clean up after installs and updates again [@MickLesk](https://github.com/MickLesk) ([core#147](https://github.com/community-scripts/core/pull/147)) +- Fix apt_conffile_report exiting 1 when uutils comm sees locale-sorted input [@BadFlo](https://github.com/BadFlo) ([core#146](https://github.com/community-scripts/core/pull/146)) \ No newline at end of file diff --git a/ct/9router.sh b/ct/9router.sh new file mode 100644 index 00000000..163cbfc7 --- /dev/null +++ b/ct/9router.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/decolua/9router + +APP="9Router" +var_tags="${var_tags:-ai;llm;gateway}" +var_cpu="${var_cpu:-1}" +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 [[ ! -d /usr/lib/node_modules/9router ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + CURRENT=$(jq -r '.version' /usr/lib/node_modules/9router/package.json) + RELEASE=$(npm view 9router version) + if [[ "$CURRENT" == "$RELEASE" ]]; then + msg_ok "No update available: 9Router (${CURRENT})" + exit + fi + + NODE_VERSION="22" setup_nodejs + + msg_info "Stopping 9Router" + systemctl stop 9router + msg_ok "Stopped 9Router" + + msg_info "Updating 9Router to ${RELEASE}" + $STD npm install -g --ignore-scripts "9router@${RELEASE}" + msg_ok "Updated 9Router to ${RELEASE}" + + msg_info "Starting 9Router" + systemctl start 9router + msg_ok "Started 9Router" + 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}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:20128/dashboard${CL}" +echo -e "${INFO}${YW}Dashboard password: INITIAL_PASSWORD in /opt/9router_data/.env (inside the container)${CL}" diff --git a/ct/adventurelog.sh b/ct/adventurelog.sh index 2d8299b9..c903ad6b 100644 --- a/ct/adventurelog.sh +++ b/ct/adventurelog.sh @@ -38,9 +38,9 @@ function update_script() { msg_ok "Services Stopped" create_backup /opt/adventurelog/backend/server/.env \ - /opt/adventurelog/backend/server/media + /opt/adventurelog/frontend/.env - fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" "tarball" + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="backend/server/media" fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" "tarball" PYTHON_VERSION="3.13" setup_uv msg_info "Ensuring PostgreSQL Extensions" @@ -57,7 +57,6 @@ function update_script() { fi $STD .venv/bin/python -m pip install --upgrade pip $STD .venv/bin/python -m pip install -r requirements.txt - $STD .venv/bin/python -m pip install 'djangorestframework<3.15' $STD .venv/bin/python -m manage collectstatic --noinput $STD .venv/bin/python -m manage migrate diff --git a/ct/aiostreams.sh b/ct/aiostreams.sh new file mode 100755 index 00000000..10bd9391 --- /dev/null +++ b/ct/aiostreams.sh @@ -0,0 +1,92 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: MrNRod +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Viren070/AIOStreams + +APP="AIOStreams" +var_tags="${var_tags:-media;streaming;stremio}" +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:-no}" # unset = ask the user; set yes/no only when verified +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/aiostreams ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "aiostreams" "Viren070/AIOStreams" "" "" "v"; then + msg_info "Stopping Service" + systemctl stop aiostreams + msg_ok "Stopped Service" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aiostreams" "Viren070/AIOStreams" "tarball" "latest" "" "" "v" + AIOSTREAMS_TAG="$CHECK_UPDATE_RELEASE" + + PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/aiostreams/package.json) + NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-11.0.8}" setup_nodejs + + msg_info "Building Application (Patience)" + cd /opt/aiostreams + export NODE_OPTIONS="--max-old-space-size=3072" + $STD pnpm install --frozen-lockfile + $STD pnpm run build + unset NODE_OPTIONS + cp -r /opt/aiostreams/packages/server/src/static /opt/aiostreams/packages/server/dist/static + msg_ok "Built Application" + + msg_info "Generating Version Metadata" + mkdir -p /opt/aiostreams/resources + AIOSTREAMS_VERSION=$(jq -r '.version' /opt/aiostreams/package.json) + AIOSTREAMS_DESC=$(jq -r '.description' /opt/aiostreams/package.json) + AIOSTREAMS_COMMIT_INFO=$(curl -fsSL "https://api.github.com/repos/Viren070/AIOStreams/commits/${AIOSTREAMS_TAG}" 2>/dev/null || true) + AIOSTREAMS_COMMIT=$(jq -r '.sha[0:8] // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") + AIOSTREAMS_COMMIT_TIME=$(jq -r '.commit.committer.date // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") + cat </opt/aiostreams/resources/metadata.json +{ + "version": "${AIOSTREAMS_VERSION}", + "description": $(jq -Rn --arg d "${AIOSTREAMS_DESC}" '$d'), + "tag": "${AIOSTREAMS_TAG}", + "channel": "stable", + "commitHash": "${AIOSTREAMS_COMMIT:-unknown}", + "buildTime": "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)", + "commitTime": "${AIOSTREAMS_COMMIT_TIME:-$(date -u +%Y-%m-%dT%H:%M:%S.000Z)}" +} +EOF + msg_ok "Generated Version Metadata" + + msg_info "Starting Service" + systemctl start aiostreams + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" +echo -e "${INFO}${YW} No authentication is enabled by default.${CL}" +echo -e "${INFO}${YW} Set AIOSTREAMS_AUTH in /opt/aiostreams_data/.env to secure the dashboard.${CL}" diff --git a/ct/airconnect.sh b/ct/airconnect.sh new file mode 100644 index 00000000..7a1a5e70 --- /dev/null +++ b/ct/airconnect.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Chris Moriarty (cwmoriarty) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/philippe44/AirConnect + +APP="AirConnect" +var_tags="${var_tags:-airplay;audio;streaming}" +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}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/airconnect ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "airconnect" "philippe44/AirConnect"; then + msg_info "Stopping AirConnect" + systemctl stop airupnp aircast + msg_ok "Stopped AirConnect" + + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="airupnp.xml aircast.xml" fetch_and_deploy_gh_release "airconnect" "philippe44/AirConnect" "prebuild" "latest" "/opt/airconnect" "AirConnect-*.zip" + + msg_info "Configuring AirConnect" + chmod +x /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) + ln -sf /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/airupnp + ln -sf /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast + find /opt/airconnect -maxdepth 1 -type f ! -name "air*linux-$(arch_resolve x86_64 aarch64)*" ! -name "airupnp" ! -name "aircast" ! -name "*.xml" -delete + msg_ok "Configured AirConnect" + + msg_info "Starting AirConnect" + systemctl start airupnp aircast + msg_ok "Started AirConnect" + 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}AirConnect is running and bridging AirPlay to discovered players:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}airupnp${CL} ${YW}(UPnP / Sonos bridge)${CL}" +echo -e "${TAB}${GATEWAY}${BGN}aircast${CL} ${YW}(Chromecast bridge)${CL}" +echo -e "${INFO}${YW}Ensure your container is on the same LAN subnet as your devices.${CL}" diff --git a/ct/amazonlinux.sh b/ct/amazonlinux.sh new file mode 100644 index 00000000..0df6eeb1 --- /dev/null +++ b/ct/amazonlinux.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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://aws.amazon.com/linux/ + +APP="Amazon Linux" +var_tags="${var_tags:-os}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-amazonlinux}" +var_version="${var_version:-2023}" +var_arm64="${var_arm64:-no}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + msg_info "Updating Amazon Linux LXC" + $STD dnf -y upgrade + msg_ok "Updated Amazon Linux LXC" + cleanup_lxc + exit +} + +start +build_container +description + +msg_ok "Completed successfully!" +msg_custom "πŸš€" "${GN}" "${APP} setup has been successfully initialized!" diff --git a/ct/anchor.sh b/ct/anchor.sh index 8fd780ef..b57f7631 100644 --- a/ct/anchor.sh +++ b/ct/anchor.sh @@ -40,6 +40,7 @@ function update_script() { create_backup /opt/anchor/.env CLEAN_INSTALL=1 fetch_and_deploy_gh_release "anchor" "ZhFahim/anchor" "tarball" + NODE_VERSION="26" NODE_MODULE="pnpm" setup_nodejs msg_info "Building Server" cd /opt/anchor/server diff --git a/ct/apache-tomcat.sh b/ct/apache-tomcat.sh index 75857f92..a518d642 100644 --- a/ct/apache-tomcat.sh +++ b/ct/apache-tomcat.sh @@ -52,40 +52,37 @@ function update_script() { exit fi - msg_info "Stopping Tomcat service" - systemctl stop tomcat - msg_ok "Stopped Tomcat service" - - create_backup $TOMCAT_DIR/conf - [[ -d $TOMCAT_DIR/webapps ]] && create_backup $TOMCAT_DIR/webapps - [[ -d $TOMCAT_DIR/lib ]] && create_backup $TOMCAT_DIR/lib - msg_info "Downloading Tomcat ${LATEST_VERSION}" TOMCAT_URL="https://dlcdn.apache.org/tomcat/tomcat-${TOMCAT_MAJOR}/v${LATEST_VERSION}/bin/apache-tomcat-${LATEST_VERSION}.tar.gz" curl -fsSL "$TOMCAT_URL" -o /tmp/tomcat-update.tar.gz msg_ok "Downloaded Tomcat ${LATEST_VERSION}" + # Keep only the jars in lib that the new release does not ship (JDBC drivers + # and the like). ecj and jakartaee-migration are Tomcat's own and change name + # with each version, so they are never carried over. + TOMCAT_FILES=$(tar -tzf /tmp/tomcat-update.tar.gz) + BACKUP_PATHS=("$TOMCAT_DIR/conf") + [[ -d $TOMCAT_DIR/webapps ]] && BACKUP_PATHS+=("$TOMCAT_DIR/webapps") + for jar in "$TOMCAT_DIR"/lib/*.jar; do + [[ -f $jar ]] || continue + case "${jar##*/}" in ecj-*.jar | jakartaee-migration-*.jar) continue ;; esac + grep -qxF "apache-tomcat-${LATEST_VERSION}/lib/${jar##*/}" <<<"$TOMCAT_FILES" || BACKUP_PATHS+=("$jar") + done + + msg_info "Stopping Tomcat service" + systemctl stop tomcat + msg_ok "Stopped Tomcat service" + + create_backup "${BACKUP_PATHS[@]}" + msg_info "Installing update" rm -rf "${TOMCAT_DIR:?}"/* tar --strip-components=1 -xzf /tmp/tomcat-update.tar.gz -C "$TOMCAT_DIR" rm -f /tmp/tomcat-update.tar.gz msg_ok "Installed update" - msg_info "Restoring configuration and applications" - cp -a "$BACKUP_DIR/conf"/* "$TOMCAT_DIR/conf/" - cp -a "$BACKUP_DIR/webapps"/* "$TOMCAT_DIR/webapps/" 2>/dev/null || true - if [[ -d "$BACKUP_DIR/lib" ]]; then - for jar in "$BACKUP_DIR/lib"/*.jar; do - [[ -f $jar ]] || continue - jar_name=$(basename "$jar") - if [[ ! -f "$TOMCAT_DIR/lib/$jar_name" ]]; then - cp "$jar" "$TOMCAT_DIR/lib/" - fi - done - fi - rm -rf "$BACKUP_DIR" + restore_backup chown -R root:root "$TOMCAT_DIR" - msg_ok "Restored configuration and applications" msg_info "Starting Tomcat service" systemctl start tomcat diff --git a/ct/aurral.sh b/ct/aurral.sh index 31732135..133fa066 100644 --- a/ct/aurral.sh +++ b/ct/aurral.sh @@ -38,19 +38,16 @@ function update_script() { msg_ok "Stopped Service" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball" - NODE_VERSION="26" setup_nodejs + NODE_VERSION="26" NODE_MODULE="pnpm" setup_nodejs + ensure_dependencies git msg_info "Updating Aurral" cd /opt/aurral export VITE_APP_VERSION="$(cat ~/.aurral)" export VITE_GITHUB_REPO="lklynet/aurral" export VITE_RELEASE_CHANNEL="stable" - # aurral's .npmrc sets engine-strict=true and pins an exact node patch (e.g. 26.8.x), - # which NodeSource can't match since it only ships the latest patch per major. - export npm_config_engine_strict=false - $STD npm ci --workspace frontend --include-workspace-root=false - $STD npm run build --workspace frontend - $STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false + $STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend + $STD pnpm --filter aurral-frontend run build mkdir -p /opt/aurral_data cat </opt/aurral/aurral.env NODE_ENV=production @@ -58,6 +55,8 @@ PORT=3001 AURRAL_DATA_DIR=/opt/aurral_data APP_VERSION=$(cat ~/.aurral) EOF + sed -i 's#backend/server.js#backend/server.ts#' /etc/systemd/system/aurral.service + systemctl daemon-reload msg_ok "Updated Aurral" msg_info "Starting Service" diff --git a/ct/authentik.sh b/ct/authentik.sh index ee731779..14835b61 100644 --- a/ct/authentik.sh +++ b/ct/authentik.sh @@ -156,7 +156,8 @@ function update_script() { rm -r /opt/authentik/blueprints $STD find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} + - if [[ $MAJOR == 2026 && $MINOR -lt 8 ]]; then + # Also catch installs whose version marker already reads 2026.8.x but whose units were never migrated + if [[ $MAJOR == 2026 && $MINOR -lt 8 ]] || grep -q "ExecStart=/opt/authentik/authentik-server" /etc/systemd/system/authentik-server.service; then msg_info "Updating Worker and Server config (from $MAJOR.$MINOR)" cat <>/etc/default/authentik-server RUST_BACKTRACE=full diff --git a/ct/blinko.sh b/ct/blinko.sh new file mode 100644 index 00000000..046c450d --- /dev/null +++ b/ct/blinko.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/blinkospace/blinko + +APP="Blinko" +var_tags="${var_tags:-notes;ai;knowledge}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-6144}" +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/blinko ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "blinko" "blinkospace/blinko"; then + msg_info "Stopping Blinko" + systemctl stop blinko + msg_ok "Stopped Blinko" + + NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "blinko" "blinkospace/blinko" "tarball" + + msg_info "Building Blinko" + cd /opt/blinko + $STD bun install + $STD bunx prisma generate + $STD bun run build:web + $STD bun run build:seed + mv dist/public server/public + cp -r server/lute.min.js server/vditor dist/ + ln -s /opt/blinko_data/storage /opt/blinko/.blinko + msg_ok "Built Blinko" + + msg_info "Starting Blinko" + systemctl start blinko + msg_ok "Started Blinko" + 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}:1111${CL}" diff --git a/ct/bugsink.sh b/ct/bugsink.sh new file mode 100644 index 00000000..382929c2 --- /dev/null +++ b/ct/bugsink.sh @@ -0,0 +1,71 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/bugsink/bugsink + +APP="Bugsink" +var_tags="${var_tags:-monitoring;error-tracking;sentry}" +var_cpu="${var_cpu:-1}" +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}" + +export var_admin_email="${var_admin_email:-}" +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/bugsink ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "bugsink" "bugsink/bugsink"; then + msg_info "Stopping Bugsink" + systemctl stop bugsink bugsink-snappea + msg_ok "Stopped Bugsink" + + PYTHON_VERSION="3.12" setup_uv + + msg_info "Updating Bugsink" + $STD uv pip install --upgrade --python /opt/bugsink/.venv/bin/python "bugsink==${CHECK_UPDATE_RELEASE}" + cd /opt/bugsink_data + $STD /opt/bugsink/.venv/bin/bugsink-manage migrate + $STD /opt/bugsink/.venv/bin/bugsink-manage migrate snappea --database=snappea + cat <~/.bugsink +${CHECK_UPDATE_RELEASE} +EOF + msg_ok "Updated Bugsink" + + msg_info "Starting Bugsink" + systemctl start bugsink bugsink-snappea + msg_ok "Started Bugsink" + 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 login: /opt/bugsink_data/.env (inside the container)${CL}" diff --git a/ct/bulwark.sh b/ct/bulwark.sh new file mode 100644 index 00000000..0f49c45f --- /dev/null +++ b/ct/bulwark.sh @@ -0,0 +1,61 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/bulwarkmail/webmail + +APP="Bulwark" +var_tags="${var_tags:-mail;webmail;jmap}" +var_cpu="${var_cpu:-1}" +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}" + +export var_jmap_url="${var_jmap_url:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/bulwark ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "bulwark" "bulwarkmail/webmail"; then + msg_info "Stopping Bulwark" + systemctl stop bulwark + msg_ok "Stopped Bulwark" + + NODE_VERSION="24" setup_nodejs + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bulwark" "bulwarkmail/webmail" "prebuild" "latest" "/opt/bulwark" "bulwark-standalone-*-linux-$(arch_resolve).tar.gz" + + msg_info "Starting Bulwark" + systemctl start bulwark + msg_ok "Started Bulwark" + 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}" +echo -e "${INFO}${YW}Setup wizard token: journalctl -u bulwark (inside the container)${CL}" diff --git a/ct/caddy.sh b/ct/caddy.sh index 057479db..e887a72b 100644 --- a/ct/caddy.sh +++ b/ct/caddy.sh @@ -56,9 +56,13 @@ update_deb_based() { setup_go fetch_and_deploy_gh_release "xcaddy" "caddyserver/xcaddy" "binary" - msg_info "Updating xCaddy" - $STD xcaddy build - msg_ok "Updated xCaddy" + if (($(awk '/^MemTotal:/ {print int($2 / 1024)}' /proc/meminfo) < 1900)); then + msg_warn "xCaddy updated; its test build was skipped because linking Caddy needs about 2 GB RAM" + else + msg_info "Updating xCaddy" + $STD xcaddy build + msg_ok "Updated xCaddy" + fi fi fi msg_ok "Updated successfully!" diff --git a/ct/changedetection.sh b/ct/changedetection.sh index 39b5bbb2..bcaeb455 100644 --- a/ct/changedetection.sh +++ b/ct/changedetection.sh @@ -32,7 +32,7 @@ function update_script() { exit fi - ensure_dependencies libjpeg-dev poppler-utils file locales + ensure_dependencies libjpeg-dev poppler-utils file locales xvfb xauth python3 msg_info "Generating Locales" for l in cs_CZ de_DE en_GB en_US es_ES fr_FR id_ID it_IT ja_JP ko_KR \ @@ -45,56 +45,83 @@ function update_script() { fi msg_ok "Generated Locales" - NODE_VERSION="24" setup_nodejs - VENV_PATH="/opt/changedetection/.venv" CHANGEDETECTION_BIN="${VENV_PATH}/bin/changedetection.io" + SERVICE_FILE="/etc/systemd/system/changedetection.service" PYTHON_VERSION="3.13" setup_uv - if [[ ! -d "$VENV_PATH" || ! -x "$CHANGEDETECTION_BIN" ]]; then - msg_info "Migrating to uv/venv" - rm -rf "$VENV_PATH" - $STD uv venv --clear "$VENV_PATH" - $STD "$VENV_PATH/bin/python" -m ensurepip --upgrade - $STD "$VENV_PATH/bin/python" -m pip install --upgrade pip - $STD "$VENV_PATH/bin/python" -m pip install changedetection.io playwright - msg_ok "Migrated to uv/venv" + msg_info "Updating ${APP}" + [[ -x "$CHANGEDETECTION_BIN" ]] || $STD uv venv --clear "$VENV_PATH" + $STD uv pip install --python "$VENV_PATH/bin/python" --upgrade changedetection.io playwright + if ! grep -q "$CHANGEDETECTION_BIN" "$SERVICE_FILE"; then + sed -i "s|^ExecStart=.*|ExecStart=$CHANGEDETECTION_BIN -d /opt/changedetection -p 5000|" "$SERVICE_FILE" + fi + msg_ok "Updated ${APP}" + + if [[ ! -f /etc/apt/sources.list.d/google-chrome.sources ]]; then + msg_info "Installing Chrome" + setup_deb822_repo \ + "google-chrome" \ + "https://dl.google.com/linux/linux_signing_key.pub" \ + "https://dl.google.com/linux/chrome/deb/" \ + "stable" + $STD apt install -y google-chrome-stable + rm -f /etc/apt/sources.list.d/google-chrome.list + msg_ok "Installed Chrome" else - msg_info "Updating ${APP}" - $STD "$VENV_PATH/bin/python" -m pip install --upgrade changedetection.io playwright - msg_ok "Updated ${APP}" + msg_info "Updating Chrome" + apt_update_safe + $STD apt install -y --only-upgrade google-chrome-stable + msg_ok "Updated Chrome" fi - SERVICE_FILE="/etc/systemd/system/changedetection.service" - if ! grep -q "${VENV_PATH}/bin/changedetection.io" "$SERVICE_FILE"; then - msg_info "Updating systemd service" - sed -i "s|^ExecStart=.*|ExecStart=${VENV_PATH}/bin/changedetection.io -d /opt/changedetection -p 5000|" "$SERVICE_FILE" - $STD systemctl daemon-reload - msg_ok "Updated systemd service" + if check_for_gh_release "sockpuppetbrowser" "dgtlmoon/sockpuppetbrowser"; then + [[ -f /etc/systemd/system/sockpuppetbrowser.service ]] && systemctl stop sockpuppetbrowser + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "sockpuppetbrowser" "dgtlmoon/sockpuppetbrowser" "tarball" + + msg_info "Setting up SockPuppetBrowser" + id -u chrome &>/dev/null || useradd -r -m -s /usr/sbin/nologin chrome + $STD uv venv --clear --python /usr/bin/python3 /opt/sockpuppetbrowser/.venv + $STD uv pip install --python /opt/sockpuppetbrowser/.venv/bin/python -r /opt/sockpuppetbrowser/requirements.txt + msg_ok "Set up SockPuppetBrowser" fi if [[ -f /etc/systemd/system/browserless.service ]]; then - msg_info "Updating Browserless (Patience)" - $STD git -C /opt/browserless/ fetch --all - $STD git -C /opt/browserless/ reset --hard origin/main - $STD npm ci --include=optional --include=dev --prefix /opt/browserless - $STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless - $STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps - # Update Chrome separately, as it has to be done with the force option. Otherwise the installation of other browsers will not be done if Chrome is already installed. - $STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome - $STD /opt/browserless/node_modules/playwright-core/cli.js install --force msedge - $STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit - $STD npm install --prefix /opt/browserless esbuild typescript ts-node @types/node --save-dev - $STD npm run build --prefix /opt/browserless - $STD npm run build:function --prefix /opt/browserless - $STD npm prune production --prefix /opt/browserless - systemctl restart browserless - msg_ok "Updated Browserless" - else - msg_error "No Browserless Installation Found!" + msg_info "Replacing Browserless with SockPuppetBrowser" + systemctl disable -q --now browserless + rm -f /etc/systemd/system/browserless.service + rm -rf /opt/browserless /root/.cache/ms-playwright + $STD apt purge -y microsoft-edge-stable + rm -f /etc/apt/sources.list.d/microsoft-edge-stable.list + cat </etc/systemd/system/sockpuppetbrowser.service +[Unit] +Description=SockPuppetBrowser +After=network.target + +[Service] +User=chrome +Group=chrome +WorkingDirectory=/opt/sockpuppetbrowser/backend +Environment=CHROME_BIN=/usr/bin/google-chrome-stable +Environment=LOG_LEVEL=INFO +ExecStart=/opt/sockpuppetbrowser/.venv/bin/python server.py --host 127.0.0.1 --port 3000 --sport 8080 +Restart=on-failure + +[Install] +WantedBy=multi-user.target +EOF + sed -i 's/browserless\.service/sockpuppetbrowser.service/g' "$SERVICE_FILE" + sed -i -e '/^WEBDRIVER_URL=/d' \ + -e 's|^PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome.*|PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true\&--window-size=1920,1080|' \ + /opt/changedetection/.env + systemctl daemon-reload + systemctl enable -q sockpuppetbrowser + msg_ok "Replaced Browserless with SockPuppetBrowser" fi + systemctl daemon-reload + systemctl restart sockpuppetbrowser systemctl restart changedetection msg_ok "Updated successfully!" exit diff --git a/ct/chartdb.sh b/ct/chartdb.sh new file mode 100644 index 00000000..ca6b69ed --- /dev/null +++ b/ct/chartdb.sh @@ -0,0 +1,65 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/chartdb/chartdb + +APP="ChartDB" +var_tags="${var_tags:-database;diagram;dev-tools}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-6144}" +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 [[ ! -d /opt/chartdb ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "chartdb" "chartdb/chartdb"; then + msg_info "Stopping ChartDB" + systemctl stop nginx + msg_ok "Stopped ChartDB" + + NODE_VERSION="24" setup_nodejs + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "chartdb" "chartdb/chartdb" "tarball" + + msg_info "Building ChartDB" + cd /opt/chartdb + $STD npm ci + NODE_OPTIONS="--max-old-space-size=4096" $STD npm run build + rm -rf /opt/chartdb/node_modules + msg_ok "Built ChartDB" + + msg_info "Starting ChartDB" + systemctl start nginx + msg_ok "Started ChartDB" + 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}" diff --git a/ct/chatto.sh b/ct/chatto.sh new file mode 100644 index 00000000..a51f788e --- /dev/null +++ b/ct/chatto.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/chattocorp/chatto + +APP="Chatto" +var_tags="${var_tags:-chat;messaging}" +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/chatto ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "chatto" "chattocorp/chatto"; then + msg_info "Stopping Service" + systemctl stop chatto + msg_ok "Stopped Service" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "chatto" "chattocorp/chatto" "prebuild" "latest" "/opt/chatto" "chatto_Linux_$(arch_resolve x86_64 arm64).tar.gz" + chmod +x /opt/chatto/chatto + + msg_info "Starting Service" + systemctl start chatto + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:4000${CL}" diff --git a/ct/chroma.sh b/ct/chroma.sh new file mode 100644 index 00000000..8ccb617c --- /dev/null +++ b/ct/chroma.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/chroma-core/chroma + +APP="Chroma" +var_tags="${var_tags:-database;vector;ai}" +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 [[ ! -d /opt/chroma ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + CURRENT=$(cat ~/.chroma) + RELEASE=$(curl -fsSL https://pypi.org/pypi/chromadb/json | jq -r '.info.version') + if [[ "$CURRENT" == "$RELEASE" ]]; then + msg_ok "No update available: Chroma (${CURRENT})" + exit + fi + + msg_info "Stopping Chroma" + systemctl stop chroma + msg_ok "Stopped Chroma" + + PYTHON_VERSION="3.12" setup_uv + + msg_info "Updating Chroma to ${RELEASE}" + $STD uv pip install --upgrade --python /opt/chroma/.venv/bin/python "chromadb==${RELEASE}" + cat <~/.chroma +${RELEASE} +EOF + msg_ok "Updated Chroma to ${RELEASE}" + + msg_info "Starting Chroma" + systemctl start chroma + msg_ok "Started Chroma" + 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}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:8000/docs${CL}" diff --git a/ct/cinephage.sh b/ct/cinephage.sh index 830c2071..163414da 100644 --- a/ct/cinephage.sh +++ b/ct/cinephage.sh @@ -37,7 +37,7 @@ function update_script() { systemctl stop cinephage msg_ok "Stopped Cinephage" - NODE_VERSION="24" setup_nodejs + NODE_VERSION="26" setup_nodejs CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cinephage" "MoldyTaint/Cinephage" "tarball" msg_info "Building Cinephage" @@ -49,7 +49,7 @@ function update_script() { msg_ok "Built Cinephage" msg_info "Updating Camoufox" - $STD /opt/cinephage/node_modules/.bin/camoufox-js fetch + $STD /opt/cinephage/node_modules/.bin/camoufox fetch msg_ok "Updated Camoufox" msg_info "Starting Cinephage" diff --git a/ct/colanode.sh b/ct/colanode.sh new file mode 100644 index 00000000..0b00101e --- /dev/null +++ b/ct/colanode.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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://colanode.com/ + +APP="Colanode" +var_tags="${var_tags:-collaboration;notes;chat}" +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}" # unset = ask the user; set yes/no only when verified +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/colanode ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "colanode" "colanode/colanode"; then + msg_info "Stopping Services" + systemctl stop colanode-server + msg_ok "Stopped Services" + + create_backup /opt/colanode/.env + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "colanode" "colanode/colanode" "tarball" + + msg_info "Rebuilding Application" + cd /opt/colanode + export NODE_OPTIONS="--max-old-space-size=4096" + $STD npm install + $STD npm run build -w @colanode/core + $STD npm run build -w @colanode/crdt + $STD npm run build -w @colanode/server + $STD npm run build -w @colanode/client + $STD npm run build -w @colanode/ui + $STD npm run build -w @colanode/web + cp -r /opt/colanode/apps/web/dist/. /var/www/colanode/ + $STD npm prune --production + unset NODE_OPTIONS + msg_ok "Rebuilt Application" + + restore_backup + + msg_info "Starting Services" + systemctl start colanode-server + msg_ok "Started Services" + 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 URLs:${CL}" +echo -e "${GATEWAY}${BGN}https://${IP}:4000${CL} (Web UI)" +echo -e "${INFO}${YW} Before using: import the self-signed cert into your browser:${CL}" +echo -e "${GATEWAY}${BGN}https://${IP}:4000/colanode.crt${CL}" +echo -e "${INFO}${YW} Server URL to use inside the app:${CL}" +echo -e "${GATEWAY}${BGN}https://${IP}:4000/config${CL}" diff --git a/ct/convex.sh b/ct/convex.sh new file mode 100644 index 00000000..ae2346d9 --- /dev/null +++ b/ct/convex.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/get-convex/convex-backend + +APP="Convex" +var_tags="${var_tags:-backend;database;realtime}" +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 [[ ! -d /opt/convex ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "convex" "get-convex/convex-backend"; then + msg_info "Stopping Convex" + systemctl stop convex + msg_ok "Stopped Convex" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "convex" "get-convex/convex-backend" "prebuild" "latest" "/opt/convex" "convex-local-backend-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "convex-dashboard" "get-convex/convex-backend" "prebuild" "$(cat ~/.convex)" "/opt/convex-dashboard" "dashboard.zip" + + msg_info "Starting Convex" + systemctl start convex + msg_ok "Started Convex" + 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 the dashboard using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:6791${CL}" +echo -e "${INFO}${YW}Deployment URL: http://${IP}:3210, admin key in /opt/convex_data/.env${CL}" diff --git a/ct/coolify.sh b/ct/coolify.sh deleted file mode 100644 index 4ec73778..00000000 --- a/ct/coolify.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env bash -_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" -_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://coolify.io/ - -APP="Coolify" -var_tags="${var_tags:-docker;paas}" -var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-4096}" -var_disk="${var_disk:-30}" -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 - -ADDON_SCRIPT="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/coolify.sh" - -function update_script() { - header_info - check_container_storage - check_container_resources - - if [[ ! -d /data/coolify ]]; then - msg_error "No ${APP} Installation Found!" - exit - fi - - msg_warn "⚠️ ${APP} has been migrated to an addon script." - echo "" - echo -e "${INFO}${YW}This is a one-time migration. After this, you can update ${APP} anytime with:${CL}" - echo -e "${TAB}${TAB}${GN}update_coolify${CL} or ${GN}bash <(curl -fsSL ${ADDON_SCRIPT})${CL}" - echo "" - read -r -p "${TAB}Migrate update function now? [y/N]: " CONFIRM - if [[ ! "${CONFIRM,,}" =~ ^(y|yes)$ ]]; then - msg_warn "Migration skipped. The old update will continue to work for now." - msg_info "Updating ${APP} (legacy)" - $STD bash <(curl -fsSL https://cdn.coollabs.io/coolify/install.sh) - msg_ok "Updated ${APP}" - exit - fi - - msg_info "Migrating update function" - TMP_UPDATE=$(mktemp) - cat <<'MIGRATION_EOF' >"$TMP_UPDATE" -bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/coolify.sh)" -MIGRATION_EOF - mv "$TMP_UPDATE" /usr/bin/update - chmod +x /usr/bin/update - - ln -sf /usr/bin/update /usr/bin/update_coolify 2>/dev/null || true - msg_ok "Migration complete" - - echo -e "${INFO}${YW}Running addon update${CL}" - type=update bash <(curl -fsSL "${ADDON_SCRIPT}") - 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}" diff --git a/ct/cross-seed.sh b/ct/cross-seed.sh index 2c30b75d..eb82d5e3 100644 --- a/ct/cross-seed.sh +++ b/ct/cross-seed.sh @@ -27,7 +27,7 @@ function update_script() { check_container_storage check_container_resources - NODE_VERSION="24" setup_nodejs + NODE_VERSION="26" setup_nodejs ensure_dependencies build-essential if command -v cross-seed &>/dev/null; then diff --git a/ct/cypht.sh b/ct/cypht.sh new file mode 100644 index 00000000..83812dda --- /dev/null +++ b/ct/cypht.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/cypht-org/cypht + +APP="Cypht" +var_tags="${var_tags:-email;webmail}" +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:-}" +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/cypht ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "cypht" "cypht-org/cypht"; then + msg_info "Stopping Cypht" + systemctl stop nginx php8.4-fpm + msg_ok "Stopped Cypht" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "cypht" "cypht-org/cypht" "prebuild" "latest" "/opt/cypht" "cypht.tar.gz" + + msg_info "Updating Cypht" + ln -sf /opt/cypht_data/.env /opt/cypht/.env + cd /opt/cypht + $STD php scripts/setup_database.php + $STD php scripts/config_gen.php + chown -R www-data:www-data /opt/cypht_data/users /opt/cypht_data/attachments + msg_ok "Updated Cypht" + + msg_info "Starting Cypht" + systemctl start php8.4-fpm nginx + msg_ok "Started Cypht" + 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}" +echo -e "${INFO}${YW}Login: /opt/cypht_data/.env (inside the container)${CL}" diff --git a/ct/databasus.sh b/ct/databasus.sh index bd880d1f..3aa23246 100644 --- a/ct/databasus.sh +++ b/ct/databasus.sh @@ -39,57 +39,29 @@ function update_script() { $STD systemctl stop databasus msg_ok "Stopped Databasus" - create_backup /opt/databasus/.env - - msg_info "Ensuring Database Clients" - # Create PostgreSQL version symlinks for compatibility - for v in 12 13 14 15 16 18; do - ln -sf /usr/lib/postgresql/17 /usr/lib/postgresql/$v - done - # Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13) - if ! command -v mongodump &>/dev/null; then - [[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12" - MONGO_ARCH=$(arch_resolve "x86_64" "arm64") - # MongoDB only publishes arm64 builds for Ubuntu - [[ "$MONGO_ARCH" == "arm64" ]] && MONGO_DIST="ubuntu2204" - fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-${MONGO_ARCH}-100.16.1.deb" - fi - ensure_dependencies mariadb-client - mkdir -p /usr/local/mariadb-{10.6,12.1}/bin /usr/local/mysql-{5.7,8.0,8.4,9}/bin /usr/local/mongodb-database-tools/bin - [[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump - [[ -f /usr/bin/mongorestore ]] && ln -sf /usr/bin/mongorestore /usr/local/mongodb-database-tools/bin/mongorestore - # Create MariaDB and MySQL client symlinks for compatibility - for dir in /usr/local/mariadb-{10.6,12.1}/bin; do - ln -sf /usr/bin/mariadb-dump "$dir/mariadb-dump" - ln -sf /usr/bin/mariadb "$dir/mariadb" - done - for dir in /usr/local/mysql-{5.7,8.0,8.4,9}/bin; do - ln -sf /usr/bin/mariadb-dump "$dir/mysqldump" - ln -sf /usr/bin/mariadb "$dir/mysql" - done - msg_ok "Ensured Database Clients" - + ensure_dependencies libedit2 libgssapi-krb5-2 libncurses6 libreadline8t64 CLEAN_INSTALL=1 fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest" "/opt/databasus" GO_VERSION="$(grep -m1 '^go ' /opt/databasus/backend/go.mod | awk '{print $2}')" setup_go msg_info "Updating Databasus" + RELEASE=$(cat ~/.databasus) export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 cd /opt/databasus/frontend - $STD corepack prepare pnpm@latest --activate $STD pnpm install --frozen-lockfile - $STD pnpm run build + $STD env VITE_APP_VERSION="${RELEASE}" pnpm run build cd /opt/databasus/backend - $STD go mod download - $STD /root/go/bin/swag init -g cmd/main.go -o swagger - $STD env CGO_ENABLED=0 GOOS=linux GOARCH=$(arch_resolve) go build -o databasus ./cmd - mv /opt/databasus/backend/databasus /opt/databasus/databasus + $STD env CGO_ENABLED=0 GOOS=linux GOARCH="$(arch_resolve)" go build -o /opt/databasus/databasus ./cmd/databasus + mkdir -p /opt/databasus/agent-binaries + for arch in amd64 arm64; do + $STD env CGO_ENABLED=0 GOOS=linux GOARCH=$arch go build -ldflags "-X main.Version=${RELEASE}" -o /opt/databasus/agent-binaries/databasus-verification-agent-linux-$arch ./cmd/verification-agent + done mkdir -p /opt/databasus/ui/build cp -r /opt/databasus/frontend/dist/* /opt/databasus/ui/build/ - cp -r /opt/databasus/backend/migrations /opt/databasus/ + sed -i '/^APP_VERSION=/d' /.env + echo "APP_VERSION=${RELEASE}" >>/.env msg_ok "Updated Databasus" - restore_backup chown -R postgres:postgres /opt/databasus if ! grep -q "EnvironmentFile=/.env" /etc/systemd/system/databasus.service; then diff --git a/ct/dawarich.sh b/ct/dawarich.sh index 5596b66b..3562aa58 100644 --- a/ct/dawarich.sh +++ b/ct/dawarich.sh @@ -34,6 +34,20 @@ function update_script() { ensure_dependencies libgeos++-dev libxml2-dev libxslt-dev libjemalloc-dev + if [[ -f /etc/nginx/sites-available/dawarich.conf ]] && ! grep -q '\.mjs\$' /etc/nginx/sites-available/dawarich.conf; then + msg_info "Fixing MapLibre delivery in Nginx" + sed -i '/location ~ \^\/(assets|packs)\/ {/i\ location ~ \\.mjs$ {\n types { }\n default_type text/javascript;\n try_files $uri @rails;\n }\n' /etc/nginx/sites-available/dawarich.conf + nginx_enable_site dawarich.conf + msg_ok "Fixed MapLibre delivery in Nginx" + fi + + if [[ -f /etc/nginx/sites-available/dawarich.conf ]] && grep -q 'try_files \$uri =404;' /etc/nginx/sites-available/dawarich.conf; then + msg_info "Fixing Dawarich asset fallback in Nginx" + sed -i 's|try_files \$uri =404;|try_files $uri @rails;|' /etc/nginx/sites-available/dawarich.conf + nginx_enable_site dawarich.conf + msg_ok "Fixed Dawarich asset fallback in Nginx" + fi + if check_for_gh_release "dawarich" "Freika/dawarich"; then msg_info "Stopping Services" systemctl stop dawarich-web dawarich-worker diff --git a/ct/deemix.sh b/ct/deemix.sh new file mode 100644 index 00000000..acc2b1cd --- /dev/null +++ b/ct/deemix.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/bambanah/deemix + +APP="Deemix" +var_tags="${var_tags:-music;downloader}" +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}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/deemix ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "deemix" "bambanah/deemix" "" "" "deemix-webui@"; then + msg_info "Stopping Deemix" + systemctl stop deemix + msg_ok "Stopped Deemix" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "deemix" "bambanah/deemix" "tarball" "latest" "/opt/deemix" "" "deemix-webui@" + NODE_VERSION="24" NODE_MODULE="pnpm@$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/deemix/package.json)" setup_nodejs + + msg_info "Building Deemix" + cd /opt/deemix + ELECTRON_SKIP_BINARY_DOWNLOAD=1 $STD pnpm install --frozen-lockfile + $STD pnpm turbo build --filter=deemix-webui... + msg_ok "Built Deemix" + + msg_info "Starting Deemix" + systemctl start deemix + msg_ok "Started Deemix" + 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}:6595${CL}" diff --git a/ct/dietpi.sh b/ct/dietpi.sh new file mode 100755 index 00000000..4d7295f4 --- /dev/null +++ b/ct/dietpi.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +# Engine comes from community-scripts/core; this repo only ships the scripts. +# Local checkout wins (COMMUNITY_SCRIPTS_CORE_DIR, else a sibling ../core), so a +# fork/branch of core can be tested without touching 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: mews-se +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://dietpi.com/ + +APP="DietPi" +var_tags="${var_tags:-os}" +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:-no}" # unset = ask the user; set yes/no only when verified +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 /boot/dietpi/.version ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating DietPi LXC" + $STD /boot/dietpi/dietpi-update 1 + msg_ok "Updated DietPi LXC" + exit +} + +start +build_container +description + +msg_info "Restarting ${APP} for DietPi's first boot" +if command -v pct &>/dev/null; then + pct reboot "$CTID" +else + incus restart "$CTID" +fi +msg_ok "Restarted ${APP}" + +msg_ok "Completed successfully!" +msg_custom "πŸš€" "${GN}" "${APP} setup has been successfully initialized!" +echo -e "${INFO}${YW} DietPi's first run setup starts at the next console login.${CL}" diff --git a/ct/discourse.sh b/ct/discourse.sh index 5ceb63dd..c3a74294 100644 --- a/ct/discourse.sh +++ b/ct/discourse.sh @@ -52,16 +52,42 @@ function update_script() { cd /opt/discourse export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH" export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 + export BUNDLE_SILENCE_ROOT_WARNING=1 set -a source /opt/discourse/.env set +a $STD git pull origin main - $STD bundle install + msg_ok "Updated Discourse" + + if check_for_gh_release "libvips" "libvips/libvips"; then + ensure_dependencies meson ninja-build pkg-config libglib2.0-dev libexpat1-dev libjpeg-dev libpng-dev libwebp-dev libtiff-dev libheif-dev libjxl-dev librsvg2-dev libcgif-dev libexif-dev liblcms2-dev liborc-0.4-dev libimagequant-dev libpango1.0-dev + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "libvips" "libvips/libvips" "prebuild" "latest" "/opt/libvips" "vips-*.tar.xz" + msg_info "Building libvips" + cd /opt/libvips + $STD meson setup build --prefix=/usr/local --libdir=lib --buildtype=release -Dmodules=disabled -Dmagick=disabled -Dexamples=false + $STD ninja -C build install + ldconfig + msg_ok "Built libvips" + fi + + msg_info "Updating Dependencies" + RUBY_TARGET=$(grep -A1 '^RUBY VERSION' /opt/discourse/Gemfile.lock | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1) + RUBY_VERSION="${RUBY_TARGET:-4.0.7}" RUBY_INSTALL_RAILS="false" setup_ruby + export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH" + hash -r + cd /opt/discourse + $STD bundle install -j"$(nproc)" $STD pnpm install + msg_ok "Updated Dependencies" + + msg_info "Running Database Migrations" $STD runuser -u postgres -- psql -d discourse -c "CREATE EXTENSION IF NOT EXISTS vector;" $STD bundle exec rails db:migrate + msg_ok "Ran Database Migrations" + + msg_info "Precompiling Assets" $STD bundle exec rails assets:precompile - msg_ok "Updated Discourse" + msg_ok "Precompiled Assets" msg_info "Starting Services" systemctl start discourse discourse-sidekiq diff --git a/ct/dotnetaspwebapi.sh b/ct/dotnetaspwebapi.sh index 6ba10c8c..36dbd2e1 100644 --- a/ct/dotnetaspwebapi.sh +++ b/ct/dotnetaspwebapi.sh @@ -5,17 +5,17 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ # Copyright (c) 2021-2026 community-scripts ORG # Author: Kristian Skov # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu +# Source: https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian APP="Dotnet ASP Web API" var_tags="${var_tags:-web}" var_cpu="${var_cpu:-1}" var_ram="${var_ram:-1024}" var_disk="${var_disk:-8}" -var_os="${var_os:-ubuntu}" -var_version="${var_version:-24.04}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" var_arm64="${var_arm64:-yes}" -var_unprivileged="${var_unprivileged:-0}" +var_unprivileged="${var_unprivileged:-1}" header_info "$APP" variables @@ -44,4 +44,4 @@ 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 IP:${CL}" -echo -e "${GATEWAY}${BGN}${IP}:80${CL}" +echo -e "${GATEWAY}${BGN}${IP}:80${CL}" \ No newline at end of file diff --git a/ct/engram.sh b/ct/engram.sh new file mode 100644 index 00000000..82c99eb0 --- /dev/null +++ b/ct/engram.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/Gentleman-Programming/engram + +APP="Engram" +var_tags="${var_tags:-ai;mcp;memory}" +var_cpu="${var_cpu:-1}" +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}" + +export var_cloud_token="${var_cloud_token:-}" +export var_admin_token="${var_admin_token:-}" +export var_allowed_projects="${var_allowed_projects:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /opt/engram/engram ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "engram" "Gentleman-Programming/engram"; then + msg_info "Stopping Engram" + systemctl stop engram + msg_ok "Stopped Engram" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "engram" "Gentleman-Programming/engram" "prebuild" "latest" "/opt/engram" "engram_*_linux_$(arch_resolve).tar.gz" + + msg_info "Starting Engram" + systemctl start engram + msg_ok "Started Engram" + 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}/dashboard/${CL}" +echo -e "${INFO}${YW}Sync and admin tokens: /opt/engram_data/.env (inside the container)${CL}" diff --git a/ct/espocrm.sh b/ct/espocrm.sh new file mode 100644 index 00000000..a98e26d4 --- /dev/null +++ b/ct/espocrm.sh @@ -0,0 +1,75 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Masked-Kunsiquat +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://www.espocrm.com/ | Github: https://github.com/espocrm/espocrm + +APP="EspoCRM" +var_tags="${var_tags:-crm;business}" +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}" + +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/espocrm ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "espo-crm" "espocrm/espocrm"; then + msg_info "Stopping Services" + systemctl stop nginx cron php8.4-fpm + msg_ok "Stopped Services" + + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="data custom client/custom" fetch_and_deploy_gh_release "espo-crm" "espocrm/espocrm" "prebuild" "latest" "/opt/espocrm" "EspoCRM-*.zip" + + msg_info "Migrating EspoCRM" + cd /opt/espocrm + $STD php bin/command clear-cache + if ! $STD php bin/command migrate; then + chown -R www-data:www-data /opt/espocrm + systemctl start php8.4-fpm + systemctl start cron nginx + msg_error "Migration failed; customizations may be incompatible. Check /opt/espocrm/data/logs, then run update again." + exit 1 + fi + chown -R www-data:www-data /opt/espocrm + msg_ok "Migrated EspoCRM" + + msg_info "Starting Services" + systemctl start php8.4-fpm + systemctl start cron nginx + msg_ok "Started Services" + 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}" diff --git a/ct/euro-office.sh b/ct/euro-office.sh new file mode 100644 index 00000000..6964dfa4 --- /dev/null +++ b/ct/euro-office.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/Euro-Office/DocumentServer + +APP="Euro-Office" +var_tags="${var_tags:-office;documents;collaboration}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-10}" +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}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /var/www/euro-office/documentserver ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "euro-office" "Euro-Office/DocumentServer"; then + msg_info "Stopping Euro-Office" + $STD documentserver-prepare4shutdown.sh + systemctl stop ds-docservice ds-converter ds-metrics ds-example + msg_ok "Stopped Euro-Office" + + fetch_and_deploy_gh_release "euro-office" "Euro-Office/DocumentServer" "binary" "latest" "" "euro-office-documentserver_*_$(arch_resolve).deb" + + msg_info "Starting Euro-Office" + systemctl start ds-metrics ds-converter ds-docservice + if systemctl is-enabled -q ds-example; then + systemctl start ds-example + fi + systemctl reload nginx + msg_ok "Started Euro-Office" + 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}" +echo -e "${INFO}${YW}JWT secret: documentserver-jwt-status.sh (inside the container)${CL}" diff --git a/ct/factorio.sh b/ct/factorio.sh new file mode 100644 index 00000000..6ef53a21 --- /dev/null +++ b/ct/factorio.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: William Lindholm (LindholmLabs) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://www.factorio.com/ + +APP="Factorio" +var_tags="${var_tags:-gaming}" +var_cpu="${var_cpu:-1}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-8}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" +var_arm64="${var_arm64:-yes}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -x /opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio ]]; then + msg_error "No Factorio Installation Found!" + exit 1 + fi + + msg_info "Stopping Factorio" + systemctl stop factorio + msg_ok "Stopped Factorio" + + create_backup /opt/factorio/config /opt/factorio/config-path.cfg \ + /opt/factorio/server-settings.json /opt/factorio/saves /opt/factorio/mods \ + /opt/factorio/player-data.json /opt/factorio/server-adminlist.json \ + /opt/factorio/server-banlist.json /opt/factorio/server-whitelist.json + + fetch_and_deploy_from_url "https://factorio.com/get-download/stable/headless/$(arch_resolve "linux64" "linux-arm64")" "/opt/factorio" + + restore_backup + + msg_info "Starting Factorio" + systemctl start factorio + msg_ok "Started Factorio" + msg_ok "Updated Factorio successfully!" + + exit +} + +start +build_container +description + +msg_ok "Completed Factorio setup successfully!\n" +echo -e "${INFO}${YW}Connect in Factorio using the following address (UDP):${CL}" +echo -e "${GATEWAY}${BGN}${IP}:34197${CL}" diff --git a/ct/faraday.sh b/ct/faraday.sh new file mode 100644 index 00000000..dcc45f10 --- /dev/null +++ b/ct/faraday.sh @@ -0,0 +1,66 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/infobyte/faraday + +APP="Faraday" +var_tags="${var_tags:-security;vulnerability}" +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}" + +export var_faraday_password="${var_faraday_password:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/faraday ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "faraday" "infobyte/faraday"; then + msg_info "Stopping Faraday" + systemctl stop faraday-beat faraday-worker faraday-server + msg_ok "Stopped Faraday" + + PYTHON_VERSION="3.11" setup_uv + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "faraday" "infobyte/faraday" "tarball" + + msg_info "Updating Faraday" + cd /opt/faraday + UV_PROJECT_ENVIRONMENT=/opt/faraday/venv $STD uv sync --frozen --no-dev --no-editable + FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage migrate + msg_ok "Updated Faraday" + + msg_info "Starting Faraday" + systemctl start faraday-server faraday-worker faraday-beat + msg_ok "Started Faraday" + 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}:5985${CL}" diff --git a/ct/fileflows.sh b/ct/fileflows.sh index a0504309..d7b6e855 100644 --- a/ct/fileflows.sh +++ b/ct/fileflows.sh @@ -103,6 +103,7 @@ function update_script() { fi msg_ok "Ensured ASP.NET Core Runtime" + rm -rf /opt/fileflows/{Server,FlowRunner,Libraries,Agent} fetch_and_deploy_from_url "https://fileflows.com/downloads/ff-latest.tar.xz" "/opt/fileflows" msg_info "Starting Service" diff --git a/ct/firefox-syncserver.sh b/ct/firefox-syncserver.sh new file mode 100644 index 00000000..aea4594d --- /dev/null +++ b/ct/firefox-syncserver.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/mozilla-services/syncstorage-rs + +APP="Firefox-Syncserver" +var_tags="${var_tags:-sync;firefox}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-3072}" +var_disk="${var_disk:-10}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +#var_arm64="${var_arm64:-yes}" # built from source, nothing x86-only, but not yet run on arm64 +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/syncserver ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "firefox-syncserver" "mozilla-services/syncstorage-rs"; then + msg_info "Stopping Firefox Syncserver" + systemctl stop firefox-syncserver + msg_ok "Stopped Firefox Syncserver" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "firefox-syncserver" "mozilla-services/syncstorage-rs" "tarball" + setup_rust + + msg_info "Building Firefox Syncserver (Patience)" + cd /opt/firefox-syncserver + $STD cargo build --release --locked --no-default-features --features=syncstorage-db/postgres --features=tokenserver-db/postgres --features=py_verifier + cp target/release/syncserver /usr/local/bin/syncserver + rm -rf target + $STD uv venv --python /usr/bin/python3 /opt/firefox-syncserver/.venv + $STD uv pip install --python /opt/firefox-syncserver/.venv/bin/python pyfxa tokenlib cryptography + msg_ok "Built Firefox Syncserver" + + msg_info "Starting Firefox Syncserver" + systemctl start firefox-syncserver + msg_ok "Started Firefox Syncserver" + 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}In Firefox, set identity.sync.tokenserver.uri in about:config to:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:8000/1.0/sync/1.5${CL}" diff --git a/ct/gitea-runner.sh b/ct/gitea-runner.sh new file mode 100644 index 00000000..75f2b339 --- /dev/null +++ b/ct/gitea-runner.sh @@ -0,0 +1,136 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: community-scripts +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://gitea.com/gitea/runner + +APP="Gitea-Runner" +var_tags="${var_tags:-ci;git}" +var_cpu="${var_cpu:-2}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" +# Needed for container-based workflow execution (Docker/Podman inside LXC) +var_nesting="${var_nesting:-1}" +var_keyctl="${var_keyctl:-1}" + +if [[ -z "${var_os:-}" ]] && command -v pveversion >/dev/null 2>&1; then + var_os=$(msg_menu "Choose the container OS" \ + "debian" "Debian 13" \ + "alpine" "Alpine 3.24 (smaller)") +fi + +var_os="${var_os:-debian}" +if [[ "${var_os:-}" == "alpine" ]]; then + var_ram="${var_ram:-1024}" + var_disk="${var_disk:-4}" + var_version="${var_version:-3.24}" +else + var_ram="${var_ram:-2048}" + var_disk="${var_disk:-8}" + var_version="${var_version:-13}" +fi + +export var_gitea_url="${var_gitea_url:-}" +export var_gitea_token="${var_gitea_token:-}" + +header_info "$APP" +variables +color +catch_errors + +update_deb_based() { + if [[ ! -f /usr/local/bin/gitea-runner ]]; then + msg_error "No ${APP} Installation Found!" + exit 1 + fi + + ensure_dependencies git + + RELEASE=$(curl -fsSL https://gitea.com/api/v1/repos/gitea/runner/releases/latest | jq -r .tag_name | sed 's/^v//') + if [[ "${RELEASE}" == "$(cat ~/.gitea-runner 2>/dev/null)" ]]; then + msg_ok "No update required. ${APP} is already at v${RELEASE}" + exit + fi + + msg_info "Stopping Service" + systemctl stop gitea-runner + msg_ok "Stopped Service" + + msg_info "Updating ${APP} to v${RELEASE}" + $STD curl -fsSL -o /usr/local/bin/gitea-runner "https://gitea.com/gitea/runner/releases/download/v${RELEASE}/gitea-runner-${RELEASE}-linux-$(arch_resolve)" + chmod +x /usr/local/bin/gitea-runner + ln -sf /usr/local/bin/gitea-runner /usr/local/bin/act_runner + echo "${RELEASE}" >~/.gitea-runner + msg_ok "Updated ${APP} to v${RELEASE}" + + msg_info "Starting Service" + systemctl start gitea-runner + msg_ok "Started Service" + msg_ok "Updated successfully!" +} + +update_alpine() { + if [[ ! -f /usr/local/bin/gitea-runner ]]; then + msg_error "No ${APP} Installation Found!" + exit 1 + fi + + msg_info "Updating Alpine Packages" + $STD apk -U upgrade + $STD apk add --no-cache git + msg_ok "Updated Alpine Packages" + + RELEASE=$(curl -fsSL https://gitea.com/api/v1/repos/gitea/runner/releases/latest | jq -r .tag_name | sed 's/^v//') + if [[ "${RELEASE}" == "$(cat ~/.gitea-runner 2>/dev/null)" ]]; then + msg_ok "No update required. ${APP} is already at v${RELEASE}" + exit + fi + + msg_info "Stopping Service" + $STD rc-service gitea-runner stop + msg_ok "Stopped Service" + + msg_info "Updating ${APP} to v${RELEASE}" + $STD curl -fsSL -o /usr/local/bin/gitea-runner "https://gitea.com/gitea/runner/releases/download/v${RELEASE}/gitea-runner-${RELEASE}-linux-$(arch_resolve)" + chmod +x /usr/local/bin/gitea-runner + ln -sf /usr/local/bin/gitea-runner /usr/local/bin/act_runner + echo "${RELEASE}" >~/.gitea-runner + msg_ok "Updated ${APP} to v${RELEASE}" + + msg_info "Starting Service" + $STD rc-service gitea-runner start + msg_ok "Started Service" + msg_ok "Updated successfully!" +} + +function update_script() { + header_info + check_container_storage + check_container_resources + run_os_update +} + +start +build_container +description + +msg_ok "Completed Successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW}To register the runner, execute the following command in the container console:${CL}" +if [[ -n "${var_gitea_url:-}" ]]; then + echo -e "${TAB}${BGN}gitea-runner -c /etc/gitea-runner/config.yaml register --instance ${var_gitea_url} --token ${CL}" +else + echo -e "${TAB}${BGN}gitea-runner -c /etc/gitea-runner/config.yaml register --instance --token ${CL}" +fi +echo -e "${INFO}${YW}After registering, start the runner daemon:${CL}" +if [[ "${var_os:-}" == "alpine" ]]; then + echo -e "${TAB}${BGN}rc-service gitea-runner start${CL}" +else + echo -e "${TAB}${BGN}systemctl start gitea-runner${CL}" +fi +echo -e "${INFO}${YW}Official registration documentation:${CL}" +echo -e "${GATEWAY}${BGN}https://docs.gitea.com/runner/registration/${CL}" diff --git a/ct/goatcounter.sh b/ct/goatcounter.sh new file mode 100644 index 00000000..3ae4f650 --- /dev/null +++ b/ct/goatcounter.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/arp242/goatcounter + +APP="GoatCounter" +var_tags="${var_tags:-analytics;privacy}" +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:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +export var_admin_email="${var_admin_email:-}" +export var_admin_pass="${var_admin_pass:-}" +export var_goatcounter_domain="${var_goatcounter_domain:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /opt/goatcounter/goatcounter ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "goatcounter" "arp242/goatcounter"; then + msg_info "Stopping GoatCounter" + systemctl stop goatcounter + msg_ok "Stopped GoatCounter" + + fetch_and_deploy_gh_release "goatcounter" "arp242/goatcounter" "singlefile" "latest" "/opt/goatcounter" "goatcounter-v*-linux-$(arch_resolve).gz" + + msg_info "Starting GoatCounter" + systemctl start goatcounter + msg_ok "Started GoatCounter" + 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}:8080${CL}" +echo -e "${INFO}${YW}Admin login: /opt/goatcounter_data/.env (inside the container)${CL}" diff --git a/ct/gotenberg.sh b/ct/gotenberg.sh index 8ca00e3f..af93fceb 100644 --- a/ct/gotenberg.sh +++ b/ct/gotenberg.sh @@ -46,15 +46,32 @@ function update_script() { export CGO_ENABLED=0 $STD go mod download $STD go build -o /usr/local/bin/gotenberg \ - -ldflags "-s -w -X 'github.com/gotenberg/gotenberg/v8/cmd.Version=$(cat ~/.gotenberg)'" \ + -ldflags "-s -w -X 'github.com/gotenberg/gotenberg/v9/cmd.Version=$(cat ~/.gotenberg)'" \ cmd/gotenberg/main.go msg_ok "Built gotenberg" - msg_info "Updating unoconverter" - UNOCONVERTER_VERSION=$(get_latest_github_release "gotenberg/unoconverter" "false") - download_file "https://raw.githubusercontent.com/gotenberg/unoconverter/${UNOCONVERTER_VERSION}/unoconv" /usr/local/bin/unoconverter - chmod +x /usr/local/bin/unoconverter - msg_ok "Updated unoconverter" + LOK_VERSION="$(awk -F= '/^ARG LOK_VERSION=/{print $2}' /opt/gotenberg/build/Dockerfile)" + fetch_and_deploy_gh_release "lok" "gotenberg/lok" "prebuild" "$LOK_VERSION" "/usr/local/bin" "lok_${LOK_VERSION#v}_linux_$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Migrating to Gotenberg 9" + CODENAME=$(get_os_info codename) + setup_deb822_repo \ + "debian-backports" \ + "file:///usr/share/keyrings/debian-archive-keyring.gpg" \ + "http://deb.debian.org/debian" \ + "${CODENAME}-backports" \ + "main" + $STD apt install -y fonts-urw-base35 + $STD apt install -y -t "${CODENAME}-backports" \ + libreoffice-writer libreoffice-calc libreoffice-impress libreoffice-draw libreoffice-math + $STD apt purge -y python3-uno python-is-python3 pdftk-java qpdf libimage-exiftool-perl + $STD apt autoremove -y + rm -rf /usr/local/bin/unoconverter /usr/local/bin/pdfcpu /opt/pdfcpu + sed -i '/^Environment=\(UNOCONVERTER\|PDFTK\|QPDF\|EXIFTOOL\|PDFCPU\)_BIN_PATH=/d' /etc/systemd/system/gotenberg.service + grep -q '^Environment=LOK_BIN_PATH=' /etc/systemd/system/gotenberg.service || + sed -i '/^Environment=LIBREOFFICE_BIN_PATH=/a Environment=LOK_BIN_PATH=/usr/local/bin/lok' /etc/systemd/system/gotenberg.service + systemctl daemon-reload + msg_ok "Migrated to Gotenberg 9" msg_info "Starting Service" systemctl start gotenberg diff --git a/ct/guardian.sh b/ct/guardian.sh index cf71d891..b5670d5f 100755 --- a/ct/guardian.sh +++ b/ct/guardian.sh @@ -54,6 +54,8 @@ function update_script() { msg_ok "Restored Database" fi + NODE_VERSION="26" setup_nodejs + msg_info "Updating Guardian" cd /opt/guardian/backend $STD npm ci diff --git a/ct/hatchet.sh b/ct/hatchet.sh new file mode 100644 index 00000000..945aa2b9 --- /dev/null +++ b/ct/hatchet.sh @@ -0,0 +1,77 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/hatchet-dev/hatchet + +APP="Hatchet" +var_tags="${var_tags:-workflow;queue;automation}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-8}" +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_email="${var_admin_email:-}" +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/hatchet ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "hatchet" "hatchet-dev/hatchet"; then + msg_info "Stopping Hatchet" + systemctl stop hatchet + msg_ok "Stopped Hatchet" + + setup_go + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hatchet" "hatchet-dev/hatchet" "tarball" + NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/hatchet/frontend/app/package.json)" setup_nodejs + + msg_info "Building Hatchet" + cd /opt/hatchet/frontend/snippets + $STD python3 generate.py + cd /opt/hatchet/frontend/app + $STD pnpm install --frozen-lockfile + $STD pnpm run build + cd /opt/hatchet + for target in lite admin migrate; do + CGO_ENABLED=0 $STD go build -ldflags="-w -s -X main.Version=v$(cat ~/.hatchet)" -o "bin/hatchet-${target}" "./cmd/hatchet-${target}" + done + rm -rf /opt/hatchet/frontend/app/node_modules ~/.local/share/pnpm/store + $STD go clean -cache -modcache + msg_ok "Built Hatchet" + + msg_info "Starting Hatchet" + systemctl start hatchet + msg_ok "Started Hatchet" + 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}:8888${CL}" +echo -e "${INFO}${YW}Admin login: /opt/hatchet_data/.env (inside the container)${CL}" diff --git a/ct/homeassistant.sh b/ct/homeassistant.sh index 47710433..47d0776b 100644 --- a/ct/homeassistant.sh +++ b/ct/homeassistant.sh @@ -45,7 +45,7 @@ function update_script() { docker pull "${CONTAINER_IMAGE}" LATEST_IMAGE="$(docker inspect --format "{{.Id}}" --type image "${CONTAINER_IMAGE}")" if [[ "${RUNNING_IMAGE}" != "${LATEST_IMAGE}" ]]; then - pip install -U runlike + pip install -U runlike --break-system-packages echo "Updating ${container} image ${CONTAINER_IMAGE}" DOCKER_COMMAND="$(runlike --use-volume-id "${container}")" docker rm --force "${container}" @@ -71,32 +71,7 @@ function update_script() { exit fi if [ "$UPD" == "4" ]; then - msg_info "Installing FileBrowser" - RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g') - $STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/v2.23.0/linux-$(arch_resolve)-filebrowser.tar.gz | tar -xzv -C /usr/local/bin - $STD filebrowser config init -a '0.0.0.0' - $STD filebrowser config set -a '0.0.0.0' - $STD filebrowser users add admin community-scripts.org --perm.admin - msg_ok "Installed FileBrowser" - - msg_info "Creating Service" - service_path="/etc/systemd/system/filebrowser.service" - echo "[Unit] -Description=Filebrowser -After=network-online.target -[Service] -User=root -WorkingDirectory=/root/ -ExecStart=/usr/local/bin/filebrowser -r / -[Install] -WantedBy=default.target" >$service_path - - $STD systemctl enable --now filebrowser - msg_ok "Created Service" - - msg_ok "Completed successfully!\n" - echo -e "FileBrowser should be reachable by going to the following URL. - ${BL}http://$LOCAL_IP:8080${CL} admin|community-scripts.org\n" + bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/filebrowser.sh)" exit fi } diff --git a/ct/immich.sh b/ct/immich.sh index b049cdb7..95941d02 100644 --- a/ct/immich.sh +++ b/ct/immich.sh @@ -39,12 +39,20 @@ function update_script() { exit fi - if ! grep -qE '(^|[[:space:]])testing([[:space:]]|$)' /etc/apt/sources.list.d/debian.sources 2>/dev/null; then + if ! grep -qsE '^[[:space:]]*Suites:.*(^|[[:space:]])testing([[:space:]]|$)' /etc/apt/sources.list.d/*.sources; then msg_info "Adding Debian Testing repo" if grep -q "trixie-updates" /etc/apt/sources.list.d/debian.sources 2>/dev/null; then sed -i 's/ trixie-updates/ trixie-updates testing/g' /etc/apt/sources.list.d/debian.sources - else + elif grep -qsE '^[[:space:]]*Suites:.*trixie' /etc/apt/sources.list.d/debian.sources; then sed -i '/^[[:space:]]*Suites:.*trixie/ s/$/ testing/' /etc/apt/sources.list.d/debian.sources + else + cat </etc/apt/sources.list.d/testing.sources +Types: deb +URIs: http://deb.debian.org/debian +Suites: testing +Components: main +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg +EOF fi cat </etc/apt/preferences.d/preferences Package: * @@ -72,11 +80,8 @@ EOF fetch_and_deploy_gh_release "mise" "jdx/mise" "singlefile" "latest" "/usr/local/bin" "mise-v*-linux-${MISE_ARCH}" fi - STAGING_DIR=/opt/staging - BASE_DIR=${STAGING_DIR}/base-images - SOURCE_DIR=${STAGING_DIR}/image-source cd /tmp - RELEASE="v3.3.5" + RELEASE="v3.4.1" if [[ -f ~/.intel_version ]]; then INTEL_SRC="https://raw.githubusercontent.com/immich-app/immich/${RELEASE}/machine-learning" curl -fsSL "${INTEL_SRC}/scripts/install-intel-runtime.sh" -o ./intel-runtime 2>/dev/null || @@ -101,21 +106,8 @@ EOF msg_ok "Updated Intel OpenVINO dependencies" fi fi - # Without the revision file the refresh was skipped and sharp failed on an old libvips (#17914). - [[ -f ~/.immich_library_revisions ]] || msg_warn "No record of the compiled image-processing libraries, rebuilding all of them" - for lib in imagemagick jpegli libheif libjxl libraw libvips; do - grep -q "^${lib}:" ~/.immich_library_revisions 2>/dev/null || echo "${lib}: unknown" >>~/.immich_library_revisions - done - [[ -d "$BASE_DIR/.git" ]] || $STD git clone -b main https://github.com/immich-app/base-images "$BASE_DIR" - libraries=("libjxl" "jpegli" "libheif" "libraw" "imagemagick" "libvips") - cd "$BASE_DIR" - msg_warn "Checking for updates to custom image-processing libraries (recompile time: 2-15min per library)" - ensure_dependencies liblcms2-dev libjpeg62-turbo-dev libspng-dev libexif-dev libopenjp2-7-dev - $STD git pull - for library in "${libraries[@]}"; do - compile_"$library" - done - msg_ok "Image-processing libraries up to date" + # Libraries the prebuilt image-processing libraries link against; pigz compresses database backups. + ensure_dependencies liblcms2-dev libjpeg62-turbo-dev libspng-dev libexif-dev libopenjp2-7-dev libaom-dev pigz # 3.3.0 reads geodata/countryInfo.txt; the update before #17823 saved it into app/ instead. if [[ -d /opt/immich/geodata && ! -s /opt/immich/geodata/countryInfo.txt ]]; then @@ -132,7 +124,19 @@ EOF if check_for_gh_release "Immich" "immich-app/immich" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then msg_warn "The update takes 5-15 minutes, do not interrupt it" - PREV_IMMICH="$(cat ~/.immich)" + fetch_prebuilt_libs + PREV_IMMICH="${CS_PREVIOUS_VERSION:-$(cat ~/.immich)}" + INSTALL_DIR="/opt/${APP}" + UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)" + SRC_DIR="${INSTALL_DIR}/source" + APP_DIR="${INSTALL_DIR}/app" + PLUGIN_DIR="${APP_DIR}/plugins/immich-plugin-core" + ML_DIR="${APP_DIR}/machine-learning" + GEO_DIR="${INSTALL_DIR}/geodata" + + setup_uv + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "${RELEASE}" "$SRC_DIR" + # An interrupted update leaves app/ empty, so there may be no immich-admin to call. if [[ "$PREV_IMMICH" > "2.5.1" && -x /opt/immich/app/bin/immich-admin ]]; then msg_info "Enabling Maintenance Mode" @@ -142,36 +146,29 @@ EOF $STD cd - msg_ok "Enabled Maintenance Mode" fi + [[ -x /opt/immich/app/bin/immich-admin ]] || export MAINT_MODE=1 msg_info "Stopping Services" systemctl stop immich-web systemctl stop immich-ml msg_ok "Stopped Services" + install_prebuilt_libs VCHORD_RELEASE="1.1.1" PG_VERSION=$(ls /etc/postgresql/ 2>/dev/null | sort -V | tail -1) PG_VERSION=${PG_VERSION:-16} [[ -f ~/.vchord_version ]] && mv ~/.vchord_version ~/.vectorchord - if check_for_gh_release "VectorChord" "tensorchord/VectorChord" "${VCHORD_RELEASE}" "updated together with Immich after testing"; then + if check_for_gh_release "VectorChord" "supervc-stack/VectorChord" "${VCHORD_RELEASE}" "updated together with Immich after testing"; then # dead tuples in smart_search/face_search make the REINDEX below fail with # "missing chunk ... for toast value" on VectorChord 1.0.0 (#15588); must vacuum # while still on the old extension version, a post-upgrade vacuum errors instead $STD sudo -u postgres psql -d immich -c "VACUUM (ANALYZE) smart_search;" $STD sudo -u postgres psql -d immich -c "VACUUM (ANALYZE) face_search;" - fetch_and_deploy_gh_release "VectorChord" "tensorchord/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-${PG_VERSION}-vchord_*_$(arch_resolve).deb" + fetch_and_deploy_gh_release "VectorChord" "supervc-stack/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-${PG_VERSION}-vchord_*_$(arch_resolve).deb" systemctl restart postgresql $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vector UPDATE;" $STD sudo -u postgres psql -d immich -c "ALTER EXTENSION vchord UPDATE;" $STD sudo -u postgres psql -d immich -c "REINDEX INDEX face_index;" $STD sudo -u postgres psql -d immich -c "REINDEX INDEX clip_index;" fi - ensure_dependencies ccache gcc-13 g++-13 - - INSTALL_DIR="/opt/${APP}" - UPLOAD_DIR="$(sed -n '/^IMMICH_MEDIA_LOCATION/s/[^=]*=//p' /opt/immich/.env)" - SRC_DIR="${INSTALL_DIR}/source" - APP_DIR="${INSTALL_DIR}/app" - PLUGIN_DIR="${APP_DIR}/plugins/immich-plugin-core" - ML_DIR="${APP_DIR}/machine-learning" - GEO_DIR="${INSTALL_DIR}/geodata" [[ -f "$ML_DIR"/ml_start.sh ]] && cp "$ML_DIR"/ml_start.sh "$INSTALL_DIR" if grep -qs "set -a" "$APP_DIR"/bin/start.sh && grep -qs "warnings" "$APP_DIR"/bin/start.sh; then @@ -194,8 +191,6 @@ EOF rm -rf "${APP_DIR:?}"/* ) - setup_uv - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "${RELEASE}" "$SRC_DIR" PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)" export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 export CI=1 @@ -233,7 +228,7 @@ EOF # plugins cd "$SRC_DIR" export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml - export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg + export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg,java,terragrunt,opentofu,restic,npm:@openapitools/openapi-generator-cli export MISE_LOCKFILE_MODE=merge MISE_LOCKFILE_PLATFORMS="linux-$(arch_resolve x64 arm64)" mise_ok=0 for i in 1 2 3; do @@ -250,7 +245,8 @@ EOF # extism-js ships as a bare gzip-compressed single binary (.gz) that # fetch_and_deploy_gh_release cannot deploy; fetch + gunzip it directly. EXTISM_ARCH="$(arch_resolve x86_64 aarch64)" - curl_download /tmp/extism-js.gz "https://github.com/extism/js-pdk/releases/download/v1.6.0/extism-js-${EXTISM_ARCH}-linux-v1.6.0.gz" + EXTISM_VERSION="$(grep -oP '"github:extism/js-pdk"\s*=\s*"\K[^"]+' "$SRC_DIR"/mise.toml)" + curl_download /tmp/extism-js.gz "https://github.com/extism/js-pdk/releases/download/${EXTISM_VERSION}/extism-js-${EXTISM_ARCH}-linux-${EXTISM_VERSION}.gz" gunzip -f /tmp/extism-js.gz install -m 0755 /tmp/extism-js /usr/local/bin/extism-js rm -f /tmp/extism-js @@ -275,6 +271,27 @@ EOF cp ./packages/plugin-core/manifest.json "$PLUGIN_DIR" msg_ok "Updated Immich server, web, cli and plugins" + RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)" + RESTIC_PROXY_REF="$(grep -oP 'futo-org/backups/restic-proxy:\K[^@]+' "$SRC_DIR"/server/Dockerfile)" + if [[ "$(cat ~/.immich_restic 2>/dev/null)" != "${RESTIC_REF} ${RESTIC_PROXY_REF}" || ! -x /usr/local/bin/restic ]]; then + FUTO_DIR=/opt/staging/futo + rm -rf "$FUTO_DIR" + $STD git clone --filter=blob:none --no-checkout https://github.com/futo-org/restic "$FUTO_DIR"/restic + $STD git -C "$FUTO_DIR"/restic checkout "$RESTIC_REF" + $STD git clone --depth 1 --filter=blob:none --sparse -b "$RESTIC_PROXY_REF" https://github.com/futo-org/backups "$FUTO_DIR"/backups + $STD git -C "$FUTO_DIR"/backups sparse-checkout set packages/restic-proxy + GO_VERSION="$(awk '/^go /{print $2}' "$FUTO_DIR"/backups/packages/restic-proxy/go.mod)" setup_go + msg_info "Building restic for FUTO Backups" + cd "$FUTO_DIR"/restic + $STD env CGO_ENABLED=0 go build -o /usr/local/bin/restic ./cmd/restic + cd "$FUTO_DIR"/backups/packages/restic-proxy + $STD env CGO_ENABLED=0 go build -o /usr/local/bin/restic-proxy . + cd "$SRC_DIR" + rm -rf "$FUTO_DIR" + echo "${RESTIC_REF} ${RESTIC_PROXY_REF}" >~/.immich_restic + msg_ok "Built restic for FUTO Backups" + fi + cd "$SRC_DIR"/machine-learning mkdir -p "$ML_DIR" # chown excluding upload dir contents (may be a mount with restricted permissions) @@ -293,7 +310,7 @@ EOF msg_ok "Pre-installed Python ${ML_PYTHON}" msg_info "Updating Intel OpenVINO machine-learning" for attempt in $(seq 1 3); do - $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra openvino --no-dev --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break + $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra openvino --no-dev --upgrade-package watchfiles --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break [[ $attempt -eq 3 ]] && { ML_FAILED=1; break; } # Parallel fetches can trip DNS rate limits (AdGuard, Pi-hole); retry one at a time. export UV_CONCURRENT_DOWNLOADS=1 UV_CONCURRENT_BUILDS=1 UV_CONCURRENT_INSTALLS=1 @@ -311,7 +328,7 @@ EOF msg_ok "Pre-installed Python ${ML_PYTHON}" msg_info "Updating machine-learning" for attempt in $(seq 1 3); do - $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra cpu --no-dev --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break + $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra cpu --no-dev --upgrade-package watchfiles --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break [[ $attempt -eq 3 ]] && { ML_FAILED=1; break; } # Parallel fetches can trip DNS rate limits (AdGuard, Pi-hole); retry one at a time. export UV_CONCURRENT_DOWNLOADS=1 UV_CONCURRENT_BUILDS=1 UV_CONCURRENT_INSTALLS=1 @@ -411,193 +428,65 @@ EOF exit } -function compile_libjxl() { - SOURCE=${SOURCE_DIR}/libjxl - LIBJXL_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libjxl.json)" - if [[ "$LIBJXL_REVISION" != "$(grep 'libjxl' ~/.immich_library_revisions | awk '{print $2}')" ]]; then - msg_info "Recompiling libjxl" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/libjxl/libjxl.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$LIBJXL_REVISION" - $STD git submodule update --init --recursive --depth 1 --recommend-shallow - mkdir build - cd build - $STD cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_TESTING=OFF \ - -DJPEGXL_ENABLE_DOXYGEN=OFF \ - -DJPEGXL_ENABLE_MANPAGES=OFF \ - -DJPEGXL_ENABLE_BENCHMARK=OFF \ - -DJPEGXL_ENABLE_EXAMPLES=OFF \ - -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \ - -DJPEGXL_FORCE_SYSTEM_HWY=ON \ - -DJPEGXL_ENABLE_HWY_AVX3=ON \ - -DJPEGXL_ENABLE_HWY_AVX3_ZEN4=ON \ - -DJPEGXL_ENABLE_HWY_SVE=OFF \ - -DJPEGXL_ENABLE_HWY_SVE2=OFF \ - -DJPEGXL_ENABLE_HWY_SVE2_128=ON \ - -DJPEGXL_ENABLE_PLUGINS=ON \ - .. - $STD cmake --build . -- -j"$(nproc)" - $STD cmake --install . - ldconfig /usr/local/lib - $STD make clean - cd "$STAGING_DIR" - rm -rf "$SOURCE"/{build,third_party} - sed -i "s/libjxl: .*$/libjxl: $LIBJXL_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled libjxl" +# Immich ships the custom photo-processing libraries (libjxl, jpegli, libheif, +# libraw, ImageMagick, libvips) prebuilt in its own OCI base image; the release's +# Dockerfile pins it. fetch_prebuilt_libs downloads and unpacks it while Immich +# still runs, so a failure leaves the install as it was. install_prebuilt_libs +# copies it into /usr/local once the services are stopped. +function fetch_prebuilt_libs() { + PREBUILT_BUNDLE="" + BASE_REF="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/${RELEASE}/server/Dockerfile" | awk '/^FROM ghcr.io\/immich-app\/base-server-dev/ {print $2; exit}')" || true + if [[ -z "$BASE_REF" ]]; then + msg_error "Could not read the base image from Immich ${RELEASE}'s Dockerfile. Immich was not updated." + exit 115 fi -} - -function compile_jpegli() { - SOURCE=${SOURCE_DIR}/jpegli - JPEGLI_LIBJPEG_LIBRARY_SOVERSION="62" - JPEGLI_LIBJPEG_LIBRARY_VERSION="62.3.0" - JPEGLI_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/jpegli.json)" - if [[ "$JPEGLI_REVISION" != "$(grep 'jpegli' ~/.immich_library_revisions | awk '{print $2}')" ]]; then - msg_info "Recompiling jpegli" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/google/jpegli.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$JPEGLI_REVISION" - $STD git submodule update --init --depth 1 --recommend-shallow third_party/libjpeg-turbo - $STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-empty-dht-marker.patch - $STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-icc-warning.patch - mkdir build - cd build - $STD cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_TESTING=OFF \ - -DJPEGLI_ENABLE_DOXYGEN=OFF \ - -DJPEGLI_ENABLE_MANPAGES=OFF \ - -DJPEGLI_ENABLE_BENCHMARK=OFF \ - -DJPEGLI_ENABLE_TOOLS=OFF \ - -DJPEGLI_ENABLE_DEVTOOLS=OFF \ - -DJPEGLI_ENABLE_FUZZERS=OFF \ - -DJPEGLI_ENABLE_JNI=OFF \ - -DJPEGLI_ENABLE_OPENEXR=OFF \ - -DJPEGLI_ENABLE_SJPEG=OFF \ - -DJPEGLI_ENABLE_SKCMS=OFF \ - -DJPEGLI_FORCE_SYSTEM_HWY=ON \ - -DJPEGLI_FORCE_SYSTEM_LCMS2=ON \ - -DJPEGLI_ENABLE_JPEGLI_LIBJPEG=ON \ - -DJPEGLI_INSTALL_JPEGLI_LIBJPEG=ON \ - -DJPEGLI_ENABLE_HWY_AVX3=ON \ - -DJPEGLI_ENABLE_HWY_AVX3_ZEN4=ON \ - -DJPEGLI_ENABLE_HWY_SVE=OFF \ - -DJPEGLI_ENABLE_HWY_SVE2=OFF \ - -DJPEGLI_ENABLE_HWY_SVE2_128=ON \ - -DJPEGLI_LIBJPEG_LIBRARY_SOVERSION="$JPEGLI_LIBJPEG_LIBRARY_SOVERSION" \ - -DJPEGLI_LIBJPEG_LIBRARY_VERSION="$JPEGLI_LIBJPEG_LIBRARY_VERSION" \ - -DLIBJPEG_TURBO_VERSION_NUMBER=2001005 \ - .. - $STD cmake --build . -- -j"$(nproc)" - $STD cmake --install . - ldconfig /usr/local/lib - $STD make clean - cd "$STAGING_DIR" - rm -rf "$SOURCE"/{build,third_party} - sed -i "s/jpegli: .*$/jpegli: $JPEGLI_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled jpegli" - fi -} - -function compile_libheif() { - SOURCE=${SOURCE_DIR}/libheif - ensure_dependencies libaom-dev - LIBHEIF_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)" - if [[ "${update:-}" ]] || [[ "$LIBHEIF_REVISION" != "$(grep 'libheif' ~/.immich_library_revisions | awk '{print $2}')" ]]; then - msg_info "Recompiling libheif" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/strukturag/libheif.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$LIBHEIF_REVISION" - mkdir build - cd build - $STD cmake --preset=release-noplugins \ - -DWITH_DAV1D=ON \ - -DENABLE_PARALLEL_TILE_DECODING=ON \ - -DWITH_LIBSHARPYUV=ON \ - -DWITH_LIBDE265=ON \ - -DWITH_AOM_DECODER=OFF \ - -DWITH_AOM_ENCODER=ON \ - -DWITH_X265=OFF \ - -DWITH_EXAMPLES=OFF \ - .. - $STD make install -j"$(nproc)" - ldconfig /usr/local/lib - $STD make clean - cd "$STAGING_DIR" - rm -rf "$SOURCE"/build - sed -i "s/libheif: .*$/libheif: $LIBHEIF_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled libheif" + [[ "$(cat ~/.immich_base_image 2>/dev/null)" == "$BASE_REF" ]] && return 0 + msg_info "Fetching prebuilt image-processing libraries" + # skopeo refuses a reference with both a tag and a digest; the digest is the pin. + local image="$BASE_REF" + [[ "$BASE_REF" == *@sha256:* ]] && image="ghcr.io/immich-app/base-server-dev@${BASE_REF#*@}" + if ! { command -v skopeo && command -v umoci; } >/dev/null 2>&1 && + ! $STD apt install -y --no-install-recommends skopeo umoci; then + msg_error "Could not install skopeo and umoci, which Immich needs for its image-processing libraries. Immich was not updated." + exit 105 fi -} - -function compile_libraw() { - SOURCE=${SOURCE_DIR}/libraw - LIBRAW_REVISION="e419de08001de28ae6988ecb22df47e52b9c5eaa" - # : "${LIBRAW_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/libraw.json)}" - if [[ "$LIBRAW_REVISION" != "$(grep 'libraw' ~/.immich_library_revisions | awk '{print $2}')" ]]; then - msg_info "Recompiling libraw" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/LibRaw/LibRaw.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$LIBRAW_REVISION" - $STD autoreconf --install - $STD ./configure --disable-examples - $STD make -j"$(nproc)" - $STD make install - ldconfig /usr/local/lib - $STD make clean - cd "$STAGING_DIR" - sed -i "s/libraw: .*$/libraw: $LIBRAW_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled libraw" + local oci_dir + oci_dir="$(mktemp -d)" + PREBUILT_BUNDLE="$(mktemp -d)" + if ! $STD skopeo copy --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${image}" "oci:${oci_dir}:img"; then + rm -rf "$oci_dir" "$PREBUILT_BUNDLE" + msg_error "Could not download Immich's base image (${image}). Immich was not updated." + exit 115 fi -} - -function compile_imagemagick() { - SOURCE=$SOURCE_DIR/imagemagick - : "${IMAGEMAGICK_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/imagemagick.json)}" - if [[ "$IMAGEMAGICK_REVISION" != "$(grep 'imagemagick' ~/.immich_library_revisions | awk '{print $2}')" ]] || - ! grep -q 'DMAGICK_LIBRAW' /usr/local/lib/ImageMagick-7*/config-Q16HDRI/configure.xml; then - msg_info "Recompiling ImageMagick" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/ImageMagick/ImageMagick.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$IMAGEMAGICK_REVISION" - $STD ./configure --with-modules CPPFLAGS="-DMAGICK_LIBRAW_VERSION_TAIL=202502" - $STD make -j"$(nproc)" - $STD make install - ldconfig /usr/local/lib - $STD make clean - cd "$STAGING_DIR" - sed -i "s/imagemagick: .*$/imagemagick: $IMAGEMAGICK_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled ImageMagick" + if ! $STD umoci unpack --image "${oci_dir}:img" "$PREBUILT_BUNDLE"; then + rm -rf "$oci_dir" "$PREBUILT_BUNDLE" + msg_error "Could not unpack Immich's base image. Immich needs Proxmox VE 9.1 or newer; it was not updated." + exit 105 fi + rm -rf "$oci_dir" + msg_ok "Fetched prebuilt image-processing libraries" } -function compile_libvips() { - SOURCE=$SOURCE_DIR/libvips - LIBVIPS_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libvips.json)" - if [[ "$LIBVIPS_REVISION" != "$(grep 'libvips' ~/.immich_library_revisions | awk '{print $2}')" ]] || - [[ "$(vips -l foreign 2>/dev/null)" != *jp2kload* ]]; then - msg_info "Recompiling libvips" - [[ -d "$SOURCE" ]] && rm -rf "$SOURCE" - $STD git clone https://github.com/libvips/libvips.git "$SOURCE" - cd "$SOURCE" - $STD git reset --hard "$LIBVIPS_REVISION" - $STD git apply "$BASE_DIR"/server/sources/libvips-patches/0001-put-other-loaders-ahead-of-dcrawload.patch - $STD meson setup build --buildtype=release --libdir=lib -Dintrospection=disabled -Dtiff=disabled - cd build - $STD ninja install - ldconfig /usr/local/lib - cd "$STAGING_DIR" - rm -rf "$SOURCE"/build - sed -i "s/libvips: .*$/libvips: $LIBVIPS_REVISION/" ~/.immich_library_revisions - msg_ok "Recompiled libvips" +function install_prebuilt_libs() { + [[ -n "${PREBUILT_BUNDLE:-}" ]] || return 0 + msg_info "Installing prebuilt image-processing libraries" + # The libraries, headers and ImageMagick data, without the node runtime, global + # node modules and ffmpeg of the node base image: this script provides those. + tar -C "${PREBUILT_BUNDLE}/rootfs/usr/local" \ + --exclude=./bin/node --exclude=./bin/npm --exclude=./bin/npx --exclude=./bin/corepack \ + --exclude=./bin/ffmpeg --exclude=./bin/ffprobe \ + --exclude=./lib/node_modules --exclude=./include/node \ + -cf - . | tar -C /usr/local -xf - + rm -rf "$PREBUILT_BUNDLE" + ldconfig /usr/local/lib + if ! vips --version >/dev/null 2>&1 || ! pkg-config --exists vips; then + msg_error "The prebuilt libvips from ${BASE_REF} does not work in this container." + exit 1 fi + echo "$BASE_REF" >~/.immich_base_image + # Leftovers of the libraries this script used to compile. + rm -rf /opt/staging/base-images /opt/staging/image-source ~/.immich_library_revisions + msg_ok "Installed prebuilt image-processing libraries" } start diff --git a/ct/immichframe.sh b/ct/immichframe.sh index c325c226..c84494db 100644 --- a/ct/immichframe.sh +++ b/ct/immichframe.sh @@ -32,12 +32,12 @@ function update_script() { exit fi - if ! dotnet --list-sdks 2>/dev/null | grep -q '^8\.'; then - msg_info "Installing .NET SDK 8.0" + if ! dotnet --list-sdks 2>/dev/null | grep -q '^10\.'; then + msg_info "Installing .NET SDK 10.0" if [[ "$(arch_resolve)" == "arm64" ]]; then curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh - $STD bash /tmp/dotnet-install.sh --channel 8.0 --install-dir /usr/lib/dotnet8 - ln -sf /usr/lib/dotnet8/dotnet /usr/bin/dotnet + $STD bash /tmp/dotnet-install.sh --channel 10.0 --install-dir /usr/lib/dotnet10 + ln -sf /usr/lib/dotnet10/dotnet /usr/bin/dotnet rm -f /tmp/dotnet-install.sh else setup_deb822_repo \ @@ -46,9 +46,9 @@ function update_script() { "https://packages.microsoft.com/debian/13/prod/" \ "trixie" \ "main" - $STD apt install -y dotnet-sdk-8.0 + $STD apt install -y dotnet-sdk-10.0 fi - msg_ok "Installed .NET SDK 8.0" + msg_ok "Installed .NET SDK 10.0" fi if check_for_gh_release "immichframe" "immichFrame/ImmichFrame"; then diff --git a/ct/inngest.sh b/ct/inngest.sh new file mode 100644 index 00000000..89821082 --- /dev/null +++ b/ct/inngest.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/inngest/inngest + +APP="Inngest" +var_tags="${var_tags:-automation;queue;workflow}" +var_cpu="${var_cpu:-1}" +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 [[ ! -d /opt/inngest ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "inngest" "inngest/inngest"; then + msg_info "Stopping Inngest" + systemctl stop inngest + msg_ok "Stopped Inngest" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "inngest" "inngest/inngest" "prebuild" "latest" "/opt/inngest" "inngest_*_linux_$(arch_resolve).tar.gz" + + msg_info "Starting Inngest" + systemctl start inngest + msg_ok "Started Inngest" + 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}:8288${CL}" +echo -e "${INFO}${YW}Event and signing keys: /opt/inngest_data/.env (inside the container)${CL}" diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index 70199b02..61864393 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -40,6 +40,10 @@ function update_script() { echo "Seerr is the new unified Jellyseerr and Overseerr." echo "More info: https://docs.seerr.dev/blog/seerr-release" echo + if [[ "${PHS_SILENT:-0}" == "1" ]]; then + msg_warn "Seerr migration detected - skipping update, requires an interactive run" + exit 75 + fi read -rp "Do you want to migrate to Seerr now? (y/N): " MIGRATE echo if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then diff --git a/ct/kan.sh b/ct/kan.sh index 1d088db3..42cae900 100644 --- a/ct/kan.sh +++ b/ct/kan.sh @@ -33,14 +33,14 @@ function update_script() { fi if check_for_gh_tag "kan" "kanbn/kan"; then + NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs + msg_info "Stopping Service" systemctl stop kan msg_ok "Stopped Service" create_backup /opt/kan/.env - CLEAN_INSTALL=1 fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest" - restore_backup msg_info "Building Application" diff --git a/ct/langflow.sh b/ct/langflow.sh new file mode 100644 index 00000000..99399717 --- /dev/null +++ b/ct/langflow.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/langflow-ai/langflow + +APP="Langflow" +var_tags="${var_tags:-ai;llm;agents}" +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:-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/langflow ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "langflow" "langflow-ai/langflow"; then + msg_info "Stopping Langflow" + systemctl stop langflow + msg_ok "Stopped Langflow" + + PYTHON_VERSION="3.14" USE_UVX="YES" setup_uv + + msg_info "Updating Langflow" + $STD uv venv --clear --python 3.14 /opt/langflow/.venv + $STD uv pip install --python /opt/langflow/.venv/bin/python "langflow==${CHECK_UPDATE_RELEASE#v}" + cat <~/.langflow +${CHECK_UPDATE_RELEASE#v} +EOF + msg_ok "Updated Langflow" + + msg_info "Starting Langflow" + systemctl start langflow + msg_ok "Started Langflow" + 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}:7860${CL}" +echo -e "${INFO}${YW}Login: LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD in /opt/langflow_data/.env (inside the container)${CL}" diff --git a/ct/libredbstudio.sh b/ct/libredbstudio.sh new file mode 100644 index 00000000..cb7475b9 --- /dev/null +++ b/ct/libredbstudio.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Yusuf Gundogdu (yusuf-gundogdu) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://libredb.org + +APP="LibreDB Studio" +var_tags="${var_tags:-database;sql}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-6}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /usr/bin/libredb-studio ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "libredb-studio" "libredb/libredb-studio"; then + msg_info "Stopping Service" + systemctl stop libredb-studio + msg_ok "Stopped Service" + + create_backup /etc/libredb-studio/env + + DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "libredb-studio" "libredb/libredb-studio" "binary" "latest" "" "libredb-studio_*_$(arch_resolve).deb" + + restore_backup + + msg_info "Starting Service" + systemctl start libredb-studio + 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}:3000${CL}" +echo -e "${INFO}${YW}Admin credentials: /etc/libredb-studio/env inside the container${CL}" diff --git a/ct/librenms.sh b/ct/librenms.sh index 208286b2..60141d91 100644 --- a/ct/librenms.sh +++ b/ct/librenms.sh @@ -11,7 +11,7 @@ APP="LibreNMS" var_tags="${var_tags:-monitoring}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" -var_disk="${var_disk:-4}" +var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_arm64="${var_arm64:-yes}" diff --git a/ct/marimo.sh b/ct/marimo.sh new file mode 100644 index 00000000..f205146d --- /dev/null +++ b/ct/marimo.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/marimo-team/marimo + +APP="marimo" +var_tags="${var_tags:-notebook;python;data}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-6}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +export var_token_password="${var_token_password:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/marimo ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "marimo" "marimo-team/marimo"; then + msg_info "Stopping marimo" + systemctl stop marimo + msg_ok "Stopped marimo" + + PYTHON_VERSION="3.13" setup_uv + + msg_info "Updating marimo" + $STD uv pip install --upgrade --python /opt/marimo/.venv/bin/python "marimo[recommended]==${CHECK_UPDATE_RELEASE}" pandas + cat <~/.marimo +${CHECK_UPDATE_RELEASE} +EOF + msg_ok "Updated marimo" + + msg_info "Starting marimo" + systemctl start marimo + msg_ok "Started marimo" + 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}:2718${CL}" +echo -e "${INFO}${YW}Password: MARIMO_TOKEN_PASSWORD in /opt/marimo_data/.env (inside the container)${CL}" diff --git a/ct/martin.sh b/ct/martin.sh new file mode 100644 index 00000000..e67da965 --- /dev/null +++ b/ct/martin.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/maplibre/martin + +APP="Martin" +var_tags="${var_tags:-maps;gis;tiles}" +var_cpu="${var_cpu:-1}" +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/martin/martin ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "martin" "maplibre/martin"; then + msg_info "Stopping Martin" + systemctl stop martin + msg_ok "Stopped Martin" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "martin" "maplibre/martin" "prebuild" "latest" "/opt/martin" "martin-$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl.tar.gz" + + msg_info "Starting Martin" + systemctl start martin + msg_ok "Started Martin" + 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}" diff --git a/ct/matterjs-server.sh b/ct/matterjs-server.sh index b299bfe3..944255aa 100644 --- a/ct/matterjs-server.sh +++ b/ct/matterjs-server.sh @@ -34,6 +34,15 @@ function update_script() { NODE_VERSION="24" setup_nodejs + SERVICE_FILE="/etc/systemd/system/matterjs-server.service" + if [[ -f "$SERVICE_FILE" ]] && ! grep -Fxq 'Environment=ENABLE_TIME_SYNC=true' "$SERVICE_FILE"; then + msg_info "Enabling MatterJS Time Sync" + sed -i '/^ExecStart=/i Environment=ENABLE_TIME_SYNC=true' "$SERVICE_FILE" + $STD systemctl daemon-reload + $STD systemctl restart matterjs-server + msg_ok "Enabled MatterJS Time Sync" + fi + CURRENT=$(cat /opt/matter-server/node_modules/matter-server/package.json | grep '"version"' | head -1 | sed 's/.*"\([^"]*\)".*/\1/') LATEST=$(npm view matter-server version 2>/dev/null) if [[ $CURRENT != "$LATEST" ]]; then diff --git a/ct/metube.sh b/ct/metube.sh index fb863b5f..6cee3e74 100644 --- a/ct/metube.sh +++ b/ct/metube.sh @@ -37,7 +37,7 @@ function update_script() { source ~/.bashrc if ! command -v deno &>/dev/null; then export DENO_INSTALL="/usr/local" - curl -fsSL https://deno.land/install.sh | $STD sh -s -- -y + curl -fsSL https://deno.land/install.sh | CI=1 $STD sh -s else $STD deno upgrade fi diff --git a/ct/myip.sh b/ct/myip.sh index 8a88fb63..47ff1136 100644 --- a/ct/myip.sh +++ b/ct/myip.sh @@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ APP="MyIP" var_tags="${var_tags:-network}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-1024}" +var_ram="${var_ram:-2048}" var_disk="${var_disk:-4}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -31,7 +31,7 @@ function update_script() { exit fi - NODE_VERSION="24" setup_nodejs + NODE_VERSION="26" setup_nodejs if check_for_gh_release "myip" "jason5ng32/MyIP"; then msg_info "Stopping Services" diff --git a/ct/n8n.sh b/ct/n8n.sh index 76dc940b..2c59bfe9 100644 --- a/ct/n8n.sh +++ b/ct/n8n.sh @@ -47,7 +47,10 @@ EOF systemctl daemon-reload fi - $STD npm install -g n8n@latest + # n8n-nodes-base 2.46.0 pins both @napi-rs/canvas musl binaries as hard + # dependencies, which no os/cpu/libc combination can satisfy. Drop --force + # once upstream makes them optional again. + $STD npm install -g n8n@latest --force systemctl restart n8n msg_ok "Updated n8n" msg_ok "Updated successfully!" diff --git a/ct/nametag.sh b/ct/nametag.sh index 0645ebc6..4b6255c3 100644 --- a/ct/nametag.sh +++ b/ct/nametag.sh @@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ APP="Nametag" var_tags="${var_tags:-contacts;crm}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" +var_ram="${var_ram:-3072}" var_disk="${var_disk:-8}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -38,10 +38,9 @@ function update_script() { msg_ok "Stopped Service" create_backup /opt/nametag/.env - CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="data" fetch_and_deploy_gh_release "nametag" "mattogodoy/nametag" "tarball" "latest" "/opt/nametag" - restore_backup + NODE_VERSION="24" setup_nodejs msg_info "Rebuilding Application" cd /opt/nametag diff --git a/ct/netalertx.sh b/ct/netalertx.sh new file mode 100644 index 00000000..7bf1585b --- /dev/null +++ b/ct/netalertx.sh @@ -0,0 +1,66 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/netalertx/NetAlertX + +APP="NetAlertX" +var_tags="${var_tags:-network;monitoring}" +var_cpu="${var_cpu:-1}" +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 [[ ! -d /opt/netalertx ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "netalertx" "netalertx/NetAlertX"; then + msg_info "Stopping NetAlertX" + systemctl stop netalertx + msg_ok "Stopped NetAlertX" + + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP=".venv" fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball" + + msg_info "Updating NetAlertX" + cd /opt/netalertx + $STD uv pip install --python .venv/bin/python -r requirements.txt + ln -sfn /opt/netalertx/install/production-filesystem/services /opt/netalertx/services + echo "v$(cat ~/.netalertx)" >/opt/netalertx/.VERSION + date +%s >/opt/netalertx/front/buildtimestamp.txt + msg_ok "Updated NetAlertX" + + msg_info "Starting NetAlertX" + systemctl start netalertx + msg_ok "Started NetAlertX" + 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}:20211${CL}" +echo -e "${INFO}${YW}The login password is in /opt/netalertx_data/.env${CL}" diff --git a/ct/new-api.sh b/ct/new-api.sh new file mode 100644 index 00000000..f9b00c5d --- /dev/null +++ b/ct/new-api.sh @@ -0,0 +1,61 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/QuantumNous/new-api + +APP="New-API" +var_tags="${var_tags:-ai;llm;gateway}" +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:-}" +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 [[ ! -f /opt/new-api/new-api ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "new-api" "QuantumNous/new-api"; then + msg_info "Stopping New API" + systemctl stop new-api + msg_ok "Stopped New API" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "new-api" "QuantumNous/new-api" "singlefile" "latest" "/opt/new-api" "$(arch_resolve "new-api-v" "new-api-arm64-v")*[0-9]" + + msg_info "Starting New API" + systemctl start new-api + msg_ok "Started New API" + 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}" +echo -e "${INFO}${YW}Admin login: /opt/new-api_data/.env (inside the container)${CL}" diff --git a/ct/nexterm.sh b/ct/nexterm.sh index 5d60cd89..312fdadd 100644 --- a/ct/nexterm.sh +++ b/ct/nexterm.sh @@ -32,6 +32,8 @@ function update_script() { exit fi + echo "x /tmp/nexterm-sea-*" >/etc/tmpfiles.d/nexterm.conf + if check_for_gh_release "nexterm-engine" "gnmyt/Nexterm"; then msg_info "Stopping nexterm-engine" systemctl stop nexterm-engine @@ -47,6 +49,7 @@ function update_script() { if check_for_gh_release "nexterm-server" "gnmyt/Nexterm"; then msg_info "Stopping nexterm-server" systemctl stop nexterm-server + rm -rf /tmp/nexterm-sea-* msg_ok "Stopped nexterm-server" fetch_and_deploy_gh_release "nexterm-server" "gnmyt/Nexterm" "singlefile" "latest" "/opt/nexterm/server" "nexterm-server-linux-$(arch_resolve "x64" "arm64")" diff --git a/ct/nginxproxymanager.sh b/ct/nginxproxymanager.sh index e3709c68..b0a4040c 100644 --- a/ct/nginxproxymanager.sh +++ b/ct/nginxproxymanager.sh @@ -62,9 +62,16 @@ function update_script() { fi $STD apt install -y build-essential "$pcre_pkg" libssl-dev zlib1g-dev - OPENRESTY_VERSION="1.29.2.5" + OPENRESTY_VERSION="1.31.8.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://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://github.com/nginx/nginx/commit/${commit}.patch" "-" | patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s + done + msg_ok "Patched nginx HTTP/2" msg_info "Building OpenResty" cd /opt/openresty diff --git a/ct/nightingale.sh b/ct/nightingale.sh new file mode 100644 index 00000000..e91b9b9a --- /dev/null +++ b/ct/nightingale.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/ccfos/nightingale + +APP="Nightingale" +var_tags="${var_tags:-monitoring;alerting}" +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}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/nightingale ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "nightingale" "ccfos/nightingale"; then + msg_info "Stopping Nightingale" + systemctl stop nightingale + msg_ok "Stopped Nightingale" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "nightingale" "ccfos/nightingale" "prebuild" "latest" "/opt/nightingale" "n9e-v*-linux-$(arch_resolve).tar.gz" + + msg_info "Starting Nightingale" + systemctl start nightingale + msg_ok "Started Nightingale" + 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}:17000${CL}" diff --git a/ct/norish.sh b/ct/norish.sh index aa5ff3ea..facbb93d 100644 --- a/ct/norish.sh +++ b/ct/norish.sh @@ -38,9 +38,9 @@ function update_script() { msg_ok "Stopped Norish" CLEAN_INSTALL=1 fetch_and_deploy_gh_release "norish" "norish-recipes/norish" "tarball" - NODE_VERSION="22" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs + NODE_VERSION="26" NODE_MODULE="pnpm@$(jq -r '.packageManager | split("@")[1]' /opt/norish/package.json)" setup_nodejs PYTHON_VERSION="3.14" setup_uv - fetch_and_deploy_gh_release "obscura" "h4ckf0r0day/obscura" "prebuild" "v$(sed -n 's/^OBSCURA_VERSION=//p' /opt/norish/docker/obscura/pin.env)" "/opt/obscura" "obscura-$(arch_resolve "x86_64" "aarch64")-linux-stealth.tar.gz" + fetch_and_deploy_gh_release "obscura" "$(sed -n 's#^OBSCURA_REPO=https://github.com/##p' /opt/norish/docker/obscura/pin.env)" "prebuild" "v$(sed -n 's/^OBSCURA_VERSION=//p' /opt/norish/docker/obscura/pin.env)" "/opt/obscura" "obscura-$(arch_resolve "x86_64" "aarch64")-linux-stealth.tar.gz" fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "$(arch_resolve "yt-dlp_linux" "yt-dlp_linux_aarch64")" msg_info "Building Norish" @@ -49,6 +49,8 @@ function update_script() { $STD uv sync --project /opt/norish/apps/parser-api --locked NODE_ENV=production SKIP_ENV_VALIDATION=1 NEXT_TELEMETRY_DISABLED=1 $STD pnpm turbo run build --filter "@norish/web" rm -rf /opt/norish/apps/web/.next/cache /opt/norish/apps/web/.next/standalone + sed -i -e "s|^WorkingDirectory=.*|WorkingDirectory=/opt/norish/apps/web|" -e "s|^ExecStart=.*|ExecStart=/usr/bin/node --import tsx server/index.ts|" /etc/systemd/system/norish.service + systemctl daemon-reload msg_ok "Built Norish" msg_info "Starting Norish" diff --git a/ct/ollama.sh b/ct/ollama.sh index 5cdd705d..7b86f263 100644 --- a/ct/ollama.sh +++ b/ct/ollama.sh @@ -35,18 +35,25 @@ function update_script() { if check_for_gh_release "ollama-com" "ollama/ollama"; then ensure_dependencies zstd + OLLAMA_INSTALL_DIR="/usr/local/lib/ollama" + OLLAMA_STAGING_DIR="${OLLAMA_INSTALL_DIR}.new" + rm -rf "$OLLAMA_STAGING_DIR" + mkdir -p "$OLLAMA_STAGING_DIR" + if ! fetch_and_deploy_gh_release "ollama-com" "ollama/ollama" "prebuild" "latest" "$OLLAMA_STAGING_DIR" "ollama-linux-$(arch_resolve).tar.zst"; then + rm -rf "$OLLAMA_STAGING_DIR" + msg_error "Download or deployment failed – check network connectivity and GitHub API availability (installed Ollama left unchanged)" + exit 250 + fi + msg_info "Stopping Services" systemctl stop ollama msg_ok "Services Stopped" - OLLAMA_INSTALL_DIR="/usr/local/lib/ollama" - rm -rf "$OLLAMA_INSTALL_DIR" /usr/local/bin/ollama - mkdir -p "$OLLAMA_INSTALL_DIR" - if ! fetch_and_deploy_gh_release "ollama-com" "ollama/ollama" "prebuild" "latest" "$OLLAMA_INSTALL_DIR" "ollama-linux-$(arch_resolve).tar.zst"; then - msg_error "Download or deployment failed – check network connectivity and GitHub API availability" - exit 250 - fi + rm -rf "${OLLAMA_INSTALL_DIR}.old" + mv "$OLLAMA_INSTALL_DIR" "${OLLAMA_INSTALL_DIR}.old" + mv "$OLLAMA_STAGING_DIR" "$OLLAMA_INSTALL_DIR" ln -sf "$OLLAMA_INSTALL_DIR/bin/ollama" /usr/local/bin/ollama + rm -rf "${OLLAMA_INSTALL_DIR}.old" msg_ok "Updated Ollama" msg_info "Starting Services" diff --git a/ct/omada.sh b/ct/omada.sh index 78571ec7..b065eb95 100644 --- a/ct/omada.sh +++ b/ct/omada.sh @@ -41,9 +41,12 @@ function update_script() { JAVA_VERSION="21" setup_java - OMADA_URL=$(curl -fsSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15" "https://support.omadanetworks.com/en/download/software/omada-controller/" | + OMADA_URL=$(curl -fsSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15" \ + "https://support.omadanetworks.com/en/product/omada-software-controller/?resourceType=download" \ + "https://support.omadanetworks.com/en/download/software/omada-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | - head -n1) + sed -n 's/.*_v\([0-9.]*\)_linux.*/\1 &/p' | + sort -V | tail -n1 | cut -d' ' -f2) OMADA_PKG=$(basename "${OMADA_URL}") VERSION=$(sed -n 's/.*_v\([0-9.]*\)_linux.*/\1/p' <<<"${OMADA_PKG}") diff --git a/ct/onlyoffice.sh b/ct/onlyoffice.sh index fded6f66..dea395cc 100644 --- a/ct/onlyoffice.sh +++ b/ct/onlyoffice.sh @@ -53,4 +53,4 @@ 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 "${GATEWAY}${BGN}http://${IP}:8083${CL}" diff --git a/ct/opencloud.sh b/ct/opencloud.sh index 26721bf2..e68a360f 100644 --- a/ct/opencloud.sh +++ b/ct/opencloud.sh @@ -41,7 +41,7 @@ function update_script() { msg_ok "Allowed OpenCloud to embed Collabora" fi - RELEASE="v8.1.0" + RELEASE="v9.2.0" if check_for_gh_release "OpenCloud" "opencloud-eu/opencloud" "${RELEASE}" "each release is tested individually before the version is updated. Please do not open issues for this"; then OLD_VERSION="$(cat ~/.opencloud 2>/dev/null)" msg_info "Stopping services" @@ -69,15 +69,30 @@ function update_script() { # STORAGE_USERS_POSIX_WATCH_PATH=' /etc/opencloud/opencloud.env fi - if ! sed -n '/^sharing:/,/^storage_users:/p' /etc/opencloud/opencloud.yaml | grep -q 'service_account'; then - ACCOUNT_ID="$(sed -n '/^activitylog:/,/*.$/p' /etc/opencloud/opencloud.yaml | awk -F'id:' '{print $2}' | tr -d '[:space:]')" - ACCOUNT_SECRET="$(sed -n '/^activitylog:/,/*.$/p' /etc/opencloud/opencloud.yaml | awk -F'secret:' '{print $2}' | tr -d '[:space:]')" - sed -i "/^sharing:/a\\ - service_account:\\ - service_account_id: $ACCOUNT_ID\\ - service_account_secret: $ACCOUNT_SECRET" /etc/opencloud/opencloud.yaml + # Every OpenCloud service falls back to OC_SERVICE_ACCOUNT_ID/SECRET, so services that newly + # need the service account (sharing in 8.0, auth_guest in 9.0) work without editing opencloud.yaml + if ! grep -q '^OC_SERVICE_ACCOUNT_ID=' /etc/opencloud/opencloud.env; then + ACCOUNT_ID="$(awk '/service_account_id:/ {gsub(/["'\'']/, "", $2); print $2; exit}' /etc/opencloud/opencloud.yaml)" + ACCOUNT_SECRET="$(awk '/service_account_secret:/ {sub(/^[^:]*:[[:space:]]*/, ""); gsub(/^["'\'']|["'\'']$/, ""); print; exit}' /etc/opencloud/opencloud.yaml)" + if [[ -n "$ACCOUNT_ID" && -n "$ACCOUNT_SECRET" && "$ACCOUNT_SECRET" != *"'"* ]]; then + printf "OC_SERVICE_ACCOUNT_ID=%s\nOC_SERVICE_ACCOUNT_SECRET='%s'\n" "$ACCOUNT_ID" "$ACCOUNT_SECRET" | + sed -i '/^STORAGE_SYSTEM_OC_ROOT=/r /dev/stdin' /etc/opencloud/opencloud.env + else + msg_warn "Could not read the service account from opencloud.yaml; set OC_SERVICE_ACCOUNT_ID/SECRET in opencloud.env" + fi fi + if ! grep -q 'OC_ENABLE_GUEST_LINKS' /etc/opencloud/opencloud.env; then + sed -i '/^## Start additional services/i ## Guest links - share with external people by email\ +## Requires the SMTP settings above and notifications in OC_ADD_RUN_SERVICES\ +# OC_ENABLE_GUEST_LINKS=true\ +' /etc/opencloud/opencloud.env + fi + + # 9.0: the default space quota is read only under its new name, and thumbnails are cached in thumbnails/cache + sed -i 's/^GRAPH_SPACES_DEFAULT_QUOTA=/OC_SPACES_DEFAULT_QUOTA=/' /etc/opencloud/opencloud.env + rm -rf /var/lib/opencloud/thumbnails/files + msg_info "Starting services" systemctl start opencloud opencloud-wopi msg_ok "Started services" diff --git a/ct/opengym.sh b/ct/opengym.sh index c9cf4c34..72d0f368 100644 --- a/ct/opengym.sh +++ b/ct/opengym.sh @@ -37,7 +37,7 @@ function update_script() { systemctl stop nginx opengym msg_ok "Stopped openGym" - NODE_VERSION="22" setup_nodejs + NODE_VERSION="26" setup_nodejs CLEAN_INSTALL=1 fetch_and_deploy_gh_release "opengym" "DuarteSantos8/openGym" "tarball" "latest" "/opt/opengym" "" "v" msg_info "Building openGym" diff --git a/ct/openlist.sh b/ct/openlist.sh new file mode 100755 index 00000000..2dd42683 --- /dev/null +++ b/ct/openlist.sh @@ -0,0 +1,95 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: uchouT (uchouT) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/OpenListTeam/OpenList/ + +APP="OpenList" +var_tags="${var_tags:-files;storage}" +var_cpu="${var_cpu:-1}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" +if [[ -z "${var_os:-}" ]] && command -v pveversion >/dev/null 2>&1; then + var_os=$(msg_menu "Choose the container OS" \ + "debian" "Debian 13" \ + "alpine" "Alpine 3.24 (smaller footprint)") +fi + +if [[ "${var_os:-}" == "alpine" ]]; then + var_ram="${var_ram:-512}" + var_disk="${var_disk:-4}" + var_version="${var_version:-3.24}" +else + var_ram="${var_ram:-1024}" + var_disk="${var_disk:-6}" + var_version="${var_version:-13}" +fi + +header_info "$APP" +variables +color +catch_errors + +update_deb_based() { + if [[ ! -f /opt/openlist/openlist ]]; then + msg_error "No OpenList Installation Found!" + exit 1 + fi + + if check_for_gh_release "openlist" "OpenListTeam/OpenList"; then + msg_info "Stopping OpenList" + systemctl stop openlist + msg_ok "Stopped OpenList" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Starting OpenList" + systemctl start openlist + msg_ok "Started OpenList" + msg_ok "Updated successfully!" + fi +} + +update_alpine() { + if [[ ! -f /opt/openlist/openlist ]]; then + msg_error "No OpenList Installation Found!" + exit 1 + fi + + msg_info "Updating Alpine Packages" + $STD apk -U upgrade + msg_ok "Updated Alpine Packages" + + if check_for_gh_release "openlist" "OpenListTeam/OpenList"; then + msg_info "Stopping OpenList" + $STD rc-service openlist stop + msg_ok "Stopped OpenList" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Starting OpenList" + $STD rc-service openlist start + msg_ok "Started OpenList" + msg_ok "Updated successfully!" + fi +} + +function update_script() { + header_info + check_container_storage + check_container_resources + run_os_update +} + +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}:5244${CL}" +echo -e "${INFO}${YW}Credentials: /root/openlist.creds (inside the container)${CL}" diff --git a/ct/openobserve.sh b/ct/openobserve.sh index d9a0172d..207d943b 100644 --- a/ct/openobserve.sh +++ b/ct/openobserve.sh @@ -33,9 +33,14 @@ function update_script() { if check_for_gh_release "openobserve" "openobserve/openobserve"; then msg_info "Updating OpenObserve" + if grep -q "^ExecStop=killall" /etc/systemd/system/openobserve.service; then + sed -i "/^ExecStop=killall/d" /etc/systemd/system/openobserve.service + systemctl daemon-reload + fi systemctl stop openobserve RELEASE=$(get_latest_github_release "openobserve/openobserve") - tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-$(arch_resolve).tar.gz) -C /opt/openobserve + tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-$(arch_resolve).tar.gz) -C /opt/openobserve --no-same-owner + echo "${RELEASE}" >~/.openobserve systemctl start openobserve msg_ok "Updated OpenObserve" msg_ok "Updated successfully!" diff --git a/ct/openwebui.sh b/ct/openwebui.sh index dec952c8..309748f5 100644 --- a/ct/openwebui.sh +++ b/ct/openwebui.sh @@ -102,21 +102,29 @@ EOF if [ -x "/usr/bin/ollama" ]; then msg_info "Checking for Ollama Update" if check_for_gh_release "ollama-com" "ollama/ollama"; then - msg_info "Stopping Ollama Service" - systemctl stop ollama - msg_ok "Stopped Service" - - rm -rf /usr/lib/ollama /usr/bin/ollama - if ! fetch_and_deploy_gh_release "ollama-com" "ollama/ollama" "prebuild" "latest" "/usr/lib/ollama" "ollama-linux-$(arch_resolve).tar.zst"; then - msg_error "Ollama download or deployment failed – check network connectivity and GitHub API availability" + rm -rf /usr/lib/ollama.new + mkdir -p /usr/lib/ollama.new + if ! fetch_and_deploy_gh_release "ollama-com" "ollama/ollama" "prebuild" "latest" "/usr/lib/ollama.new" "ollama-linux-$(arch_resolve).tar.zst"; then + rm -rf /usr/lib/ollama.new + msg_error "Ollama download or deployment failed – check network connectivity and GitHub API availability (installed Ollama left unchanged)" else + msg_info "Stopping Ollama Service" + systemctl stop ollama + msg_ok "Stopped Service" + + rm -rf /usr/lib/ollama.old + if [[ -d /usr/lib/ollama ]]; then + mv /usr/lib/ollama /usr/lib/ollama.old + fi + mv /usr/lib/ollama.new /usr/lib/ollama ln -sf /usr/lib/ollama/bin/ollama /usr/bin/ollama + rm -rf /usr/lib/ollama.old msg_ok "Updated Ollama to ${CHECK_UPDATE_RELEASE}" - fi - msg_info "Starting Ollama Service" - systemctl start ollama - msg_ok "Started Service" + msg_info "Starting Ollama Service" + systemctl start ollama + msg_ok "Started Service" + fi fi fi diff --git a/ct/overseerr.sh b/ct/overseerr.sh index 26e068ea..9d42074c 100644 --- a/ct/overseerr.sh +++ b/ct/overseerr.sh @@ -39,6 +39,10 @@ function update_script() { echo "Seerr is the new unified Jellyseerr and Overseerr." echo "More info: https://docs.seerr.dev/blog/seerr-release" echo + if [[ "${PHS_SILENT:-0}" == "1" ]]; then + msg_warn "Seerr migration detected - skipping update, requires an interactive run" + exit 75 + fi read -rp "Do you want to migrate to Seerr now? (y/N): " MIGRATE echo if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then diff --git a/ct/paperclip.sh b/ct/paperclip.sh index f085a06c..abca9d3d 100644 --- a/ct/paperclip.sh +++ b/ct/paperclip.sh @@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ APP="Paperclip" var_tags="${var_tags:-ai;automation;dev-tools}" var_cpu="${var_cpu:-4}" -var_ram="${var_ram:-8192}" +var_ram="${var_ram:-10240}" var_disk="${var_disk:-20}" var_os="${var_os:-debian}" var_version="${var_version:-13}" diff --git a/ct/paperless-ai.sh b/ct/paperless-ai.sh index 7d40f76a..61012e4d 100644 --- a/ct/paperless-ai.sh +++ b/ct/paperless-ai.sh @@ -33,36 +33,52 @@ function update_script() { if check_for_gh_release "paperless-ai" "clusterzx/paperless-ai"; then msg_info "Stopping Service" - systemctl stop paperless-ai paperless-rag + systemctl stop paperless-ai + if [[ -f /etc/systemd/system/paperless-rag.service ]]; then + systemctl stop paperless-rag + fi msg_ok "Stopped Service" - msg_info "Backing up data" - cp -r /opt/paperless-ai/data /opt/paperless-ai-data-backup - msg_ok "Backed up data" - - fetch_and_deploy_gh_release "paperless-ai" "clusterzx/paperless-ai" "tarball" - - msg_info "Restoring data" - cp -r /opt/paperless-ai-data-backup/* /opt/paperless-ai/data/ - rm -rf /opt/paperless-ai-data-backup - msg_ok "Restored data" + NODE_VERSION="22" setup_nodejs + CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="data" fetch_and_deploy_gh_release "paperless-ai" "clusterzx/paperless-ai" "tarball" msg_info "Updating Paperless-AI" cd /opt/paperless-ai - if [[ ! -d /opt/paperless-ai/venv ]]; then - msg_info "Recreating Python venv" - $STD python3 -m venv /opt/paperless-ai/venv - fi - source /opt/paperless-ai/venv/bin/activate - $STD pip install --upgrade pip - $STD pip install --no-cache-dir -r requirements.txt - mkdir -p data/chromadb - $STD npm ci --only=production + export ONNXRUNTIME_NODE_INSTALL=skip PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 + $STD npm ci --ignore-scripts --no-audit --no-fund + $STD npm run build + $STD npm prune --omit=dev --ignore-scripts --no-audit --no-fund msg_ok "Updated Paperless-AI" + if ! grep -q "dist/server/index.js" /etc/systemd/system/paperless-ai.service; then + msg_info "Migrating services to Paperless-AI 4" + if [[ -f /etc/systemd/system/paperless-rag.service ]]; then + systemctl disable -q paperless-rag + rm -f /etc/systemd/system/paperless-rag.service + fi + cat </etc/systemd/system/paperless-ai.service +[Unit] +Description=PaperlessAI Service +After=network.target + +[Service] +WorkingDirectory=/opt/paperless-ai +Environment="NODE_ENV=production" +Environment="PAPERLESS_AI_PORT=3000" +Environment="PAPERLESS_AI_DATA_DIR=/opt/paperless-ai/data" +Environment="HF_HUB_DISABLE_TELEMETRY=1" +ExecStart=/usr/bin/node dist/server/index.js +Restart=always + +[Install] +WantedBy=multi-user.target +EOF + systemctl daemon-reload + msg_ok "Migrated services to Paperless-AI 4" + msg_warn "Settings and history from 3.x are migrated on first start. If this instance was reachable from the internet, read 'Upgrading from 3.x' in the upstream README first." + fi + msg_info "Starting Service" - systemctl start paperless-rag - sleep 3 systemctl start paperless-ai msg_ok "Started Service" msg_ok "Updated successfully!" @@ -74,7 +90,7 @@ start build_container description -msg_ok "Completed successfully!\n" +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}" +echo -e "${INFO}${YW} Access it using the following URL:${CL}" +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}" diff --git a/ct/paperless-ngx.sh b/ct/paperless-ngx.sh index c7a00965..f7f9f6e2 100644 --- a/ct/paperless-ngx.sh +++ b/ct/paperless-ngx.sh @@ -64,6 +64,10 @@ function update_script() { echo -e "${GATEWAY}${BGN}https://docs.paperless-ngx.com/migration-v3/#encryption-support${CL}" msg_warn "Before continuing make sure that you do not use encryption or have decrypted all documents." echo "" + if [[ "${PHS_SILENT:-0}" == "1" ]]; then + msg_warn "Paperless-ngx v3 migration detected - skipping update, requires an interactive run" + exit 75 + fi read -rp "Do you want to continue with the update? (y/N): " MIGRATE echo if [[ ! "$MIGRATE" =~ ^[Yy]$ ]]; then @@ -72,6 +76,11 @@ function update_script() { fi fi + if [[ "${PHS_SILENT:-0}" == "1" ]] && ! grep -q "uv run" /etc/systemd/system/paperless-webserver.service; then + msg_warn "Paperless-ngx uv migration detected - skipping update, requires an interactive run" + exit 75 + fi + msg_info "Stopping all Paperless-ngx Services" systemctl stop paperless-consumer paperless-webserver paperless-scheduler paperless-task-queue msg_ok "Stopped all Paperless-ngx Services" diff --git a/ct/pixelfed.sh b/ct/pixelfed.sh new file mode 100644 index 00000000..6fa8fa1f --- /dev/null +++ b/ct/pixelfed.sh @@ -0,0 +1,80 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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://pixelfed.org/ + +APP="Pixelfed" +var_tags="${var_tags:-fediverse;social}" +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}" +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/pixelfed ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "pixelfed" "pixelfed/pixelfed"; then + msg_info "Stopping Services" + systemctl stop pixelfed-horizon pixelfed-scheduler.timer + msg_ok "Services stopped" + + create_backup /opt/pixelfed/.env \ + /opt/pixelfed/storage + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pixelfed" "pixelfed/pixelfed" "tarball" "latest" "/opt/pixelfed" + + restore_backup + + msg_info "Updating Pixelfed" + cd /opt/pixelfed + chmod -R 755 /opt/pixelfed + chmod -R 775 /opt/pixelfed/storage /opt/pixelfed/bootstrap/cache + export COMPOSER_ALLOW_SUPERUSER=1 + $STD composer install --no-dev --no-ansi --no-interaction --optimize-autoloader + chown -R pixelfed:pixelfed /opt/pixelfed + $STD sudo -u pixelfed php artisan storage:link + $STD sudo -u pixelfed php artisan migrate --force + $STD sudo -u pixelfed php artisan route:cache + $STD sudo -u pixelfed php artisan view:cache + $STD sudo -u pixelfed php artisan config:cache + $STD sudo -u pixelfed php artisan horizon:publish + msg_ok "Updated Pixelfed" + + msg_info "Starting Services" + systemctl start pixelfed-horizon pixelfed-scheduler.timer + msg_ok "Services started" + 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}" +echo -e "${INFO}${YW} Create an admin account with:${CL}" +echo -e "${TAB}cd /opt/pixelfed && sudo -u pixelfed php artisan user:create" diff --git a/ct/planka.sh b/ct/planka.sh index 66a5956b..13315001 100644 --- a/ct/planka.sh +++ b/ct/planka.sh @@ -31,6 +31,15 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + + if ! grep -q "^Environment=HOME=" /etc/systemd/system/planka.service; then + msg_info "Updating Service" + sed -i -e '/^Environment=NODE_ENV=/d' -e 's|^ExecStart=.*|Environment=NODE_ENV=production\nEnvironment=HOME=/root\nExecStart=/usr/bin/node app.js --prod|' /etc/systemd/system/planka.service + systemctl daemon-reload + systemctl restart planka + msg_ok "Updated Service" + fi + if check_for_gh_release "planka" "plankanban/planka"; then msg_info "Stopping Service" systemctl stop planka diff --git a/ct/pocketbase.sh b/ct/pocketbase.sh index 1953a0fc..e2280de3 100644 --- a/ct/pocketbase.sh +++ b/ct/pocketbase.sh @@ -5,7 +5,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ # Copyright (c) 2021-2026 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://pocketbase.io/ | Github: https://github.com/pocketbase/pocketbase +# Source: https://pocketbase.io/ | Repo: https://ganigeorgiev.com/pocketbase/pocketbase APP="Pocketbase" var_tags="${var_tags:-database}" @@ -30,20 +30,21 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - if check_for_gh_release "pocketbase" "pocketbase/pocketbase"; then + RELEASE=$(curl_with_retry "https://ganigeorgiev.com/api/collections/releases/records?filter=channel.repository.name%3D%22pocketbase%22%20%26%26%20channel.name%3D%22default%22&sort=-semver&skipTotal=1&perPage=1" "-" | jq -r '.items[0].tag' | sed 's/^v//') + if [[ -n "$RELEASE" && "$RELEASE" != "$(cat ~/.pocketbase 2>/dev/null)" ]]; then msg_info "Stopping Service" systemctl stop pocketbase msg_ok "Stopped Service" - msg_info "Updating ${APP}" - /opt/pocketbase/pocketbase update - echo "${CHECK_UPDATE_RELEASE}" >~/.pocketbase - msg_ok "Updated ${APP}" + fetch_and_deploy_from_url "https://ganigeorgiev.com/meta/pocketbase/pocketbase/download/v${RELEASE}/pocketbase_${RELEASE}_linux_$(arch_resolve).zip" "/opt/pocketbase" + echo "${RELEASE}" >~/.pocketbase msg_info "Starting Service" systemctl start pocketbase msg_ok "Started Service" msg_ok "Updated successfully!" + else + msg_ok "No update required. ${APP} is already at v${RELEASE}" fi exit } diff --git a/ct/podman-homeassistant.sh b/ct/podman-homeassistant.sh index dddf5eea..cb1b16fb 100644 --- a/ct/podman-homeassistant.sh +++ b/ct/podman-homeassistant.sh @@ -67,33 +67,7 @@ function update_script() { exit fi if [ "$UPD" == "3" ]; then - msg_info "Installing FileBrowser" - $STD curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash - $STD filebrowser config init -a '0.0.0.0' - $STD filebrowser config set -a '0.0.0.0' - $STD filebrowser users add admin community-scripts.org --perm.admin - msg_ok "Installed FileBrowser" - - msg_info "Creating Service" - cat </etc/systemd/system/filebrowser.service -[Unit] -Description=Filebrowser -After=network-online.target - -[Service] -User=root -WorkingDirectory=/root/ -ExecStart=/usr/local/bin/filebrowser -r / - -[Install] -WantedBy=default.target -EOF - systemctl enable -q --now filebrowser - msg_ok "Created Service" - - msg_ok "Completed successfully!\n" - echo -e "FileBrowser should be reachable by going to the following URL. - ${BL}http://$LOCAL_IP:8080${CL} admin|community-scripts.org\n" + bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/addon/filebrowser.sh)" exit fi if [ "$UPD" == "4" ]; then diff --git a/ct/portabase.sh b/ct/portabase.sh index 9bc06876..63900da4 100644 --- a/ct/portabase.sh +++ b/ct/portabase.sh @@ -32,6 +32,46 @@ function update_script() { exit fi + TOOLS_CHANGED=false + if check_for_gh_release "rclone" "rclone/rclone"; then + TOOLS_CHANGED=true + fetch_and_deploy_gh_release "rclone" "rclone/rclone" "binary" "latest" "" "rclone-v*-linux-$(arch_resolve).deb" + fi + if check_for_gh_release "restic" "restic/restic"; then + TOOLS_CHANGED=true + fetch_and_deploy_gh_release "restic" "restic/restic" "singlefile" "latest" "/usr/local/bin" "restic_*_linux_$(arch_resolve).bz2" + fi + if ! grep -q "/storage/restic/" /etc/nginx/sites-available/portabase; then + msg_info "Adding file backup routes to Nginx" + cat <<'EOF' >/tmp/portabase-storage.conf + location /storage/restic/ { + proxy_pass http://127.0.0.1:1081; + proxy_request_buffering off; + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location /storage/sync/ { + proxy_pass http://127.0.0.1:1082; + proxy_request_buffering off; + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } +EOF + sed -i '/ignore_invalid_headers off;/r /tmp/portabase-storage.conf' /etc/nginx/sites-available/portabase + rm -f /tmp/portabase-storage.conf + $STD nginx -t + systemctl reload nginx + msg_ok "Added file backup routes to Nginx" + fi + if [[ "$TOOLS_CHANGED" == "true" ]]; then + systemctl restart portabase + fi + if check_for_gh_release "portabase" "Portabase/portabase"; then msg_info "Stopping Services" systemctl stop portabase portabase-tusd diff --git a/ct/ps5-mqtt.sh b/ct/ps5-mqtt.sh index ef99b5af..3c3407fd 100644 --- a/ct/ps5-mqtt.sh +++ b/ct/ps5-mqtt.sh @@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ APP="PS5-MQTT" var_tags="${var_tags:-smarthome;automation}" var_cpu="${var_cpu:-1}" -var_ram="${var_ram:-512}" +var_ram="${var_ram:-2048}" var_disk="${var_disk:-3}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -38,12 +38,16 @@ function update_script() { systemctl stop ps5-mqtt msg_ok "Stopped service" - fetch_and_deploy_gh_release "ps5-mqtt" "FunkeyFlo/ps5-mqtt" "tarball" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ps5-mqtt" "FunkeyFlo/ps5-mqtt" "tarball" msg_info "Configuring ${APP}" - cd /opt/ps5-mqtt/ps5-mqtt/ - $STD npm install - $STD npm run build + cd /opt/ps5-mqtt + $STD corepack yarn install --immutable + $STD env PREPARE_ONLY=1 corepack yarn workspace @ps5-mqtt/server run package + cd /opt/ps5-mqtt/ps5-mqtt/server/.packaged/server + $STD npm install --omit=dev --omit=optional + sed -i 's|^WorkingDirectory=.*|WorkingDirectory=/opt/ps5-mqtt/ps5-mqtt/server/.packaged|' /etc/systemd/system/ps5-mqtt.service + systemctl daemon-reload msg_ok "Configured ${APP}" msg_info "Starting service" diff --git a/ct/razzia.sh b/ct/razzia.sh new file mode 100644 index 00000000..1498fc64 --- /dev/null +++ b/ct/razzia.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Owen Voke (owenvoke) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Ralex91/Razzia + +APP="Razzia" +var_tags="${var_tags:-quiz;games}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-3072}" +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/razzia ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "razzia" "Ralex91/Razzia"; then + msg_info "Stopping Service" + systemctl stop razzia + msg_ok "Stopped Service" + + create_backup /opt/razzia/.env + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "razzia" "Ralex91/Razzia" "tarball" + + restore_backup + + NODE_VERSION="26" NODE_MODULE="pnpm@11" setup_nodejs + + msg_info "Building Razzia" + cd /opt/razzia + $STD pnpm install --frozen-lockfile + $STD pnpm build + msg_ok "Built Razzia" + + msg_info "Starting Service" + systemctl start razzia + 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}:3000${CL}" diff --git a/ct/reactive-resume.sh b/ct/reactive-resume.sh index 8b74e1c4..ececd872 100644 --- a/ct/reactive-resume.sh +++ b/ct/reactive-resume.sh @@ -39,7 +39,7 @@ function update_script() { ensure_dependencies git create_backup /opt/reactive-resume/.env - NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs + NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs CLEAN_INSTALL=1 fetch_and_deploy_gh_release "reactive-resume" "amruthpillai/reactive-resume" "tarball" "latest" "/opt/reactive-resume" restore_backup diff --git a/ct/reconya.sh b/ct/reconya.sh new file mode 100644 index 00000000..a13ab072 --- /dev/null +++ b/ct/reconya.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/Dyneteq/reconya + +APP="Reconya" +var_tags="${var_tags:-network;discovery;security}" +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}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/reconya ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "reconya" "Dyneteq/reconya"; then + msg_info "Stopping Reconya" + systemctl stop reconya + msg_ok "Stopped Reconya" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "reconya" "Dyneteq/reconya" "prebuild" "latest" "/opt/reconya" "reconya-linux-$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Starting Reconya" + systemctl start reconya + msg_ok "Started Reconya" + 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}:3008${CL}" diff --git a/ct/romm.sh b/ct/romm.sh index 772ba467..dffe605b 100644 --- a/ct/romm.sh +++ b/ct/romm.sh @@ -108,8 +108,9 @@ function update_script() { ln -sfn "$ROMM_BASE"/resources /opt/romm/frontend/dist/assets/romm/resources ln -sfn "$ROMM_BASE"/assets /opt/romm/frontend/dist/assets/romm/assets if [[ -f /etc/angie/http.d/romm.conf ]]; then - if ! grep -q "js_content decode.decodeBase64" /etc/angie/http.d/romm.conf; then - msg_info "Adding missing /decode and /cache locations to Angie config" + if ! grep -q "js_content decode.decodeBase64" /etc/angie/http.d/romm.conf || + ! grep -q "coep_header" /etc/angie/http.d/romm.conf; then + msg_info "Updating Angie config (decode/cache locations, player isolation headers)" dpkg -l angie-module-njs &>/dev/null || $STD apt install -y angie-module-njs grep -q "ngx_http_js_module.so" /etc/angie/angie.conf || sed -i '1i load_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf mkdir -p /etc/angie/js "${ROMM_BASE}/cache" @@ -148,6 +149,20 @@ map \$http_upgrade \$connection_upgrade { '' close; } +# COEP/COOP for the EmulatorJS and js-dos players (SharedArrayBuffer needs a +# crossOriginIsolated document). Matched on \$request_uri because try_files +# rewrites \$uri to /index.html before add_header runs, so a per-location +# add_header on the player route never fires. Mirrors upstream RomM's +# docker/nginx/templates/default.conf.template. +map \$request_uri \$coep_header { + default ""; + ~^/rom/.*/(ejs|jsdos)(\?|\$) "require-corp"; +} +map \$request_uri \$coop_header { + default ""; + ~^/rom/.*/(ejs|jsdos)(\?|\$) "same-origin"; +} + server { listen 80; server_name _; @@ -156,6 +171,9 @@ server { location / { try_files \$uri \$uri/ /index.html; + add_header Cache-Control "no-cache"; + add_header Cross-Origin-Embedder-Policy \$coep_header; + add_header Cross-Origin-Opener-Policy \$coop_header; } location /assets { @@ -165,12 +183,6 @@ server { add_header Cache-Control "public, immutable"; } - location ~ ^/rom/.*/ejs\$ { - add_header Cross-Origin-Embedder-Policy "require-corp"; - add_header Cross-Origin-Opener-Policy "same-origin"; - try_files \$uri /index.html; - } - location /api { proxy_pass http://romm_backend; proxy_buffering off; @@ -210,7 +222,7 @@ server { } } EOF - msg_ok "Added /decode and /cache locations" + msg_ok "Updated Angie config" else sed -i -e "s|alias .*/library/;|alias ${ROMM_BASE}/library/;|" \ -e "s|alias .*/cache/;|alias ${ROMM_BASE}/cache/;|" /etc/angie/http.d/romm.conf diff --git a/ct/scrutiny.sh b/ct/scrutiny.sh new file mode 100644 index 00000000..ce42a15d --- /dev/null +++ b/ct/scrutiny.sh @@ -0,0 +1,58 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/AnalogJ/scrutiny + +APP="Scrutiny" +var_tags="${var_tags:-monitoring;smart;disk}" +var_cpu="${var_cpu:-1}" +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 [[ ! -f /opt/scrutiny/scrutiny ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "scrutiny" "AnalogJ/scrutiny"; then + msg_info "Stopping Scrutiny" + systemctl stop scrutiny + msg_ok "Stopped Scrutiny" + + fetch_and_deploy_gh_release "scrutiny" "AnalogJ/scrutiny" "singlefile" "latest" "/opt/scrutiny" "scrutiny-web-linux-$(arch_resolve "amd64" "arm64")" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "scrutiny-web" "AnalogJ/scrutiny" "prebuild" "latest" "/opt/scrutiny/web" "scrutiny-web-frontend.tar.gz" + + msg_info "Starting Scrutiny" + systemctl start scrutiny + msg_ok "Started Scrutiny" + 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}:8080${CL}" diff --git a/ct/simplelogin.sh b/ct/simplelogin.sh new file mode 100644 index 00000000..e3ed5628 --- /dev/null +++ b/ct/simplelogin.sh @@ -0,0 +1,85 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/simple-login/app + +APP="SimpleLogin" +var_tags="${var_tags:-email;privacy;alias}" +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}" # unset = ask the user; set yes/no only when verified +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/simplelogin ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "simplelogin" "simple-login/app"; then + msg_info "Stopping Services" + systemctl stop simplelogin-webapp simplelogin-email simplelogin-job + msg_ok "Stopped Services" + + create_backup /opt/simplelogin/.env \ + /opt/simplelogin/dkim \ + /opt/simplelogin/openid-rsa.key \ + /opt/simplelogin/openid-rsa.pub \ + /opt/simplelogin/uploads \ + /opt/simplelogin/.gnupg + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "simplelogin" "simple-login/app" + + restore_backup + grep -q '^METRICS_BACKENDS=' /opt/simplelogin/.env || echo "METRICS_BACKENDS=noop" >>/opt/simplelogin/.env + + msg_info "Installing Dependencies" + cd /opt/simplelogin + $STD uv venv + $STD uv pip install setuptools hatchling editables + export CMAKE_POLICY_VERSION_MINIMUM=3.5 + $STD uv sync --locked --no-dev --no-build-isolation --no-install-package newrelic + if [[ -f /opt/simplelogin/static/package.json ]]; then + cd /opt/simplelogin/static + $STD npm ci + fi + msg_ok "Installed Dependencies" + + msg_info "Running Database Migrations" + cd /opt/simplelogin + $STD .venv/bin/alembic upgrade head + msg_ok "Ran Database Migrations" + + msg_info "Starting Services" + systemctl start simplelogin-webapp simplelogin-email simplelogin-job + msg_ok "Started Services" + 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}" diff --git a/ct/spacebot.sh b/ct/spacebot.sh new file mode 100644 index 00000000..262edc4d --- /dev/null +++ b/ct/spacebot.sh @@ -0,0 +1,66 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/spacedriveapp/spacebot + +APP="Spacebot" +var_tags="${var_tags:-ai;agent;chatops}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-1024}" +var_disk="${var_disk:-6}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +export var_llm_base_url="${var_llm_base_url:-}" +export var_llm_api_key="${var_llm_api_key:-}" +export var_llm_model="${var_llm_model:-}" + +if [[ -n "$var_llm_base_url" && -z "$var_llm_model" ]]; then + msg_error "var_llm_model is required with var_llm_base_url." + exit 1 +fi + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/spacebot ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "spacebot" "spacedriveapp/spacebot"; then + msg_info "Stopping Spacebot" + systemctl stop spacebot + msg_ok "Stopped Spacebot" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "spacebot" "spacedriveapp/spacebot" "prebuild" "latest" "/opt/spacebot" "spacebot-v*-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz" + + msg_info "Starting Spacebot" + systemctl start spacebot + msg_ok "Started Spacebot" + 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}:19898${CL}" diff --git a/ct/stirling-pdf.sh b/ct/stirling-pdf.sh index be2b558f..14863cac 100644 --- a/ct/stirling-pdf.sh +++ b/ct/stirling-pdf.sh @@ -61,6 +61,15 @@ function update_script() { systemctl stop stirlingpdf unoserver msg_ok "Stopped Services" + if grep -q '^ExecStart=/usr/bin/java -jar Stirling-PDF.jar$' /etc/systemd/system/stirlingpdf.service; then + msg_info "Limiting Java Heap to Container Memory" + sed -i '/^ExecStop=\/bin\/kill -15 %n$/d' /etc/systemd/system/stirlingpdf.service + sed -i "s|^ExecStart=/usr/bin/java -jar Stirling-PDF.jar$|ExecStart=/bin/bash -c 'exec /usr/bin/java -XX:MaxRAM=\$\$(grep -m1 -o \"[0-9][0-9]*\" /proc/meminfo)k \$\$JAVA_BASE_OPTS \$\$JAVA_CUSTOM_OPTS -jar Stirling-PDF.jar'|" /etc/systemd/system/stirlingpdf.service + sed -i 's/-XX:MaxRAMPercentage=75/-XX:MaxRAMPercentage=50/' /opt/Stirling-PDF/.env + systemctl daemon-reload + msg_ok "Limited Java Heap to Container Memory" + fi + if [[ -f ~/.Stirling-PDF-login ]]; then USE_ORIGINAL_FILENAME=true fetch_and_deploy_gh_release "stirling-pdf" "Stirling-Tools/Stirling-PDF" "singlefile" "latest" "/opt/Stirling-PDF" "Stirling-PDF-with-login.jar" mv /opt/Stirling-PDF/Stirling-PDF-with-login.jar /opt/Stirling-PDF/Stirling-PDF.jar diff --git a/ct/t3code.sh b/ct/t3code.sh new file mode 100644 index 00000000..a47d4814 --- /dev/null +++ b/ct/t3code.sh @@ -0,0 +1,65 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: lukdz +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/pingdotgg/t3code + +APP="T3Code" +var_tags="${var_tags:-ai;dev-tools}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-4096}" +var_disk="${var_disk:-10}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_arm64="${var_arm64:-yes}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if ! command -v t3 >/dev/null 2>&1; then + msg_error "No ${APP} Installation Found!" + exit + fi + + msg_info "Stopping Service" + systemctl stop t3code + msg_ok "Stopped Service" + + msg_info "Updating T3 Code" + $STD npm install -g t3@latest + msg_ok "Updated T3 Code" + + msg_info "Configuring T3 Code Service" + mkdir -p /etc/systemd/system/t3code.service.d + cat </etc/systemd/system/t3code.service.d/claude.conf +[Service] +# Allow Claude Full access mode as root inside the LXC. +Environment=IS_SANDBOX=1 +EOF + systemctl daemon-reload + msg_ok "Configured T3 Code Service" + + msg_info "Starting Service" + systemctl start t3code + msg_ok "Started Service" + 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}" diff --git a/ct/tdarr.sh b/ct/tdarr.sh index 97f3f3bf..ce452ab1 100644 --- a/ct/tdarr.sh +++ b/ct/tdarr.sh @@ -11,7 +11,7 @@ APP="Tdarr" var_tags="${var_tags:-arr}" var_cpu="${var_cpu:-2}" var_ram="${var_ram:-2048}" -var_disk="${var_disk:-4}" +var_disk="${var_disk:-15}" var_os="${var_os:-debian}" var_version="${var_version:-13}" var_arm64="${var_arm64:-yes}" diff --git a/ct/teable.sh b/ct/teable.sh index 2c4fd737..8ea4e63a 100644 --- a/ct/teable.sh +++ b/ct/teable.sh @@ -33,6 +33,16 @@ function update_script() { exit fi + ensure_dependencies redis-server + systemctl enable -q --now redis-server + if ! grep -q "BACKEND_CACHE_REDIS_URI" /opt/teable/.env; then + sed -i '/^BACKEND_CACHE_SQLITE_URI=/d' /opt/teable/.env + sed -i 's|^BACKEND_CACHE_PROVIDER=.*|BACKEND_CACHE_PROVIDER=redis\nBACKEND_CACHE_REDIS_URI=redis://127.0.0.1:6379/0|' /opt/teable/.env + sed -i 's|^After=network.target postgresql.service$|After=network.target postgresql.service redis-server.service|' /etc/systemd/system/teable.service + systemctl daemon-reload + systemctl restart teable + fi + if check_for_gh_release "teable" "teableio/teable"; then msg_info "Stopping Service" systemctl stop teable diff --git a/ct/technitiumdns.sh b/ct/technitiumdns.sh index 001216ef..31bd2722 100644 --- a/ct/technitiumdns.sh +++ b/ct/technitiumdns.sh @@ -48,7 +48,7 @@ function update_script() { $STD apt install -y aspnetcore-runtime-10.0 fi - RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') + RELEASE=$(get_latest_github_release "TechnitiumSoftware/DnsServer") if [[ ! -f ~/.technitium || ${RELEASE} != "$(cat ~/.technitium 2>/dev/null)" ]]; then fetch_and_deploy_from_url "https://download.technitium.com/dns/DnsServerPortable.tar.gz" /opt/technitium/dns echo "${RELEASE}" >~/.technitium diff --git a/ct/temporal.sh b/ct/temporal.sh new file mode 100644 index 00000000..8c7d5bc3 --- /dev/null +++ b/ct/temporal.sh @@ -0,0 +1,82 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Renan Bastos (renanbastos93) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/temporalio/temporal + +APP="Temporal" +var_tags="${var_tags:-workflow;automation}" +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:-no}" # unset = ask the user; server, UI and CLI all ship linux_arm64 assets, but not yet run on arm64 +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/temporal ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "temporal" "temporalio/temporal"; then + msg_info "Stopping Temporal" + systemctl stop temporal-ui temporal + msg_ok "Stopped Temporal" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "temporal" "temporalio/temporal" "prebuild" "latest" "/opt/temporal" "temporal_*_linux_$(arch_resolve).tar.gz" + + msg_info "Migrating Temporal Database" + set -a && source /etc/temporal/temporal.env && set +a + $STD /opt/temporal/temporal-sql-tool --db temporal update-schema --schema-name postgresql/v12/temporal + $STD /opt/temporal/temporal-sql-tool --db temporal_visibility update-schema --schema-name postgresql/v12/visibility + msg_ok "Migrated Temporal Database" + + msg_info "Starting Temporal" + systemctl start temporal temporal-ui + msg_ok "Started Temporal" + msg_ok "Updated Temporal successfully!" + fi + + if check_for_gh_release "temporal-ui" "temporalio/ui-server"; then + msg_info "Stopping Temporal UI" + systemctl stop temporal-ui + msg_ok "Stopped Temporal UI" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "temporal-ui" "temporalio/ui-server" "prebuild" "latest" "/opt/temporal-ui" "ui-server_*_linux_$(arch_resolve).tar.gz" + + msg_info "Starting Temporal UI" + systemctl start temporal-ui + msg_ok "Started Temporal UI" + msg_ok "Updated Temporal UI successfully!" + fi + + if check_for_gh_release "temporal-cli" "temporalio/cli"; then + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "temporal-cli" "temporalio/cli" "prebuild" "latest" "/opt/temporal-cli" "temporal_cli_*_linux_$(arch_resolve).tar.gz" + msg_ok "Updated Temporal CLI 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}:8080${CL}" +echo -e "${INFO}${YW}gRPC endpoint for workers and SDKs: ${IP}:7233${CL}" diff --git a/ct/thingsboard.sh b/ct/thingsboard.sh index e2cb3977..ad1ad6c3 100644 --- a/ct/thingsboard.sh +++ b/ct/thingsboard.sh @@ -32,12 +32,30 @@ function update_script() { fi JAVA_VERSION="25" setup_java + + if ! grep -q "install.data_dir" /etc/thingsboard/conf/thingsboard.conf; then + msg_info "Restoring Package Defaults" + cat <<'EOF' >>/etc/thingsboard/conf/thingsboard.conf + +export JAVA_OPTS="$JAVA_OPTS -Dplatform=deb -Dinstall.data_dir=/usr/share/thingsboard/data" +export JAVA_OPTS="$JAVA_OPTS -Xlog:gc*,heap*,age*,safepoint=debug:file=/var/log/thingsboard/gc.log:time,uptime,level,tags:filecount=10,filesize=10M" +export JAVA_OPTS="$JAVA_OPTS -XX:+IgnoreUnrecognizedVMOptions -XX:+HeapDumpOnOutOfMemoryError" +export JAVA_OPTS="$JAVA_OPTS -XX:-UseBiasedLocking -XX:+UseTLAB -XX:+ResizeTLAB -XX:+PerfDisableSharedMem -XX:+UseCondCardMark" +export JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC -XX:MaxGCPauseMillis=500 -XX:+UseStringDeduplication -XX:+ParallelRefProcEnabled -XX:MaxTenuringThreshold=10" +export LOG_FILENAME=thingsboard.out +export LOADER_PATH=/usr/share/thingsboard/conf,/usr/share/thingsboard/extensions +export SQL_DATA_FOLDER=/usr/share/thingsboard/data/sql +EOF + systemctl restart thingsboard + msg_ok "Restored Package Defaults" + fi + if check_for_gh_release "thingsboard" "thingsboard/thingsboard"; then msg_info "Stopping Service" systemctl stop thingsboard msg_ok "Stopped Service" - fetch_and_deploy_gh_release "thingsboard" "thingsboard/thingsboard" "binary" "latest" "/tmp" "thingsboard-*.deb" + DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "thingsboard" "thingsboard/thingsboard" "binary" "latest" "/tmp" "thingsboard-*.deb" msg_info "Running Database Upgrade" $STD /usr/share/thingsboard/bin/install/upgrade.sh diff --git a/ct/tracearr.sh b/ct/tracearr.sh index bc719a38..2b0f91ee 100644 --- a/ct/tracearr.sh +++ b/ct/tracearr.sh @@ -31,7 +31,7 @@ function update_script() { exit fi - NODE_VERSION="24" setup_nodejs + NODE_VERSION="26" setup_nodejs msg_info "Updating prestart script" cat </data/tracearr/prestart.sh diff --git a/ct/trailbase.sh b/ct/trailbase.sh new file mode 100644 index 00000000..bd98536e --- /dev/null +++ b/ct/trailbase.sh @@ -0,0 +1,61 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/trailbaseio/trailbase + +APP="TrailBase" +var_tags="${var_tags:-backend;database;api}" +var_cpu="${var_cpu:-1}" +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}" + +export var_admin_email="${var_admin_email:-}" +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/trailbase ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "trailbase" "trailbaseio/trailbase"; then + msg_info "Stopping TrailBase" + systemctl stop trailbase + msg_ok "Stopped TrailBase" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "trailbase" "trailbaseio/trailbase" "prebuild" "latest" "/opt/trailbase" "trailbase_v*_$(arch_resolve "x86_64" "aarch64")_linux.zip" + + msg_info "Starting TrailBase" + systemctl start trailbase + msg_ok "Started TrailBase" + 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}:4000/_/admin/${CL}" +echo -e "${INFO}${YW}Admin login: /opt/trailbase_data/.env (inside the container)${CL}" diff --git a/ct/trilium.sh b/ct/trilium.sh index fd27ca68..0ba52f7b 100644 --- a/ct/trilium.sh +++ b/ct/trilium.sh @@ -26,44 +26,54 @@ function update_script() { header_info check_container_storage check_container_resources - if [[ ! -d /opt/trilium ]]; then + if [[ ! -d /opt/trilium && ! -f /etc/systemd/system/trilium.service ]]; then msg_error "No ${APP} Installation Found!" exit fi if check_for_gh_release "Trilium" "TriliumNext/Trilium" "" "" "v"; then - if [[ -d /opt/trilium/db ]]; then - DB_PATH="/opt/trilium/db" - DB_RESTORE_PATH="/opt/trilium/db" - elif [[ -d /opt/trilium/assets/db ]]; then - DB_PATH="/opt/trilium/assets/db" - DB_RESTORE_PATH="/opt/trilium/assets/db" - else - msg_error "Database not found in either /opt/trilium/db or /opt/trilium/assets/db" - exit + # Notes live in Trilium's data directory, not in /opt/trilium: TRILIUM_DATA_DIR + # when the service sets it, otherwise ~/trilium-data or ~/.local/share/trilium-data. + DATA_DIR="$(systemctl show trilium -p Environment --value 2>/dev/null | tr ' ' '\n' | sed -n 's/^TRILIUM_DATA_DIR=//p' || true)" + if [[ -z "$DATA_DIR" ]]; then + DATA_DIR="/root/trilium-data" + [[ -d "$DATA_DIR" ]] || DATA_DIR="/root/.local/share/trilium-data" + fi + if [[ "${DATA_DIR%/}" == "/opt/trilium" || "$DATA_DIR" == /opt/trilium/* ]]; then + msg_error "Notes are stored in ${DATA_DIR}, which the update replaces. Move TRILIUM_DATA_DIR out of /opt/trilium first." + exit 1 fi + DB_BACKUP="${DATA_DIR}/backup/backup-before-update.db" msg_info "Stopping Service" systemctl stop trilium - sleep 1 msg_ok "Stopped Service" - msg_info "Backing up Database" - mkdir -p /opt/trilium_backup - cp -r "${DB_PATH}" /opt/trilium_backup/ - rm -rf /opt/trilium - msg_ok "Backed up Database" - - fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" "v" + if [[ -f "${DATA_DIR}/document.db" ]]; then + msg_info "Backing up Database" + rm -f "$DB_BACKUP" "${DB_BACKUP}-wal" "${DB_BACKUP}-shm" + # Trilium folds its -wal file into document.db when it stops; a leftover one + # is copied as well, so the backup is complete even if it was killed. + if mkdir -p "${DATA_DIR}/backup" && cp -a "${DATA_DIR}/document.db" "$DB_BACKUP" && + { [[ ! -f "${DATA_DIR}/document.db-wal" ]] || cp -a "${DATA_DIR}/document.db-wal" "${DB_BACKUP}-wal"; }; then + msg_ok "Backed up Database to ${DB_BACKUP}" + else + rm -f "$DB_BACKUP" "${DB_BACKUP}-wal" + systemctl start trilium + msg_error "Database backup failed - update not started, Trilium restarted" + exit 1 + fi + else + msg_warn "No database found in ${DATA_DIR}, nothing to back up" + fi - msg_info "Restoring Database" - mkdir -p "$(dirname "${DB_RESTORE_PATH}")" - cp -r /opt/trilium_backup/$(basename "${DB_PATH}") "${DB_RESTORE_PATH}" - rm -rf /opt/trilium_backup - msg_ok "Restored Database" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Trilium" "TriliumNext/Trilium" "prebuild" "latest" "/opt/trilium" "TriliumNotes-Server-*linux-$(arch_resolve "x64" "arm64").tar.xz" "v" || { + systemctl start trilium + msg_error "Update failed - the previous version is still installed and was restarted" + exit 1 + } msg_info "Starting Service" systemctl start trilium - sleep 1 msg_ok "Started Service" msg_ok "Updated successfully!" fi diff --git a/ct/tududi.sh b/ct/tududi.sh index 31b82f87..4b7cc87a 100644 --- a/ct/tududi.sh +++ b/ct/tududi.sh @@ -33,7 +33,14 @@ function update_script() { NODE_VERSION="22" setup_nodejs - if check_for_gh_release "tududi" "chrisvel/tududi"; then + RELEASE="" + if ! grep -qs '^DATABASE_URL=' /opt/tududi/backend/.env; then + RELEASE="v1.15.0" + msg_warn "Tududi 2.0 runs on PostgreSQL only, so this SQLite install stays on 1.15.0" + msg_warn "To move to 2.0, export in Settings > Backups and import into a new Tududi LXC" + fi + + if check_for_gh_release "tududi" "chrisvel/tududi" "${RELEASE}" "2.0 needs PostgreSQL"; then msg_info "Stopping Service" systemctl stop tududi msg_ok "Stopped Service" @@ -44,9 +51,14 @@ function update_script() { else cp /opt/tududi/.env /opt/tududi.env fi + if ! grep -q '^TUDUDI_UPLOAD_PATH=' /opt/tududi.env; then + mkdir -p /opt/tududi-uploads + [[ -d /opt/tududi/backend/uploads ]] && cp -a /opt/tududi/backend/uploads/. /opt/tududi-uploads/ + echo "TUDUDI_UPLOAD_PATH=/opt/tududi-uploads" >>/opt/tududi.env + fi msg_ok "Backed up env file" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" "tarball" "latest" "/opt/tududi" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" "tarball" "${CHECK_UPDATE_RELEASE}" "/opt/tududi" msg_info "Updating Tududi" cd /opt/tududi diff --git a/ct/tunarr.sh b/ct/tunarr.sh index 600fb980..1a103fd2 100644 --- a/ct/tunarr.sh +++ b/ct/tunarr.sh @@ -38,8 +38,6 @@ function update_script() { create_backup /root/.local/share/tunarr CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-$(arch_resolve "x64" "arm64").tar.gz" - cd /opt/tunarr - mv tunarr* tunarr restore_backup msg_info "Starting Service" @@ -53,13 +51,12 @@ function update_script() { systemctl stop tunarr msg_ok "Stopped Service" - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux$(arch_resolve "64" "arm64")-gpl-7.1.tar.xz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux$(arch_resolve "64" "arm64")-gpl-*.tar.xz" msg_info "Set ErsatzTV-ffmpeg links" chmod +x /opt/ErsatzTV-ffmpeg/bin/* - ln -sf /opt/ErsatzTV-ffmpeg/bin/ffmpeg /usr/local/bin/ffmpeg - ln -sf /opt/ErsatzTV-ffmpeg/bin/ffplay /usr/local/bin/ffplay - ln -sf /opt/ErsatzTV-ffmpeg/bin/ffprobe /usr/local/bin/ffprobe + ln -sf /opt/ErsatzTV-ffmpeg/bin/ffmpeg /usr/bin/ffmpeg + ln -sf /opt/ErsatzTV-ffmpeg/bin/ffprobe /usr/bin/ffprobe msg_ok "ffmpeg links set" msg_info "Starting Service" diff --git a/ct/twenty.sh b/ct/twenty.sh index dd70e533..20f63c7d 100644 --- a/ct/twenty.sh +++ b/ct/twenty.sh @@ -33,7 +33,7 @@ function update_script() { exit fi - NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs + NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs if check_for_gh_release "twenty" "twentyhq/twenty"; then msg_info "Stopping Services" diff --git a/ct/unsloth.sh b/ct/unsloth.sh new file mode 100644 index 00000000..1e04c045 --- /dev/null +++ b/ct/unsloth.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/unslothai/unsloth + +APP="Unsloth" +var_tags="${var_tags:-ai;llm}" +var_cpu="${var_cpu:-4}" +var_ram="${var_ram:-8192}" +var_disk="${var_disk:-40}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_gpu="${var_gpu:-yes}" +var_arm64="${var_arm64:-no}" +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/unsloth ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + msg_info "Stopping Service" + systemctl stop unsloth + msg_ok "Stopped Service" + + if [[ -d /dev/dri || -e /dev/nvidia0 || -e /dev/kfd ]]; then + ENABLE_GPU="yes" setup_hwaccel + fi + + msg_info "Updating ${APP} (Patience)" + curl -fsSL https://unsloth.ai/install.sh -o /tmp/unsloth-install.sh + export UNSLOTH_STUDIO_HOME=/opt/unsloth + export UNSLOTH_SKIP_AUTOSTART=1 + export UNSLOTH_PYTHON=3.12 + $STD sh /tmp/unsloth-install.sh + unset UNSLOTH_SKIP_AUTOSTART UNSLOTH_PYTHON + rm -f /tmp/unsloth-install.sh + msg_ok "Updated ${APP}" + + msg_info "Starting Service" + systemctl start unsloth + msg_ok "Started Service" + 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}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:8888${CL}" +echo -e "${INFO}${YW}Login credentials: ~/unsloth.creds (inside the container)${CL}" diff --git a/ct/victorialogs.sh b/ct/victorialogs.sh new file mode 100644 index 00000000..e2a246d7 --- /dev/null +++ b/ct/victorialogs.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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: Nicolas Pastorello (opastorello) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://victoriametrics.com/products/victorialogs/ + +APP="VictoriaLogs" +var_tags="${var_tags:-logging;monitoring}" +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_unprivileged="${var_unprivileged:-1}" +var_arm64="${var_arm64:-yes}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/victorialogs ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if ! grep -q -- '-syslog.listenAddr' /etc/systemd/system/victorialogs.service; then + msg_info "Enabling Syslog Ingestion" + sed -i '/^ExecStart=/ s|$| -syslog.listenAddr.tcp=:514 -syslog.listenAddr.udp=:514|' /etc/systemd/system/victorialogs.service + systemctl daemon-reload + systemctl restart victorialogs + msg_ok "Enabled Syslog Ingestion (TCP/UDP 514)" + fi + + if check_for_gh_release "victorialogs" "VictoriaMetrics/VictoriaLogs"; then + msg_info "Stopping Service" + systemctl stop victorialogs + msg_ok "Stopped Service" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "victorialogs" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/victorialogs" "victoria-logs-linux-$(arch_resolve amd64 arm64)-v*[0-9].tar.gz" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "vlutils" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/vlutils" "vlutils-linux-$(arch_resolve amd64 arm64)-v*[0-9].tar.gz" + + msg_info "Starting Service" + systemctl start victorialogs + 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}:9428${CL}" +echo -e "${INFO}${YW}Syslog ingestion (TCP/UDP):${CL}" +echo -e "${GATEWAY}${BGN}${IP}:514${CL}" diff --git a/ct/vikunja.sh b/ct/vikunja.sh index 894cbb93..f13d54d6 100644 --- a/ct/vikunja.sh +++ b/ct/vikunja.sh @@ -37,6 +37,10 @@ function update_script() { msg_warn "This requires MANUAL config changes in /etc/vikunja/config.yml." msg_warn "See: https://vikunja.io/changelog/whats-new-in-vikunja-1.0.0/#config-changes" + if [[ "${PHS_SILENT:-0}" == "1" ]]; then + msg_warn "Vikunja 1.0 config migration detected - skipping update, requires an interactive run" + exit 75 + fi read -rp "Continue with update? (y to proceed): " -t 30 CONFIRM1 || exit 254 [[ "$CONFIRM1" =~ ^[yY]$ ]] || exit 0 @@ -48,13 +52,24 @@ function update_script() { [[ "$CONFIRM2" =~ ^[yY]$ ]] || exit 0 fi + if [[ $(grep -c '^service:' /etc/vikunja/config.yml || true) -gt 1 ]]; then + msg_info "Merging duplicate service section in config.yml" + sed -i '0,/^service:/!{/^service:/d}' /etc/vikunja/config.yml + systemctl restart vikunja + msg_ok "Merged duplicate service section in config.yml" + fi + if check_for_gh_release "vikunja" "go-vikunja/vikunja"; then echo msg_warn "The package update may include config file changes." echo -e "${TAB}${YW}How do you want to handle /etc/vikunja/config.yml?${CL}" echo -e "${TAB} 1) Keep your current config" echo -e "${TAB} 2) Install the new package maintainer's config" - read -rp " Choose [1/2] (default: 1): " -t 60 CONFIG_CHOICE || CONFIG_CHOICE="1" + if [[ "${PHS_SILENT:-0}" == "1" ]]; then + CONFIG_CHOICE="1" + else + read -rp " Choose [1/2] (default: 1): " -t 60 CONFIG_CHOICE || CONFIG_CHOICE="1" + fi [[ -z "$CONFIG_CHOICE" ]] && CONFIG_CHOICE="1" if [[ "$CONFIG_CHOICE" == "2" ]]; then diff --git a/ct/vllm.sh b/ct/vllm.sh new file mode 100644 index 00000000..4038c9e3 --- /dev/null +++ b/ct/vllm.sh @@ -0,0 +1,103 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/vllm-project/vllm + +APP="vLLM" +var_tags="${var_tags:-ai;llm;inference}" +var_cpu="${var_cpu:-4}" +var_ram="${var_ram:-8192}" +var_disk="${var_disk:-20}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_gpu="${var_gpu:-yes}" +var_arm64="${var_arm64:-no}" +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/vllm ]]; then + msg_error "No ${APP} Installation Found!" + exit 1 + fi + + if check_for_gh_release "vllm" "vllm-project/vllm"; then + msg_info "Stopping Service" + systemctl stop vllm + msg_ok "Stopped Service" + + create_backup /opt/vllm/vllm.env + + VLLM_BACKEND="$(cat /opt/vllm/.backend 2>/dev/null || echo cuda)" + VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")" + msg_info "Updating vLLM (${VLLM_BACKEND}, Patience)" + case "$VLLM_BACKEND" in + rocm) + $STD uv pip install --python /opt/vllm/bin/python --upgrade vllm \ + --extra-index-url https://wheels.vllm.ai/rocm/ + ;; + cpu) + github_api_call "https://api.github.com/repos/vllm-project/vllm/releases/tags/v${VLLM_VERSION}" /tmp/vllm-release.json + VLLM_WHEEL="$(jq -r '.assets[] | select(.name | endswith("+cpu-cp38-abi3-manylinux_2_39_x86_64.whl")) | .browser_download_url' /tmp/vllm-release.json | head -n1)" + rm -f /tmp/vllm-release.json + [[ -n "$VLLM_WHEEL" ]] || { + msg_error "vLLM ${VLLM_VERSION} has no CPU wheel for x86_64" + exit 1 + } + $STD uv pip install --python /opt/vllm/bin/python "$VLLM_WHEEL" --torch-backend cpu + ;; + *) + $STD uv pip install --python /opt/vllm/bin/python --upgrade vllm + ;; + esac + msg_ok "Updated vLLM (${VLLM_BACKEND})" + + restore_backup + + msg_info "Refreshing CUDA Environment" + CUDA_ROOT="$(find /opt/vllm/lib/python3*/site-packages/nvidia -maxdepth 1 -type d -name 'cu[0-9]*' 2>/dev/null | sort -V | tail -1 || true)" + if [[ -n "$CUDA_ROOT" ]]; then + CUDART="$(find "${CUDA_ROOT}/lib" -maxdepth 1 -name 'libcudart.so.*' 2>/dev/null | sort -V | tail -1 || true)" + if [[ -n "$CUDART" && ! -e "${CUDA_ROOT}/lib/libcudart.so" ]]; then + ln -s "$(basename "$CUDART")" "${CUDA_ROOT}/lib/libcudart.so" + fi + sed -i '/^\(CUDA_HOME\|FLASHINFER_NVCC\|PATH\|LD_LIBRARY_PATH\|LIBRARY_PATH\)=/d' /opt/vllm/vllm.env + cat <>/opt/vllm/vllm.env +CUDA_HOME=${CUDA_ROOT} +FLASHINFER_NVCC=${CUDA_ROOT}/bin/nvcc +PATH=${CUDA_ROOT}/bin:/opt/vllm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +LD_LIBRARY_PATH=${CUDA_ROOT}/lib +LIBRARY_PATH=${CUDA_ROOT}/lib +EOF + fi + msg_ok "Refreshed CUDA Environment" + + msg_info "Starting Service" + systemctl start vllm + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + cleanup_lxc + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:8000/v1${CL}" diff --git a/ct/weaviate.sh b/ct/weaviate.sh new file mode 100644 index 00000000..bb6b6a90 --- /dev/null +++ b/ct/weaviate.sh @@ -0,0 +1,60 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/Incus/main" +_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/weaviate/weaviate + +APP="Weaviate" +var_tags="${var_tags:-database;vector;ai}" +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}" + +export var_api_key="${var_api_key:-}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -d /opt/weaviate ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "weaviate" "weaviate/weaviate"; then + msg_info "Stopping Weaviate" + systemctl stop weaviate + msg_ok "Stopped Weaviate" + + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "weaviate" "weaviate/weaviate" "prebuild" "latest" "/opt/weaviate" "weaviate-v*-linux-$(arch_resolve).tar.gz" + + msg_info "Starting Weaviate" + systemctl start weaviate + msg_ok "Started Weaviate" + 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}:8080${CL}" +echo -e "${INFO}${YW}API key (user admin): /opt/weaviate_data/.env (inside the container)${CL}" diff --git a/ct/whisparr-eros.sh b/ct/whisparr-eros.sh index 13f9bd59..0ea4d96b 100644 --- a/ct/whisparr-eros.sh +++ b/ct/whisparr-eros.sh @@ -57,3 +57,4 @@ msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6969${CL}" +echo -e "${INFO}${YW} Login: whisparr, password in ~/whisparr-eros.creds inside the container${CL}" diff --git a/ct/wikijs.sh b/ct/wikijs.sh index 0059c12c..0652706b 100644 --- a/ct/wikijs.sh +++ b/ct/wikijs.sh @@ -31,6 +31,39 @@ function update_script() { exit fi + if [[ -d /opt/wikijs/backend ]]; then + NODE_VERSION="26" setup_nodejs + + if check_for_gh_release "wikijs" "requarks/wiki"; then + PUPPETEER_INSTALLED=$([[ -d /opt/wikijs/backend/node_modules/puppeteer ]] && echo "true" || echo "false") + + msg_info "Stopping Service" + systemctl stop wikijs + msg_ok "Stopped Service" + + create_backup /opt/wikijs/config.yml + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" + restore_backup + + cd /opt/wikijs/backend + msg_info "Installing Wiki.js Dependencies" + $STD npm ci --omit=dev + msg_ok "Installed Wiki.js Dependencies" + if [[ "$PUPPETEER_INSTALLED" == "true" ]]; then + msg_info "Reinstalling Puppeteer" + $STD npm install --no-save --force --include=optional --no-ignore-scripts --no-audit --no-fund "puppeteer@$(sed -n 's/^installVersion: *//p' modules/extensions/puppeteer/definition.yml)" + msg_ok "Reinstalled Puppeteer" + fi + + msg_info "Starting Service" + systemctl start wikijs + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + exit + fi + + msg_warn "Wiki.js 3 cannot update a 2.x install in place. Export it under Administration > Utilities > Export for Wiki.js 3.x and import it into a new Wiki.js 3 container." NODE_VERSION="26" NODE_MODULE="yarn,node-gyp" setup_nodejs if check_for_gh_release "wikijs" "requarks/wiki-v2"; then diff --git a/ct/wireguard.sh b/ct/wireguard.sh index 85d0b7cf..4d9513b8 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -20,10 +20,10 @@ fi if [[ "${var_os:-}" == "alpine" ]]; then var_ram="${var_ram:-256}" - var_disk="${var_disk:-1}" + var_disk="${var_disk:-2}" var_version="${var_version:-3.24}" else - var_ram="${var_ram:-512}" + var_ram="${var_ram:-1024}" var_disk="${var_disk:-4}" var_version="${var_version:-13}" fi diff --git a/ct/writefreely.sh b/ct/writefreely.sh index d258346d..4b556034 100644 --- a/ct/writefreely.sh +++ b/ct/writefreely.sh @@ -46,7 +46,7 @@ function update_script() { msg_info "Running Post-Update Tasks" cd /opt/writefreely $STD ./writefreely db migrate - ln -s /opt/writefreely/writefreely /usr/local/bin/writefreely + ln -sf /opt/writefreely/writefreely /usr/local/bin/writefreely msg_ok "Ran Post-Update Tasks" msg_info "Starting Services" diff --git a/ct/yuvomi.sh b/ct/yuvomi.sh index 85bd3a97..dd76b427 100644 --- a/ct/yuvomi.sh +++ b/ct/yuvomi.sh @@ -39,7 +39,7 @@ function update_script() { create_backup /opt/yuvomi/data /opt/yuvomi/.env - CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yuvomi" "ulsklyc/yuvomi" "tarball" + CLEAN_INSTALL=1 fetch_and_deploy_gh_release "yuvomi" "ulsklyc/yuvomi" "prebuild" "latest" "/opt/yuvomi" "yuvomi-*-dist.tar.gz" NODE_VERSION="24" setup_nodejs msg_info "Installing Node.js Dependencies" diff --git a/ct/zerobyte.sh b/ct/zerobyte.sh index f4eac179..e22730e7 100644 --- a/ct/zerobyte.sh +++ b/ct/zerobyte.sh @@ -54,6 +54,7 @@ function update_script() { cd /opt/zerobyte $STD bun install $STD node ./node_modules/vite/bin/vite.js build + $STD bun build apps/agent/src/index.ts --outfile .output/agent/index.mjs --target bun msg_ok "Built Zerobyte" msg_info "Starting Service" diff --git a/ct/zipline.sh b/ct/zipline.sh index ec4c90e6..68d5ffd8 100644 --- a/ct/zipline.sh +++ b/ct/zipline.sh @@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_ APP="Zipline" var_tags="${var_tags:-file;sharing}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-2048}" +var_ram="${var_ram:-3072}" var_disk="${var_disk:-5}" var_os="${var_os:-debian}" var_version="${var_version:-13}" diff --git a/install/9router-install.sh b/install/9router-install.sh new file mode 100644 index 00000000..1813b247 --- /dev/null +++ b/install/9router-install.sh @@ -0,0 +1,63 @@ +#!/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/decolua/9router + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +NODE_VERSION="22" setup_nodejs +setup_ffmpeg + +msg_info "Installing 9Router" +$STD npm install -g --ignore-scripts "9router@${var_appversion:-latest}" +msg_ok "Installed 9Router" + +msg_info "Configuring 9Router" +mkdir -p /opt/9router_data +cat </opt/9router_data/.env +DATA_DIR=/opt/9router_data +PORT=20128 +HOSTNAME=0.0.0.0 +NODE_ENV=production +NEXT_TELEMETRY_DISABLED=1 +BASE_URL=http://localhost:20128 +INITIAL_PASSWORD=$(random_password) +JWT_SECRET=$(openssl rand -hex 32) +API_KEY_SECRET=$(openssl rand -hex 32) +MACHINE_ID_SALT=$(openssl rand -hex 16) +EOF +chmod 600 /opt/9router_data/.env +msg_ok "Configured 9Router" + +msg_info "Creating Service" +cat </etc/systemd/system/9router.service +[Unit] +Description=9Router +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/usr/lib/node_modules/9router/app +EnvironmentFile=/opt/9router_data/.env +ExecStart=/usr/bin/node /usr/lib/node_modules/9router/app/custom-server.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now 9router +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/adventurelog-install.sh b/install/adventurelog-install.sh index 751317be..e1716622 100644 --- a/install/adventurelog-install.sh +++ b/install/adventurelog-install.sh @@ -20,6 +20,9 @@ $STD apt install -y \ git \ memcached \ libmemcached-tools +# Debian's memcached also listens on ::1 and does not start when IPv6 is disabled +sed -i '/^-l ::1$/d' /etc/memcached.conf +systemctl restart memcached msg_ok "Installed Dependencies" PYTHON_VERSION="3.13" setup_uv @@ -62,7 +65,6 @@ $STD uv venv --clear /opt/adventurelog/backend/server/.venv $STD /opt/adventurelog/backend/server/.venv/bin/python -m ensurepip --upgrade $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install --upgrade pip $STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install -r requirements.txt -$STD /opt/adventurelog/backend/server/.venv/bin/python -m pip install 'djangorestframework<3.15' $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage collectstatic --noinput $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage migrate $STD /opt/adventurelog/backend/server/.venv/bin/python -m manage download-countries diff --git a/install/aiostreams-install.sh b/install/aiostreams-install.sh new file mode 100755 index 00000000..390cccb7 --- /dev/null +++ b/install/aiostreams-install.sh @@ -0,0 +1,97 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MrNRod +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Viren070/AIOStreams | Docs: https://docs.aiostreams.viren070.me/ + +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 \ + ffmpeg +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "aiostreams" "Viren070/AIOStreams" "tarball" "latest" "" "" "v" +AIOSTREAMS_TAG="v$(cat ~/.aiostreams)" + +PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/aiostreams/package.json) +NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-11.0.8}" setup_nodejs + +msg_info "Configuring Application" +mkdir -p /opt/aiostreams_data +cp /opt/aiostreams/.env.sample /opt/aiostreams_data/.env +SECRET_KEY=$(openssl rand -hex 32) +sed -i \ + -e "s|^BASE_URL=.*|BASE_URL=http://${LOCAL_IP}:3000|" \ + -e "s|^SECRET_KEY=.*|SECRET_KEY=${SECRET_KEY}|" \ + -e "s|^# PORT=3000|PORT=3000|" \ + -e "s|^DATABASE_URI=sqlite://./data/db.sqlite|DATABASE_URI=sqlite:///opt/aiostreams_data/db.sqlite|" \ + /opt/aiostreams_data/.env +msg_ok "Configured Application" + +msg_info "Building AIOStreams (Patience)" +cd /opt/aiostreams +export NODE_OPTIONS="--max-old-space-size=3072" +$STD pnpm install --frozen-lockfile +$STD pnpm run build +unset NODE_OPTIONS +cp -r /opt/aiostreams/packages/server/src/static /opt/aiostreams/packages/server/dist/static +msg_ok "Built AIOStreams" + +msg_info "Generating Version Metadata" +mkdir -p /opt/aiostreams/resources +AIOSTREAMS_VERSION=$(jq -r '.version' /opt/aiostreams/package.json) +AIOSTREAMS_DESC=$(jq -r '.description' /opt/aiostreams/package.json) +AIOSTREAMS_COMMIT_INFO=$(curl -fsSL "https://api.github.com/repos/Viren070/AIOStreams/commits/${AIOSTREAMS_TAG}" 2>/dev/null || true) +AIOSTREAMS_COMMIT=$(jq -r '.sha[0:8] // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") +AIOSTREAMS_COMMIT_TIME=$(jq -r '.commit.committer.date // empty' <<<"${AIOSTREAMS_COMMIT_INFO}") +cat </opt/aiostreams/resources/metadata.json +{ + "version": "${AIOSTREAMS_VERSION}", + "description": $(jq -Rn --arg d "${AIOSTREAMS_DESC}" '$d'), + "tag": "${AIOSTREAMS_TAG}", + "channel": "stable", + "commitHash": "${AIOSTREAMS_COMMIT:-unknown}", + "buildTime": "$(date -u +%Y-%m-%dT%H:%M:%S.000Z)", + "commitTime": "${AIOSTREAMS_COMMIT_TIME:-$(date -u +%Y-%m-%dT%H:%M:%S.000Z)}" +} +EOF +msg_ok "Generated Version Metadata" + +msg_info "Creating Service" +NODE_HEAP_MB=$(($(free -m | awk '/^Mem:/ {print $2}') / 2)) +cat </etc/systemd/system/aiostreams.service +[Unit] +Description=AIOStreams +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/aiostreams +EnvironmentFile=/opt/aiostreams_data/.env +Environment="NODE_ENV=production" +Environment="NODE_OPTIONS=--max-old-space-size=${NODE_HEAP_MB} --max-semi-space-size=8 --expose-gc" +Environment="MALLOC_ARENA_MAX=2" +ExecStart=/usr/bin/node /opt/aiostreams/packages/server/dist/server.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now aiostreams +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/airconnect-install.sh b/install/airconnect-install.sh new file mode 100644 index 00000000..ebae621a --- /dev/null +++ b/install/airconnect-install.sh @@ -0,0 +1,67 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Chris Moriarty (cwmoriarty) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/philippe44/AirConnect + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "airconnect" "philippe44/AirConnect" "prebuild" "latest" "/opt/airconnect" "AirConnect-*.zip" + +msg_info "Configuring AirConnect" +chmod +x /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) +ln -sf /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/airupnp +ln -sf /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast +find /opt/airconnect -maxdepth 1 -type f ! -name "air*linux-$(arch_resolve x86_64 aarch64)*" ! -name "airupnp" ! -name "aircast" ! -name "*.xml" -delete +msg_ok "Configured AirConnect" + +msg_info "Creating Services" +cat </etc/systemd/system/airupnp.service +[Unit] +Description=AirUPnP bridge +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/airconnect +ExecStart=/opt/airconnect/airupnp -l 1000:2000 -Z -x /opt/airconnect/airupnp.xml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now airupnp + +cat </etc/systemd/system/aircast.service +[Unit] +Description=AirCast bridge +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/airconnect +ExecStart=/opt/airconnect/aircast -Z -x /opt/airconnect/aircast.xml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now aircast +msg_ok "Created Services" + +motd_ssh +customize +cleanup_lxc diff --git a/install/amazonlinux-install.sh b/install/amazonlinux-install.sh new file mode 100644 index 00000000..332885ca --- /dev/null +++ b/install/amazonlinux-install.sh @@ -0,0 +1,22 @@ +#!/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://aws.amazon.com/linux/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Base Dependencies" +$STD dnf install -y hostname procps-ng +msg_ok "Installed Base Dependencies" + +motd_ssh +customize +cleanup_lxc diff --git a/install/anchor-install.sh b/install/anchor-install.sh index e1407cfa..d75bdec6 100644 --- a/install/anchor-install.sh +++ b/install/anchor-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs +NODE_VERSION="26" NODE_MODULE="pnpm" setup_nodejs PG_VERSION="17" setup_postgresql PG_DB_NAME="anchor" PG_DB_USER="anchor" setup_postgresql_db diff --git a/install/archivebox-install.sh b/install/archivebox-install.sh index 31c83658..138a1cb8 100644 --- a/install/archivebox-install.sh +++ b/install/archivebox-install.sh @@ -23,6 +23,7 @@ $STD apt install -y \ procps \ dnsutils \ ripgrep \ + libatomic1 \ chromium msg_ok "Installed Dependencies" @@ -48,6 +49,7 @@ chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local} chmod -R 755 /opt/archivebox/data $STD uv pip install archivebox --system --break-system-packages cd /opt/archivebox/data +ADMIN_PASS=$(random_password 20) expect <~/archivebox.creds msg_ok "Installed ArchiveBox" msg_info "Creating Service" diff --git a/install/argus-install.sh b/install/argus-install.sh index 06ab10a7..3d8ee478 100644 --- a/install/argus-install.sh +++ b/install/argus-install.sh @@ -57,7 +57,7 @@ service: url: community-scripts/ProxmoxVE use_prerelease: false dashboard: - icon: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/misc/images/logo.png + icon: https://raw.githubusercontent.com/community-scripts/ProxmoxVE/refs/heads/main/.github/assets/logo.png icon_link_to: https://community-scripts.org/ web_url: https://github.com/community-scripts/ProxmoxVE/releases EOF diff --git a/install/aurral-install.sh b/install/aurral-install.sh index b780ef62..1f23e494 100644 --- a/install/aurral-install.sh +++ b/install/aurral-install.sh @@ -16,13 +16,14 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ build-essential \ + git \ python3 \ ffmpeg \ fontconfig \ fonts-dejavu-core msg_ok "Installed Dependencies" -NODE_VERSION="26" setup_nodejs +NODE_VERSION="26" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "yt-dlp" fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball" @@ -32,12 +33,8 @@ cd /opt/aurral export VITE_APP_VERSION="$(cat ~/.aurral)" export VITE_GITHUB_REPO="lklynet/aurral" export VITE_RELEASE_CHANNEL="stable" -# aurral's .npmrc sets engine-strict=true and pins an exact node patch (e.g. 26.8.x), -# which NodeSource can't match since it only ships the latest patch per major. -export npm_config_engine_strict=false -$STD npm ci --workspace frontend --include-workspace-root=false -$STD npm run build --workspace frontend -$STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false +$STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend +$STD pnpm --filter aurral-frontend run build msg_ok "Built Aurral" msg_info "Creating Service" @@ -58,7 +55,7 @@ Type=simple User=root WorkingDirectory=/opt/aurral EnvironmentFile=/opt/aurral/aurral.env -ExecStart=/usr/bin/node backend/server.js +ExecStart=/usr/bin/node backend/server.ts Restart=on-failure RestartSec=5 diff --git a/install/authelia-install.sh b/install/authelia-install.sh index dbf8a9fc..1cfcf027 100644 --- a/install/authelia-install.sh +++ b/install/authelia-install.sh @@ -63,12 +63,19 @@ else fi echo "$AUTHELIA_URL" >/etc/authelia/.authelia_url +AUTHELIA_PASS=$(random_password 20) +AUTHELIA_HASH=$(authelia crypto hash generate argon2 --password "$AUTHELIA_PASS" | awk '/Digest:/{print $2}') +{ + echo "Authelia Credentials" + echo "Username: authelia" + echo "Password: ${AUTHELIA_PASS}" +} >~/authelia.creds cat </etc/authelia/users.yml users: authelia: disabled: false displayname: "Authelia Admin" - password: "\$argon2id\$v=19\$m=65536,t=3,p=4\$ZBopMzXrzhHXPEZxRDVT2w\$SxWm96DwhOsZyn34DLocwQEIb4kCDsk632PuiMdZnig" + password: "${AUTHELIA_HASH}" groups: [] EOF cat </etc/authelia/configuration.yml diff --git a/install/blinko-install.sh b/install/blinko-install.sh new file mode 100644 index 00000000..6af5c0f8 --- /dev/null +++ b/install/blinko-install.sh @@ -0,0 +1,71 @@ +#!/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/blinkospace/blinko + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs +PG_VERSION="17" setup_postgresql +PG_DB_NAME="blinko" PG_DB_USER="blinko" setup_postgresql_db + +fetch_and_deploy_gh_release "blinko" "blinkospace/blinko" "tarball" + +msg_info "Building Blinko" +cd /opt/blinko +$STD bun install +$STD bunx prisma generate +$STD bun run build:web +$STD bun run build:seed +# The server resolves its web root as ../server/public and lute/vditor next to its own bundle +mv dist/public server/public +cp -r server/lute.min.js server/vditor dist/ +msg_ok "Built Blinko" + +msg_info "Configuring Blinko" +mkdir -p /opt/blinko_data/storage +# Blinko keeps uploads, the vector index and backups in .blinko under its working directory +ln -s /opt/blinko_data/storage /opt/blinko/.blinko +cat </opt/blinko_data/.env +NODE_ENV=production +DATABASE_URL=postgresql://blinko:${PG_DB_PASS}@localhost:5432/blinko +TRUST_PROXY=1 +EOF +chmod 600 /opt/blinko_data/.env +msg_ok "Configured Blinko" + +msg_info "Creating Service" +cat </etc/systemd/system/blinko.service +[Unit] +Description=Blinko +After=network.target postgresql.service +Requires=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/blinko +EnvironmentFile=/opt/blinko_data/.env +ExecStartPre=/opt/blinko/node_modules/.bin/prisma migrate deploy +ExecStartPre=/usr/bin/node /opt/blinko/dist/seed.js +ExecStart=/usr/bin/node /opt/blinko/dist/index.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now blinko +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/bugsink-install.sh b/install/bugsink-install.sh new file mode 100644 index 00000000..8f758f9b --- /dev/null +++ b/install/bugsink-install.sh @@ -0,0 +1,86 @@ +#!/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/bugsink/bugsink + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +PYTHON_VERSION="3.12" setup_uv + +msg_info "Installing Bugsink" +BUGSINK_VERSION="${var_appversion:-$(get_latest_github_release "bugsink/bugsink")}" +$STD uv venv --python 3.12 /opt/bugsink/.venv +$STD uv pip install --python /opt/bugsink/.venv/bin/python "bugsink==${BUGSINK_VERSION}" +cat <~/.bugsink +${BUGSINK_VERSION} +EOF +msg_ok "Installed Bugsink" + +msg_info "Configuring Bugsink" +ADMIN_EMAIL="${var_admin_email:-admin@localhost}" +ADMIN_PASS="${var_admin_pass:-$(random_password)}" +mkdir -p /opt/bugsink_data +cd /opt/bugsink_data +$STD /opt/bugsink/.venv/bin/bugsink-create-conf --template=singleserver --host="${LOCAL_IP}" --base-dir=/opt/bugsink_data +sed -i \ + -e "s|\"BASE_URL\": \"https://${LOCAL_IP}\"|\"BASE_URL\": \"http://${LOCAL_IP}:8000\"|" \ + -e 's|^SESSION_COOKIE_SECURE = True|SESSION_COOKIE_SECURE = False|' \ + -e 's|^CSRF_COOKIE_SECURE = True|CSRF_COOKIE_SECURE = False|' \ + -e 's|^USE_X_REAL_IP = True|USE_X_REAL_IP = False|' \ + /opt/bugsink_data/bugsink_conf.py +$STD /opt/bugsink/.venv/bin/bugsink-manage migrate +$STD /opt/bugsink/.venv/bin/bugsink-manage migrate snappea --database=snappea +DJANGO_SUPERUSER_PASSWORD="$ADMIN_PASS" $STD /opt/bugsink/.venv/bin/bugsink-manage createsuperuser --noinput --username "$ADMIN_EMAIL" --email "$ADMIN_EMAIL" +cat </opt/bugsink_data/.env +BUGSINK_ADMIN_EMAIL=${ADMIN_EMAIL} +BUGSINK_ADMIN_PASSWORD=${ADMIN_PASS} +EOF +chmod 600 /opt/bugsink_data/.env /opt/bugsink_data/bugsink_conf.py +msg_ok "Configured Bugsink" + +msg_info "Creating Services" +cat </etc/systemd/system/bugsink.service +[Unit] +Description=Bugsink +After=network.target + +[Service] +Type=notify +WorkingDirectory=/opt/bugsink_data +Environment=PYTHONUNBUFFERED=1 +ExecStart=/opt/bugsink/.venv/bin/gunicorn --bind=0.0.0.0:8000 --workers=4 --max-requests=1000 --max-requests-jitter=100 --access-logfile - bugsink.wsgi +Restart=always + +[Install] +WantedBy=multi-user.target +EOF +cat </etc/systemd/system/bugsink-snappea.service +[Unit] +Description=Bugsink Snappea +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/bugsink_data +Environment=PYTHONUNBUFFERED=1 +ExecStart=/opt/bugsink/.venv/bin/bugsink-runsnappea +Restart=always +RuntimeMaxSec=1d + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now bugsink bugsink-snappea +msg_ok "Created Services" + +motd_ssh +customize +cleanup_lxc diff --git a/install/bulwark-install.sh b/install/bulwark-install.sh new file mode 100644 index 00000000..2e5603e4 --- /dev/null +++ b/install/bulwark-install.sh @@ -0,0 +1,60 @@ +#!/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/bulwarkmail/webmail + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +NODE_VERSION="24" setup_nodejs + +fetch_and_deploy_gh_release "bulwark" "bulwarkmail/webmail" "prebuild" "latest" "/opt/bulwark" "bulwark-standalone-*-linux-$(arch_resolve).tar.gz" + +msg_info "Configuring Bulwark" +mkdir -p /opt/bulwark_data +cat </opt/bulwark_data/.env +NODE_ENV=production +HOSTNAME=0.0.0.0 +PORT=3000 +JMAP_SERVER_URL=${var_jmap_url:-} +COOKIE_SECURE=false +ADMIN_CONFIG_DIR=/opt/bulwark_data/admin +ADMIN_STATE_DIR=/opt/bulwark_data/admin-state +SETTINGS_DATA_DIR=/opt/bulwark_data/settings +PLUGIN_SECRETS_DIR=/opt/bulwark_data/plugin-secrets +TELEMETRY_DATA_DIR=/opt/bulwark_data/telemetry +VERSION_CHECK_DATA_DIR=/opt/bulwark_data/version-check +EOF +chmod 600 /opt/bulwark_data/.env +msg_ok "Configured Bulwark" + +msg_info "Creating Service" +cat </etc/systemd/system/bulwark.service +[Unit] +Description=Bulwark Webmail +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/bulwark +EnvironmentFile=/opt/bulwark_data/.env +ExecStart=/usr/bin/node /opt/bulwark/server.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now bulwark +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/caddy-install.sh b/install/caddy-install.sh index 1f20e767..233abe0d 100644 --- a/install/caddy-install.sh +++ b/install/caddy-install.sh @@ -23,10 +23,15 @@ setup_deb_based() { setup_go fetch_and_deploy_gh_release "xcaddy" "caddyserver/xcaddy" "binary" - msg_info "Setup xCaddy" $STD apt install -y git - $STD xcaddy build - msg_ok "Setup xCaddy" + if (($(awk '/^MemTotal:/ {print int($2 / 1024)}' /proc/meminfo) < 1900)); then + msg_warn "xCaddy is installed; its test build was skipped because linking Caddy needs about 2 GB RAM" + else + msg_info "Setup xCaddy" + cd /opt + $STD xcaddy build + msg_ok "Setup xCaddy" + fi fi } @@ -69,10 +74,14 @@ EOF GO_VERSION="$(curl -fsSL https://go.dev/VERSION?m=text | head -1 | cut -c3-)" setup_go fetch_and_deploy_gh_release "xcaddy" "caddyserver/xcaddy" "prebuild" "latest" "/opt/xcaddy" "xcaddy_*_linux_$(arch_resolve).tar.gz" ln -sf /opt/xcaddy/xcaddy /usr/local/bin/xcaddy - msg_info "Setup xCaddy" - cd /opt - $STD xcaddy build - msg_ok "Setup xCaddy" + if (($(awk '/^MemTotal:/ {print int($2 / 1024)}' /proc/meminfo) < 1900)); then + msg_warn "xCaddy is installed; its test build was skipped because linking Caddy needs about 2 GB RAM" + else + msg_info "Setup xCaddy" + cd /opt + $STD xcaddy build + msg_ok "Setup xCaddy" + fi fi msg_info "Enabling Caddy Service" diff --git a/install/changedetection-install.sh b/install/changedetection-install.sh index 71b321a3..f2e7a713 100644 --- a/install/changedetection-install.sh +++ b/install/changedetection-install.sh @@ -13,32 +13,13 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies (Patience)" +msg_info "Installing Dependencies" $STD apt install -y \ - git \ build-essential \ - dumb-init \ - libjpeg-dev \ - libatk-bridge2.0-0 \ - libasound2 \ - libatk1.0-0 \ - libcairo2 \ - libcups2 \ - libdbus-1-3 \ - libexpat1 \ - libgbm-dev \ - libgbm1 \ - libgdk-pixbuf-2.0-0 \ - libglib2.0-0 \ - libgtk-3-0 \ - libnspr4 \ - libnss3 \ - libpango-1.0-0 \ - libpangocairo-1.0-0 \ qpdf \ - xdg-utils \ xvfb \ - ca-certificates \ + xauth \ + python3 \ locales \ poppler-utils \ file @@ -54,35 +35,25 @@ msg_ok "Generated Locales" PYTHON_VERSION="3.13" setup_uv -NODE_VERSION="24" setup_nodejs - msg_info "Installing Change Detection" mkdir -p /opt/changedetection $STD uv venv --clear /opt/changedetection/.venv -$STD /opt/changedetection/.venv/bin/python -m ensurepip --upgrade -$STD /opt/changedetection/.venv/bin/python -m pip install --upgrade pip -$STD /opt/changedetection/.venv/bin/python -m pip install changedetection.io +$STD uv pip install --python /opt/changedetection/.venv/bin/python changedetection.io playwright cat </opt/changedetection/.env -WEBDRIVER_URL=http://127.0.0.1:4444/wd/hub -PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome?launch=eyJkZWZhdWx0Vmlld3BvcnQiOnsiaGVpZ2h0Ijo3MjAsIndpZHRoIjoxMjgwfSwiaGVhZGxlc3MiOmZhbHNlLCJzdGVhbHRoIjp0cnVlfQ==&blockAds=true +PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true&--window-size=1920,1080 LC_ALL=en_US.UTF-8 EOF msg_ok "Installed Change Detection" -msg_info "Installing Browserless & Playwright" -mkdir /opt/browserless -$STD /opt/changedetection/.venv/bin/python -m pip install playwright -$STD git clone https://github.com/browserless/chrome /opt/browserless -$STD npm ci --include=optional --include=dev --prefix /opt/browserless -$STD npm install --save-exact playwright-core@1.62.1 --prefix /opt/browserless -$STD /opt/browserless/node_modules/playwright-core/cli.js install --with-deps &>/dev/null -$STD /opt/browserless/node_modules/playwright-core/cli.js install --force chrome &>/dev/null -$STD /opt/browserless/node_modules/playwright-core/cli.js install chromium firefox webkit &>/dev/null -$STD /opt/browserless/node_modules/playwright-core/cli.js install --force msedge -$STD npm run build --prefix /opt/browserless -$STD npm run build:function --prefix /opt/browserless -$STD npm prune production --prefix /opt/browserless -msg_ok "Installed Browserless & Playwright" +msg_info "Installing Chrome" +setup_deb822_repo \ + "google-chrome" \ + "https://dl.google.com/linux/linux_signing_key.pub" \ + "https://dl.google.com/linux/chrome/deb/" \ + "stable" +$STD apt install -y google-chrome-stable +rm -f /etc/apt/sources.list.d/google-chrome.list +msg_ok "Installed Chrome" msg_info "Installing Font Packages" $STD apt install -y \ @@ -99,57 +70,49 @@ $STD apt install -y \ fonts-wqy-zenhei msg_ok "Installed Font Packages" -msg_info "Installing X11 Packages" -$STD apt install -y \ - libx11-6 \ - libx11-xcb1 \ - libxcb1 \ - libxcomposite1 \ - libxcursor1 \ - libxdamage1 \ - libxext6 \ - libxfixes3 \ - libxi6 \ - libxrandr2 \ - libxrender1 \ - libxss1 \ - libxtst6 -msg_ok "Installed X11 Packages" +fetch_and_deploy_gh_release "sockpuppetbrowser" "dgtlmoon/sockpuppetbrowser" "tarball" + +msg_info "Setting up SockPuppetBrowser" +useradd -r -m -s /usr/sbin/nologin chrome +$STD uv venv --clear --python /usr/bin/python3 /opt/sockpuppetbrowser/.venv +$STD uv pip install --python /opt/sockpuppetbrowser/.venv/bin/python -r /opt/sockpuppetbrowser/requirements.txt +msg_ok "Set up SockPuppetBrowser" msg_info "Creating Services" -cat </etc/systemd/system/changedetection.service +cat </etc/systemd/system/sockpuppetbrowser.service [Unit] -Description=Change Detection -After=network-online.target -After=network.target browserless.service -Wants=browserless.service +Description=SockPuppetBrowser +After=network.target [Service] -Type=simple -EnvironmentFile=/opt/changedetection/.env -WorkingDirectory=/opt/changedetection -ExecStart=/opt/changedetection/.venv/bin/changedetection.io -d /opt/changedetection -p 5000 +User=chrome +Group=chrome +WorkingDirectory=/opt/sockpuppetbrowser/backend +Environment=CHROME_BIN=/usr/bin/google-chrome-stable +Environment=LOG_LEVEL=INFO +ExecStart=/opt/sockpuppetbrowser/.venv/bin/python server.py --host 127.0.0.1 --port 3000 --sport 8080 +Restart=on-failure [Install] WantedBy=multi-user.target EOF -cat </etc/systemd/system/browserless.service +cat </etc/systemd/system/changedetection.service [Unit] -Description=browserless service -After=network.target +Description=Change Detection +After=network-online.target sockpuppetbrowser.service +Wants=sockpuppetbrowser.service [Service] -Environment=CONNECTION_TIMEOUT=60000 -WorkingDirectory=/opt/browserless -ExecStart=/opt/browserless/scripts/start.sh -SyslogIdentifier=browserless +Type=simple +EnvironmentFile=/opt/changedetection/.env +WorkingDirectory=/opt/changedetection +ExecStart=/opt/changedetection/.venv/bin/changedetection.io -d /opt/changedetection -p 5000 [Install] -WantedBy=default.target +WantedBy=multi-user.target EOF -systemctl enable -q --now browserless -systemctl enable -q --now changedetection +systemctl enable -q --now sockpuppetbrowser changedetection msg_ok "Created Services" motd_ssh diff --git a/install/chartdb-install.sh b/install/chartdb-install.sh new file mode 100644 index 00000000..fc63b3ff --- /dev/null +++ b/install/chartdb-install.sh @@ -0,0 +1,75 @@ +#!/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/chartdb/chartdb + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +NODE_VERSION="24" setup_nodejs +fetch_and_deploy_gh_release "chartdb" "chartdb/chartdb" "tarball" + +msg_info "Building ChartDB" +cd /opt/chartdb +$STD npm ci +NODE_OPTIONS="--max-old-space-size=4096" $STD npm run build +rm -rf /opt/chartdb/node_modules +msg_ok "Built ChartDB" + +msg_info "Configuring ChartDB" +mkdir -p /opt/chartdb_data +cat <<'EOF' >/opt/chartdb_data/config.js +window.env = { + DISABLE_ANALYTICS: "true", + // OPENAI_API_KEY: "", + // OPENAI_API_ENDPOINT: "https://ollama.example.com/v1", + // LLM_MODEL_NAME: "qwen2.5-coder:7b", +}; +EOF +create_self_signed_cert "chartdb" +# HTTPS because the AI export (crypto.subtle) and the copy buttons need a secure context +cat <<'EOF' >/etc/nginx/sites-available/chartdb +server { + listen 80 default_server; + server_name _; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl default_server; + http2 on; + server_name _; + + ssl_certificate /etc/ssl/chartdb/chartdb.crt; + ssl_certificate_key /etc/ssl/chartdb/chartdb.key; + + root /opt/chartdb/dist; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } + + location = /config.js { + alias /opt/chartdb_data/config.js; + add_header Cache-Control "no-cache"; + } +} +EOF +nginx_enable_site "chartdb" +msg_ok "Configured ChartDB" + +motd_ssh +customize +cleanup_lxc diff --git a/install/chatto-install.sh b/install/chatto-install.sh new file mode 100644 index 00000000..ae49e32d --- /dev/null +++ b/install/chatto-install.sh @@ -0,0 +1,54 @@ +#!/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/chattocorp/chatto + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "chatto" "chattocorp/chatto" "prebuild" "latest" "/opt/chatto" "chatto_Linux_$(arch_resolve x86_64 arm64).tar.gz" +chmod +x /opt/chatto/chatto + +msg_info "Configuring Chatto" +mkdir -p /opt/chatto_data +cd /opt/chatto +$STD ./chatto init +mv /opt/chatto/chatto.toml /opt/chatto_data/chatto.toml +sed -i \ + -e "/^\[webserver\]/,/^\[/ s|^url = .*|url = 'http://${LOCAL_IP}:4000'|" \ + -e "/^\[nats.embedded\]/,/^\[/ s|^data_dir = .*|data_dir = '/opt/chatto_data/data'|" \ + -e '/^# \[operator_api\]$/,/^$/ { s|^# \[operator_api\]$|[operator_api]|; s|^# enabled = false$|enabled = true| }' \ + /opt/chatto_data/chatto.toml +msg_ok "Configured Chatto" + +msg_info "Creating Service" +cat </etc/systemd/system/chatto.service +[Unit] +Description=Chatto +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/chatto +ExecStart=/opt/chatto/chatto run -c /opt/chatto_data/chatto.toml +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now chatto +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/chroma-install.sh b/install/chroma-install.sh new file mode 100644 index 00000000..8797979c --- /dev/null +++ b/install/chroma-install.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/chroma-core/chroma + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +PYTHON_VERSION="3.12" setup_uv + +CHROMA_VERSION="${var_appversion:-$(curl -fsSL https://pypi.org/pypi/chromadb/json | jq -r '.info.version')}" +msg_info "Installing Chroma ${CHROMA_VERSION}" +$STD uv venv --python 3.12 /opt/chroma/.venv +$STD uv pip install --python /opt/chroma/.venv/bin/python "chromadb==${CHROMA_VERSION}" +cat <~/.chroma +${CHROMA_VERSION} +EOF +msg_ok "Installed Chroma ${CHROMA_VERSION}" + +msg_info "Configuring Chroma" +mkdir -p /opt/chroma_data +cat </opt/chroma_data/config.yaml +persist_path: "/opt/chroma_data" +listen_address: "0.0.0.0" +port: 8000 +EOF +msg_ok "Configured Chroma" + +msg_info "Creating Service" +cat </etc/systemd/system/chroma.service +[Unit] +Description=Chroma +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/chroma_data +ExecStart=/opt/chroma/.venv/bin/chroma run /opt/chroma_data/config.yaml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now chroma +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/cinephage-install.sh b/install/cinephage-install.sh index 1c23e1ef..8d805a6b 100644 --- a/install/cinephage-install.sh +++ b/install/cinephage-install.sh @@ -24,7 +24,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" setup_ffmpeg -NODE_VERSION="24" setup_nodejs +NODE_VERSION="26" setup_nodejs fetch_and_deploy_gh_release "cinephage" "MoldyTaint/Cinephage" "tarball" msg_info "Building Cinephage" @@ -35,7 +35,7 @@ $STD npm prune --omit=dev msg_ok "Built Cinephage" msg_info "Installing Camoufox" -$STD /opt/cinephage/node_modules/.bin/camoufox-js fetch +$STD /opt/cinephage/node_modules/.bin/camoufox fetch msg_ok "Installed Camoufox" msg_info "Configuring Cinephage" diff --git a/install/colanode-install.sh b/install/colanode-install.sh new file mode 100644 index 00000000..109656f0 --- /dev/null +++ b/install/colanode-install.sh @@ -0,0 +1,122 @@ +#!/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://colanode.com/ + +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 \ + redis-server \ + nginx +msg_ok "Installed Dependencies" + +PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql +PG_DB_NAME="colanode_db" PG_DB_USER="colanode" PG_DB_EXTENSIONS="vector" setup_postgresql_db +NODE_VERSION="22" setup_nodejs + +fetch_and_deploy_gh_release "colanode" "colanode/colanode" "tarball" + +msg_info "Building Application" +cd /opt/colanode +export NODE_OPTIONS="--max-old-space-size=4096" +$STD npm install +$STD npm run build -w @colanode/core +$STD npm run build -w @colanode/crdt +$STD npm run build -w @colanode/server +$STD npm run build -w @colanode/client +$STD npm run build -w @colanode/ui +$STD npm run build -w @colanode/web +$STD npm prune --production +unset NODE_OPTIONS +msg_ok "Built Application" + +msg_info "Configuring Application" +mkdir -p /var/lib/colanode/storage /var/www/colanode +cp -r /opt/colanode/apps/web/dist/. /var/www/colanode/ +cat </opt/colanode/.env +POSTGRES_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME} +REDIS_URL=redis://127.0.0.1:6379 +NODE_ENV=production +EOF +msg_ok "Configured Application" + +msg_info "Configuring Nginx" +create_self_signed_cert "colanode" +# Make cert available for browser import (required for Service Worker to work) +cp /etc/ssl/colanode/colanode.crt /var/www/colanode/colanode.crt +cat </etc/nginx/sites-available/colanode +server { + listen 4000 ssl; + server_name _; + root /var/www/colanode; + index index.html; + + ssl_certificate /etc/ssl/colanode/colanode.crt; + ssl_certificate_key /etc/ssl/colanode/colanode.key; + + # Required for SharedArrayBuffer / OPFS SQLite (WASM) + add_header Cross-Origin-Opener-Policy "same-origin" always; + add_header Cross-Origin-Embedder-Policy "require-corp" always; + + # Proxy API and WebSocket traffic to the Node.js server + location ~ ^/(config|client)(/.*)?$ { + proxy_pass http://127.0.0.1:3000; + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto \$scheme; + } + + # Serve self-signed cert for browser import + location = /colanode.crt { + default_type application/x-x509-ca-cert; + } + + location / { + try_files \$uri \$uri/ /index.html; + } +} +EOF +ln -sf /etc/nginx/sites-available/colanode /etc/nginx/sites-enabled/colanode +rm -f /etc/nginx/sites-enabled/default +systemctl reload nginx +msg_ok "Configured Nginx" + +msg_info "Creating Service" +cat </etc/systemd/system/colanode-server.service +[Unit] +Description=Colanode Server +After=network.target postgresql.service redis-server.service +Requires=postgresql.service redis-server.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/colanode +EnvironmentFile=/opt/colanode/.env +ExecStart=/usr/bin/node apps/server/dist/index.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now colanode-server +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/convex-install.sh b/install/convex-install.sh new file mode 100644 index 00000000..c0ae39a9 --- /dev/null +++ b/install/convex-install.sh @@ -0,0 +1,88 @@ +#!/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/get-convex/convex-backend + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +NODE_VERSION="24" setup_nodejs + +fetch_and_deploy_gh_release "convex" "get-convex/convex-backend" "prebuild" "latest" "/opt/convex" "convex-local-backend-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.zip" +fetch_and_deploy_gh_release "convex-dashboard" "get-convex/convex-backend" "prebuild" "$(cat ~/.convex)" "/opt/convex-dashboard" "dashboard.zip" + +msg_info "Configuring Convex" +mkdir -p /opt/convex_data/storage /opt/convex_data/tmp +INSTANCE_SECRET=$(openssl rand -hex 32) +ADMIN_KEY=$(/opt/convex/convex-local-backend keygen admin-key --instance-name convex-self-hosted --instance-secret "$INSTANCE_SECRET") +cat </opt/convex_data/.env +INSTANCE_NAME=convex-self-hosted +INSTANCE_SECRET=${INSTANCE_SECRET} +CONVEX_SELF_HOSTED_ADMIN_KEY="${ADMIN_KEY}" +CONVEX_CLOUD_ORIGIN=http://${LOCAL_IP}:3210 +CONVEX_SITE_ORIGIN=http://${LOCAL_IP}:3211 +TMPDIR=/opt/convex_data/tmp +RUST_LOG=info +DOCUMENT_RETENTION_DELAY=172800 +DISABLE_METRICS_ENDPOINT=true +APPLICATION_MAX_CONCURRENT_MUTATIONS=16 +APPLICATION_MAX_CONCURRENT_QUERIES=16 +APPLICATION_MAX_CONCURRENT_V8_ACTIONS=16 +APPLICATION_MAX_CONCURRENT_NODE_ACTIONS=16 +EOF +chmod 600 /opt/convex_data/.env +msg_ok "Configured Convex" + +msg_info "Configuring Nginx" +cat </etc/nginx/sites-available/convex-dashboard +server { + listen 6791; + server_name _; + root /opt/convex-dashboard; + index index.html; + + location / { + try_files \$uri \$uri.html \$uri/ =404; + } +} +EOF +nginx_enable_site "convex-dashboard" +msg_ok "Configured Nginx" + +msg_info "Creating Service" +cat </etc/systemd/system/convex.service +[Unit] +Description=Convex Backend +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/opt/convex_data +EnvironmentFile=/opt/convex_data/.env +ExecStart=/opt/convex/convex-local-backend --instance-name \${INSTANCE_NAME} --instance-secret \${INSTANCE_SECRET} --port 3210 --site-proxy-port 3211 --convex-origin \${CONVEX_CLOUD_ORIGIN} --convex-site \${CONVEX_SITE_ORIGIN} --local-storage /opt/convex_data/storage /opt/convex_data/db.sqlite3 +KillSignal=SIGINT +TimeoutStopSec=10 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now convex +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/cross-seed-install.sh b/install/cross-seed-install.sh index 25a3f7ab..c2b9469f 100644 --- a/install/cross-seed-install.sh +++ b/install/cross-seed-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y build-essential msg_ok "Installed Dependencies" -NODE_VERSION="24" setup_nodejs +NODE_VERSION="26" setup_nodejs msg_info "Setup Cross-Seed" $STD npm install cross-seed@latest -g diff --git a/install/cypht-install.sh b/install/cypht-install.sh new file mode 100644 index 00000000..5e47a63e --- /dev/null +++ b/install/cypht-install.sh @@ -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/cypht-org/cypht + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="soap,ldap" setup_php +fetch_and_deploy_gh_release "cypht" "cypht-org/cypht" "prebuild" "latest" "/opt/cypht" "cypht.tar.gz" + +msg_info "Configuring Cypht" +var_admin_user="${var_admin_user:-admin}" +var_admin_pass="${var_admin_pass:-$(random_password)}" +mkdir -p /opt/cypht_data/{users,attachments} +cp /opt/cypht/.env /opt/cypht_data/.env +sed -i \ + -e 's|^DB_DRIVER=.*|DB_DRIVER=sqlite|' \ + -e 's|^DB_NAME=.*|DB_NAME=/opt/cypht_data/users/cypht.db|' \ + -e 's|^SESSION_TYPE=.*|SESSION_TYPE=DB|' \ + -e 's|^AUTH_TYPE=.*|AUTH_TYPE=DB|' \ + -e 's|^USER_CONFIG_TYPE=.*|USER_CONFIG_TYPE=DB|' \ + -e 's|^USER_SETTINGS_DIR=.*|USER_SETTINGS_DIR=/opt/cypht_data/users|' \ + -e 's|^ATTACHMENT_DIR=.*|ATTACHMENT_DIR=/opt/cypht_data/attachments|' \ + -e "s|^ADMIN_USERS=.*|ADMIN_USERS=${var_admin_user}|" \ + -e 's|^ENABLE_REDIS=.*|ENABLE_REDIS=false|' \ + -e 's|^ENABLE_MEMCACHED=.*|ENABLE_MEMCACHED=false|' \ + /opt/cypht_data/.env +cat <>/opt/cypht_data/.env + +CYPHT_ADMIN_USER='${var_admin_user}' +CYPHT_ADMIN_PASS='${var_admin_pass}' +EOF +ln -sf /opt/cypht_data/.env /opt/cypht/.env +cd /opt/cypht +$STD php scripts/setup_database.php +$STD php scripts/create_account.php "$var_admin_user" "$var_admin_pass" +$STD php scripts/config_gen.php +chown -R www-data:www-data /opt/cypht_data/users /opt/cypht_data/attachments +chown root:www-data /opt/cypht_data/.env +chmod 640 /opt/cypht_data/.env +msg_ok "Configured Cypht" + +msg_info "Configuring Nginx" +PHP_SOCK=$(get_php_fpm_socket) +cat </etc/nginx/sites-available/cypht +server { + listen 80; + server_name _; + + root /opt/cypht/site; + index index.php; + client_max_body_size 60M; + + location / { + try_files \$uri /index.php\$is_args\$args; + } + location ~ \.php\$ { + try_files \$uri =404; + fastcgi_split_path_info ^(.+\.php)(/.+)\$; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; + fastcgi_index index.php; + fastcgi_pass unix:${PHP_SOCK}; + } +} +EOF +nginx_enable_site "cypht" +msg_ok "Configured Nginx" + +motd_ssh +customize +cleanup_lxc diff --git a/install/databasus-install.sh b/install/databasus-install.sh index 7cec0d1d..152bbf01 100644 --- a/install/databasus-install.sh +++ b/install/databasus-install.sh @@ -16,119 +16,47 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ nginx \ - valkey \ - mariadb-client \ - rclone + libedit2 \ + libgssapi-krb5-2 \ + libncurses6 \ + libreadline8t64 msg_ok "Installed Dependencies" PG_VERSION="17" setup_postgresql NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs -msg_info "Installing Database Clients" -# Create PostgreSQL version symlinks for compatibility -for v in 12 13 14 15 16 18; do - ln -sf /usr/lib/postgresql/17 /usr/lib/postgresql/$v -done -# Install MongoDB Database Tools via direct .deb (no APT repo for Debian 13) -[[ "$(get_os_info id)" == "ubuntu" ]] && MONGO_DIST="ubuntu2204" || MONGO_DIST="debian12" -# MongoDB only publishes arm64 builds for Ubuntu -[[ "$(arch_resolve "x86_64" "arm64")" == "arm64" ]] && MONGO_DIST="ubuntu2204" -MONGO_VERSION=$(get_latest_gh_tag "mongodb/mongo-tools" "100." || echo "100.16.1") -fetch_and_deploy_from_url "https://fastdl.mongodb.org/tools/db/mongodb-database-tools-${MONGO_DIST}-$(arch_resolve "x86_64" "arm64")-${MONGO_VERSION}.deb" "" -mkdir -p /usr/local/mongodb-database-tools/bin -[[ -f /usr/bin/mongodump ]] && ln -sf /usr/bin/mongodump /usr/local/mongodb-database-tools/bin/mongodump -[[ -f /usr/bin/mongorestore ]] && ln -sf /usr/bin/mongorestore /usr/local/mongodb-database-tools/bin/mongorestore -# Create MariaDB and MySQL client symlinks for compatibility -mkdir -p /usr/local/mariadb-{10.6,12.1}/bin /usr/local/mysql-{5.7,8.0,8.4,9}/bin -for dir in /usr/local/mariadb-{10.6,12.1}/bin; do - ln -sf /usr/bin/mariadb-dump "$dir/mariadb-dump" - ln -sf /usr/bin/mariadb "$dir/mariadb" -done -for dir in /usr/local/mysql-{5.7,8.0,8.4,9}/bin; do - ln -sf /usr/bin/mariadb-dump "$dir/mysqldump" - ln -sf /usr/bin/mariadb "$dir/mysql" -done -msg_ok "Installed Database Clients" - fetch_and_deploy_gh_release "databasus" "databasus/databasus" "tarball" "latest" "/opt/databasus" GO_VERSION="$(grep -m1 '^go ' /opt/databasus/backend/go.mod | awk '{print $2}')" setup_go msg_info "Building Databasus (Patience)" +RELEASE=$(cat ~/.databasus) export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 cd /opt/databasus/frontend - $STD corepack prepare pnpm@latest --activate $STD pnpm install --frozen-lockfile -$STD pnpm run build +$STD env VITE_APP_VERSION="${RELEASE}" pnpm run build cd /opt/databasus/backend -$STD go mod tidy -$STD go mod download -$STD go install github.com/swaggo/swag/cmd/swag@latest -$STD /root/go/bin/swag init -g cmd/main.go -o swagger -$STD env CGO_ENABLED=0 GOOS=linux GOARCH=$(arch_resolve) go build -o databasus ./cmd -mv /opt/databasus/backend/databasus /opt/databasus/databasus +$STD env CGO_ENABLED=0 GOOS=linux GOARCH="$(arch_resolve)" go build -o /opt/databasus/databasus ./cmd/databasus +mkdir -p /opt/databasus/agent-binaries +for arch in amd64 arm64; do + $STD env CGO_ENABLED=0 GOOS=linux GOARCH=$arch go build -ldflags "-X main.Version=${RELEASE}" -o /opt/databasus/agent-binaries/databasus-verification-agent-linux-$arch ./cmd/verification-agent +done mkdir -p /databasus-data/{pgdata,temp,backups,data,logs} mkdir -p /opt/databasus/ui/build -mkdir -p /opt/databasus/migrations cp -r /opt/databasus/frontend/dist/* /opt/databasus/ui/build/ -cp -r /opt/databasus/backend/migrations/* /opt/databasus/migrations/ chown -R postgres:postgres /databasus-data msg_ok "Built Databasus" msg_info "Configuring Databasus" -JWT_SECRET=$(openssl rand -hex 32) -ENCRYPTION_KEY=$(openssl rand -hex 32) -# Install goose for migrations -$STD go install github.com/pressly/goose/v3/cmd/goose@latest -ln -sf /root/go/bin/goose /usr/local/bin/goose cat </.env -# Environment ENV_MODE=production - -# Server -SERVER_PORT=4005 -SERVER_HOST=0.0.0.0 - -# Database +APP_VERSION=${RELEASE} DATABASE_DSN=host=localhost user=postgres password=postgres dbname=databasus port=5432 sslmode=disable -DATABASE_URL=postgres://postgres:postgres@localhost:5432/databasus?sslmode=disable - -# Migrations -GOOSE_DRIVER=postgres -GOOSE_DBSTRING=postgres://postgres:postgres@localhost:5432/databasus?sslmode=disable -GOOSE_MIGRATION_DIR=/opt/databasus/migrations - -# Valkey (Redis-compatible cache) -VALKEY_HOST=localhost -VALKEY_PORT=6379 - -# Security -JWT_SECRET=${JWT_SECRET} -ENCRYPTION_KEY=${ENCRYPTION_KEY} - -# Paths -DATA_DIR=/databasus-data/data -BACKUP_DIR=/databasus-data/backups -LOG_DIR=/databasus-data/logs EOF chmod 600 /.env msg_ok "Configured Databasus" -msg_info "Configuring Valkey" -cat </etc/valkey/valkey.conf -port 6379 -bind 127.0.0.1 -protected-mode yes -save "" -maxmemory 256mb -maxmemory-policy allkeys-lru -EOF -systemctl enable -q --now valkey-server -systemctl restart valkey-server -msg_ok "Configured Valkey" - msg_info "Creating Database" -# Configure PostgreSQL to allow local password auth for databasus PG_HBA="/etc/postgresql/17/main/pg_hba.conf" if ! grep -q "databasus" "$PG_HBA"; then sed -i '/^local\s*all\s*all/i local databasus postgres trust' "$PG_HBA" @@ -143,8 +71,8 @@ msg_info "Creating Databasus Service" cat </etc/systemd/system/databasus.service [Unit] Description=Databasus - Database Backup Management -After=network.target postgresql.service valkey.service -Requires=postgresql.service valkey.service +After=network.target postgresql.service +Requires=postgresql.service [Service] Type=simple diff --git a/install/dawarich-install.sh b/install/dawarich-install.sh index ad0565a4..ea04a18b 100644 --- a/install/dawarich-install.sh +++ b/install/dawarich-install.sh @@ -150,10 +150,16 @@ server { root /opt/dawarich/app/public; client_max_body_size 100M; + location ~ \.mjs\$ { + types { } + default_type text/javascript; + try_files \$uri @rails; + } + location ~ ^/(assets|packs)/ { expires max; add_header Cache-Control "public, immutable"; - try_files \$uri =404; + try_files \$uri @rails; } location / { diff --git a/install/deemix-install.sh b/install/deemix-install.sh new file mode 100644 index 00000000..e63ac66f --- /dev/null +++ b/install/deemix-install.sh @@ -0,0 +1,59 @@ +#!/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/bambanah/deemix + +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 +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "deemix" "bambanah/deemix" "tarball" "latest" "/opt/deemix" "" "deemix-webui@" +NODE_VERSION="24" NODE_MODULE="pnpm@$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/deemix/package.json)" setup_nodejs + +msg_info "Building Deemix" +cd /opt/deemix +ELECTRON_SKIP_BINARY_DOWNLOAD=1 $STD pnpm install --frozen-lockfile +$STD pnpm turbo build --filter=deemix-webui... +msg_ok "Built Deemix" + +msg_info "Creating Service" +mkdir -p /opt/deemix_data/{config,music} +cat </etc/systemd/system/deemix.service +[Unit] +Description=Deemix +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/deemix +Environment=NODE_ENV=production +Environment=DEEMIX_DATA_DIR=/opt/deemix_data/config +Environment=DEEMIX_MUSIC_DIR=/opt/deemix_data/music +Environment=DEEMIX_SERVER_PORT=6595 +Environment=DEEMIX_HOST=0.0.0.0 +Environment=DEEMIX_SINGLE_USER=true +ExecStart=/usr/bin/node /opt/deemix/packages/webui/dist/main.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now deemix +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/dietpi-install.sh b/install/dietpi-install.sh new file mode 100755 index 00000000..00a4f8cd --- /dev/null +++ b/install/dietpi-install.sh @@ -0,0 +1,54 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: mews-se +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://dietpi.com/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_warn "WARNING: This script will run an external installer from a third-party source (https://dietpi.com/)." +msg_warn "The following code is NOT maintained or audited by our repository." +msg_warn "If you have any doubts or concerns, please review the installer code before proceeding:" +msg_custom "${TAB3}${GATEWAY}${BGN}${CL}" "\e[1;34m" "β†’ https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer" +echo +if ! prompt_confirm "${TAB3}Do you want to continue?" "y" 60; then + msg_error "Aborted by user. No changes have been made." + exit 10 +fi + +motd_ssh + +msg_info "Converting Debian to DietPi" +curl -fsSL https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer -o /tmp/dietpi-installer +$STD env G_INTERACTIVE=0 GITBRANCH=master HW_MODEL=75 DISTRO_TARGET=8 GUEST_NETWORK_REQUIRED=1 IMAGE_CREATOR=community-scripts PREIMAGE_INFO='Proxmox Debian LXC template' bash /tmp/dietpi-installer +rm -f /tmp/dietpi-installer +msg_ok "Converted Debian to DietPi" + +msg_info "Configuring DietPi" +sed -i -e 's/^AUTO_SETUP_NET_ETHERNET_ENABLED=.*/AUTO_SETUP_NET_ETHERNET_ENABLED=0/' \ + -e "s/^AUTO_SETUP_NET_HOSTNAME=.*/AUTO_SETUP_NET_HOSTNAME=$(hostname)/" /boot/dietpi.txt +if [[ -n "${PASSWORD:-}" ]]; then + sed -i '/^AUTO_SETUP_GLOBAL_PASSWORD=/d' /boot/dietpi.txt + echo "AUTO_SETUP_GLOBAL_PASSWORD=$PASSWORD" >>/boot/dietpi.txt +fi +rm -f /etc/apt/sources.list.d/debian.sources +rm -f /etc/sysctl.d/97-dietpi.conf +rm -f /etc/systemd/system/local-fs.target.wants/dietpi-fs_partition_resize.service +msg_ok "Configured DietPi" + +customize +# Autologin on tty1 only: DietPi's first run setup runs on the first console that logs in, and the Proxmox UI attaches to tty1 +rm -f /etc/systemd/system/console-getty.service.d/override.conf +if [[ -f /etc/systemd/system/container-getty@.service.d/override.conf ]]; then + mkdir -p /etc/systemd/system/container-getty@1.service.d + mv /etc/systemd/system/container-getty@.service.d/override.conf /etc/systemd/system/container-getty@1.service.d/ + rmdir /etc/systemd/system/container-getty@.service.d +fi +cleanup_lxc diff --git a/install/discourse-install.sh b/install/discourse-install.sh index ac268751..7027784f 100644 --- a/install/discourse-install.sh +++ b/install/discourse-install.sh @@ -25,12 +25,44 @@ $STD apt install -y \ gsfonts \ brotli \ nginx \ - redis-server + redis-server \ + meson \ + ninja-build \ + pkg-config \ + libglib2.0-dev \ + libexpat1-dev \ + libjpeg-dev \ + libpng-dev \ + libwebp-dev \ + libtiff-dev \ + libheif-dev \ + libjxl-dev \ + librsvg2-dev \ + libcgif-dev \ + libexif-dev \ + liblcms2-dev \ + liborc-0.4-dev \ + libimagequant-dev \ + libpango1.0-dev msg_ok "Installed Dependencies" +fetch_and_deploy_gh_release "libvips" "libvips/libvips" "prebuild" "latest" "/opt/libvips" "vips-*.tar.xz" + +msg_info "Building libvips" +cd /opt/libvips +$STD meson setup build --prefix=/usr/local --libdir=lib --buildtype=release -Dmodules=disabled -Dmagick=disabled -Dexamples=false +$STD ninja -C build install +ldconfig +msg_ok "Built libvips" + +msg_info "Cloning Discourse" +$STD git clone --depth 1 https://github.com/discourse/discourse.git /opt/discourse +msg_ok "Cloned Discourse" + PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql NODE_VERSION="24" setup_nodejs -RUBY_VERSION="3.4.4" setup_ruby +RUBY_TARGET=$(grep -A1 '^RUBY VERSION' /opt/discourse/Gemfile.lock | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1) +RUBY_VERSION="${RUBY_TARGET:-4.0.7}" RUBY_INSTALL_RAILS="false" setup_ruby msg_info "Configuring PostgreSQL for Discourse" DISCOURSE_DB_PASS=$(random_password 13) @@ -42,7 +74,6 @@ msg_ok "Configured PostgreSQL for Discourse" msg_info "Configuring Discourse" DISCOURSE_SECRET_KEY=$(openssl rand -hex 64) -$STD git clone --depth 1 https://github.com/discourse/discourse.git /opt/discourse cd /opt/discourse cat </opt/discourse/.env RAILS_ENV=production @@ -77,6 +108,7 @@ export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH" eval "$(rbenv init - bash)" 2>/dev/null || true export RAILS_ENV=production export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 +export BUNDLE_SILENCE_ROOT_WARNING=1 $STD corepack enable $STD bundle config set --local deployment true $STD bundle config set --local without 'test development' diff --git a/install/dotnetaspwebapi-install.sh b/install/dotnetaspwebapi-install.sh index 4baab89f..b6877e88 100644 --- a/install/dotnetaspwebapi-install.sh +++ b/install/dotnetaspwebapi-install.sh @@ -3,7 +3,7 @@ # Copyright (c) 2021-2026 community-scripts ORG # Author: Kristian Skov # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-9.0&tabs=linux-ubuntu +# Source: https://learn.microsoft.com/en-us/dotnet/core/install/linux-debian source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color @@ -14,21 +14,36 @@ network_check update_os msg_info "Installing Dependencies" -apt_update_safe $STD apt install -y \ - ssh \ - software-properties-common - -$STD add-apt-repository -y ppa:dotnet/backports -$STD apt install -y \ - dotnet-sdk-9.0 \ vsftpd \ nginx msg_ok "Installed Dependencies" -var_project_name="${var_project_name:-}" -[[ -n "$var_project_name" ]] || read -r -p "${TAB3}Type the assembly name of the project: " var_project_name || true -[[ -n "$var_project_name" ]] || { msg_error "No assembly name given; set var_project_name or answer the prompt"; exit 64; } +setup_deb822_repo \ + "microsoft" \ + "https://packages.microsoft.com/keys/microsoft-2025.asc" \ + "https://packages.microsoft.com/debian/13/prod/" \ + "trixie" \ + "main" + +if [[ -z "${var_dotnet_version:-}" && -t 0 ]]; then + read -r -t 60 -p "${TAB3}.NET SDK version, 10 (LTS) or 11 [10]: " var_dotnet_version || echo +fi +var_dotnet_version="${var_dotnet_version:-10}" +var_dotnet_version="${var_dotnet_version%%.*}" +if ! apt-cache show "dotnet-sdk-${var_dotnet_version}.0" &>/dev/null; then + msg_warn ".NET SDK ${var_dotnet_version} is not available for this system, using 10" + var_dotnet_version="10" +fi + +if [[ -z "${var_project_name:-}" && -t 0 ]]; then + read -r -t 60 -p "${TAB3}Assembly name of the project [testproject]: " var_project_name || echo +fi +var_project_name="${var_project_name:-testproject}" + +msg_info "Installing .NET SDK ${var_dotnet_version}" +$STD apt install -y "dotnet-sdk-${var_dotnet_version}.0" +msg_ok "Installed .NET SDK ${var_dotnet_version}" msg_info "Setting up FTP Server" useradd ftpuser @@ -55,7 +70,7 @@ msg_ok "FTP server setup completed" msg_info "Setting up Nginx Server" rm -f /var/www/html/index.nginx-debian.html -sed "s/\$var_project_name/$var_project_name/g" >myfile <<'EOF' >/etc/nginx/sites-available/default +sed "s/\$var_project_name/$var_project_name/g" <<'EOF' >/etc/nginx/sites-available/default map $http_connection $connection_upgrade { "~*Upgrade" $http_connection; default keep-alive; @@ -82,12 +97,12 @@ msg_info "Creating Service" cat </etc/systemd/system/kestrel-aspnetapi.service [Unit] Description=.NET Web API App running on Linux +ConditionPathExists=/var/www/html/$var_project_name.dll [Service] WorkingDirectory=/var/www/html ExecStart=/usr/bin/dotnet /var/www/html/$var_project_name.dll Restart=always -# Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 KillSignal=SIGINT SyslogIdentifier=dotnet-${var_project_name} @@ -98,7 +113,18 @@ Environment=DOTNET_NOLOGO=true [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now kestrel-aspnetapi +cat </etc/systemd/system/kestrel-aspnetapi.path +[Unit] +Description=Start the .NET Web API App once it is deployed + +[Path] +PathExists=/var/www/html/$var_project_name.dll + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q kestrel-aspnetapi +systemctl enable -q --now kestrel-aspnetapi.path msg_ok "Created Service" motd_ssh diff --git a/install/engram-install.sh b/install/engram-install.sh new file mode 100644 index 00000000..1a6c381b --- /dev/null +++ b/install/engram-install.sh @@ -0,0 +1,96 @@ +#!/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/Gentleman-Programming/engram + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +PG_VERSION="16" setup_postgresql +PG_DB_NAME="engram" PG_DB_USER="engram" setup_postgresql_db + +fetch_and_deploy_gh_release "engram" "Gentleman-Programming/engram" "prebuild" "latest" "/opt/engram" "engram_*_linux_$(arch_resolve).tar.gz" + +msg_info "Configuring Engram Cloud" +ln -sf /opt/engram/engram /usr/local/bin/engram +mkdir -p /opt/engram_data +cat </opt/engram_data/.env +ENGRAM_DATABASE_URL=postgres://engram:${PG_DB_PASS}@127.0.0.1:5432/engram?sslmode=disable +ENGRAM_CLOUD_HOST=127.0.0.1 +ENGRAM_PORT=18080 +ENGRAM_CLOUD_TOKEN=${var_cloud_token:-$(random_password 48)} +ENGRAM_CLOUD_ADMIN=${var_admin_token:-$(random_password 48)} +ENGRAM_JWT_SECRET=$(random_password 64) +ENGRAM_CLOUD_TOKEN_PEPPER=$(random_password 64) +ENGRAM_CLOUD_ALLOWED_PROJECTS=${var_allowed_projects:-*} +EOF +chmod 600 /opt/engram_data/.env +msg_ok "Configured Engram Cloud" + +create_self_signed_cert "engram" + +msg_info "Configuring Nginx" +cat <<'EOF' >/etc/nginx/sites-available/engram +server { + listen 80 default_server; + server_name _; + return 301 https://$host$request_uri; +} + +server { + listen 443 ssl default_server; + server_name _; + client_max_body_size 32m; + + ssl_certificate /etc/ssl/engram/engram.crt; + ssl_certificate_key /etc/ssl/engram/engram.key; + + location / { + proxy_pass http://127.0.0.1:18080; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto https; + proxy_read_timeout 300s; + } +} +EOF +nginx_enable_site "engram" +msg_ok "Configured Nginx" + +msg_info "Creating Service" +cat </etc/systemd/system/engram.service +[Unit] +Description=Engram Cloud +After=network-online.target postgresql.service +Wants=network-online.target postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/engram_data +EnvironmentFile=/opt/engram_data/.env +ExecStart=/opt/engram/engram cloud serve +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now engram +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/espocrm-install.sh b/install/espocrm-install.sh new file mode 100644 index 00000000..243ad83b --- /dev/null +++ b/install/espocrm-install.sh @@ -0,0 +1,146 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Masked-Kunsiquat +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://www.espocrm.com/ | Github: https://github.com/espocrm/espocrm + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +if [[ -z "${var_admin_user:-}" ]]; then + var_admin_user=$(prompt_input "EspoCRM admin username (a-z, 0-9, @ . _ -):" "admin" 60) +fi +var_admin_user="${var_admin_user:-admin}" +var_admin_user="${var_admin_user,,}" +if [[ ! "$var_admin_user" =~ ^[a-z0-9@._-]+$ ]]; then + msg_warn "EspoCRM usernames take only a-z, 0-9 and @ . _ -; using admin" + var_admin_user="admin" +fi +if [[ -z "${var_admin_pass:-}" ]]; then + var_admin_pass=$(random_password 16) +fi + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +setup_mariadb +MARIADB_DB_NAME="espocrm" MARIADB_DB_USER="espocrm" setup_mariadb_db +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="ldap" setup_php +fetch_and_deploy_gh_release "espo-crm" "espocrm/espocrm" "prebuild" "latest" "/opt/espocrm" "EspoCRM-*.zip" + +msg_info "Configuring EspoCRM" +cd /opt/espocrm +$STD php bin/command config:populate +$STD php bin/command config:set defaultPermissions.user www-data +$STD php bin/command config:set defaultPermissions.group www-data +$STD php bin/command config:set database.platform Mysql +$STD php bin/command config:set database.host localhost +$STD php bin/command config:set database.dbname "$MARIADB_DB_NAME" +$STD php bin/command config:set database.user "$MARIADB_DB_USER" +$STD php bin/command config:set database.password "$MARIADB_DB_PASS" +$STD php bin/command rebuild +$STD php bin/command create-admin-user "$var_admin_user" +printf '%s\n' "$var_admin_pass" | $STD php bin/command set-password "$var_admin_user" +$STD php bin/command config:set siteUrl "http://${LOCAL_IP}" +$STD php bin/command populate-scheduled-jobs +$STD php bin/command config:set jobRunInParallel true --type=bool +$STD php bin/command app-check +$STD php bin/command config:set isInstalled true --type=bool +chown -R www-data:www-data /opt/espocrm +msg_ok "Configured EspoCRM" + +msg_info "Creating Nginx Site" +PHP_SOCK=$(get_php_fpm_socket) +cat </etc/nginx/sites-available/espocrm +server { + listen 80 default_server; + listen [::]:80 default_server; + server_name _; + + charset utf-8; + index index.html index.php; + + client_max_body_size 128M; + keepalive_timeout 300; + server_tokens off; + fastcgi_send_timeout 300; + fastcgi_read_timeout 300; + + gzip on; + gzip_types text/plain text/css text/javascript application/javascript application/json; + gzip_min_length 1000; + + root /opt/espocrm/public; + + location /client { + root /opt/espocrm; + autoindex off; + + location ~* ^.+\.(js|css|png|jpg|svg|svgz|jpeg|gif|ico|tpl)\$ { + access_log off; + expires max; + } + } + + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + + location ~ \.php\$ { + fastcgi_pass unix:${PHP_SOCK}; + include fastcgi_params; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; + fastcgi_param QUERY_STRING \$query_string; + } + + location /api/v1/ { + if (!-e \$request_filename) { + rewrite ^/api/v1/(.*)\$ /api/v1/index.php last; + } + } + + location /portal/ { + try_files \$uri \$uri/ /portal/index.php?\$query_string; + } + + location /api/v1/portal-access { + if (!-e \$request_filename) { + rewrite ^/api/v1/(.*)\$ /api/v1/portal-access/index.php last; + } + } + + location ~ /(\.htaccess|web\.config|\.git) { + deny all; + } +} +EOF +msg_ok "Created Nginx Site" +nginx_enable_site "espocrm" + +msg_info "Setting up Cron" +cat </etc/cron.d/espocrm +* * * * * www-data cd /opt/espocrm && php -f cron.php >/dev/null 2>&1 +EOF +systemctl enable -q --now cron +msg_ok "Set up Cron" + +msg_info "Saving Credentials" +cat <>~/espocrm.creds + +EspoCRM Admin +Username: ${var_admin_user} +Password: ${var_admin_pass} +EOF +chmod 600 ~/espocrm.creds +msg_ok "Saved Credentials" + +motd_ssh +customize +cleanup_lxc diff --git a/install/euro-office-install.sh b/install/euro-office-install.sh new file mode 100644 index 00000000..b40625e7 --- /dev/null +++ b/install/euro-office-install.sh @@ -0,0 +1,62 @@ +#!/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/Euro-Office/DocumentServer + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +setup_nonfree + +msg_info "Installing Dependencies" +$STD apt install -y \ + nginx-extras \ + rabbitmq-server +msg_ok "Installed Dependencies" + +PG_VERSION="17" setup_postgresql +PG_DB_NAME="euro_office" PG_DB_USER="euro_office" setup_postgresql_db + +msg_info "Configuring RabbitMQ" +RMQ_PASS=$(random_password) +$STD rabbitmqctl add_user euro_office "$RMQ_PASS" +$STD rabbitmqctl set_permissions -p / euro_office ".*" ".*" ".*" +msg_ok "Configured RabbitMQ" + +msg_info "Preseeding Euro-Office" +debconf-set-selections </opt/factorio/server-settings.json +cat </opt/factorio/server-adminlist.json +[] +EOF +msg_ok "Configured Factorio" + +msg_info "Creating Factorio Save" +mkdir -p /opt/factorio/saves +$STD /opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio --create /opt/factorio/saves/save.zip +msg_ok "Created Factorio Save" + +msg_info "Creating Factorio Service" +cat </etc/systemd/system/factorio.service +[Unit] +Description=Factorio Headless Server +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/factorio +ExecStart=/opt/factorio/bin/$(arch_resolve "x64" "arm64")/factorio --start-server-load-latest --server-settings /opt/factorio/server-settings.json --server-adminlist /opt/factorio/server-adminlist.json +KillSignal=SIGINT +TimeoutStopSec=120 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now factorio + +msg_ok "Created Factorio Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/faraday-install.sh b/install/faraday-install.sh new file mode 100644 index 00000000..5b424ce5 --- /dev/null +++ b/install/faraday-install.sh @@ -0,0 +1,104 @@ +#!/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/infobyte/faraday + +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 \ + libpq-dev \ + libmagic1 \ + redis-server +msg_ok "Installed Dependencies" + +PG_VERSION="17" setup_postgresql +PG_DB_NAME="faraday" PG_DB_USER="faraday" PG_DB_CREDS_FILE="/dev/null" setup_postgresql_db +PYTHON_VERSION="3.11" setup_uv +fetch_and_deploy_gh_release "faraday" "infobyte/faraday" "tarball" + +msg_info "Installing Faraday" +cd /opt/faraday +UV_PROJECT_ENVIRONMENT=/opt/faraday/venv $STD uv sync --frozen --no-dev --no-editable +msg_ok "Installed Faraday" + +msg_info "Configuring Faraday" +FARADAY_PASSWORD="${var_faraday_password:-$(random_password)}" +mkdir -p /opt/faraday_data/.faraday/config +cat </opt/faraday_data/.faraday/config/server.ini +[faraday_server] +port = 5985 +bind_address = 0.0.0.0 +secret_key = $(random_password 32) + +[database] +connection_string = postgresql+psycopg2://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME} +EOF +cat </opt/faraday_data/.env +FARADAY_HOME=/opt/faraday_data +FARADAY_USER=faraday +FARADAY_PASSWORD=${FARADAY_PASSWORD} +EOF +chmod 600 /opt/faraday_data/.env /opt/faraday_data/.faraday/config/server.ini +FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage create-tables +FARADAY_HOME=/opt/faraday_data $STD venv/bin/faraday-manage create-superuser --username faraday --email faraday@example.com --password "$FARADAY_PASSWORD" +msg_ok "Configured Faraday" + +msg_info "Creating Services" +cat </etc/systemd/system/faraday-server.service +[Unit] +Description=Faraday Server +After=network.target postgresql.service redis-server.service + +[Service] +Type=exec +Environment=FARADAY_HOME=/opt/faraday_data +ExecStart=/opt/faraday/venv/bin/faraday-server +Restart=always + +[Install] +WantedBy=multi-user.target +EOF +cat </etc/systemd/system/faraday-worker.service +[Unit] +Description=Faraday Worker +After=network.target postgresql.service redis-server.service + +[Service] +Type=exec +Environment=FARADAY_HOME=/opt/faraday_data +ExecStart=/opt/faraday/venv/bin/faraday-worker +Restart=always + +[Install] +WantedBy=multi-user.target +EOF +cat </etc/systemd/system/faraday-beat.service +[Unit] +Description=Faraday Beat +After=network.target postgresql.service redis-server.service + +[Service] +Type=exec +Environment=FARADAY_HOME=/opt/faraday_data +ExecStart=/opt/faraday/venv/bin/faraday-beat +Restart=always + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now faraday-server faraday-worker faraday-beat +msg_ok "Created Services" + +motd_ssh +customize +cleanup_lxc diff --git a/install/firefly-install.sh b/install/firefly-install.sh index b96334e8..dcdcd706 100644 --- a/install/firefly-install.sh +++ b/install/firefly-install.sh @@ -26,6 +26,7 @@ chown -R www-data:www-data /opt/firefly chmod -R 775 /opt/firefly/storage cd /opt/firefly cp .env.example .env +sed -i -e "s|^APP_KEY=.*|APP_KEY=$(random_password 32)|" -e "s|^STATIC_CRON_TOKEN=.*|STATIC_CRON_TOKEN=$(random_password 32)|" /opt/firefly/.env sed -i "s/DB_HOST=.*/DB_HOST=localhost/" /opt/firefly/.env sed -i "s/DB_PASSWORD=.*/DB_PASSWORD=$MARIADB_DB_PASS/" /opt/firefly/.env $STD composer install --no-dev --no-plugins --no-interaction diff --git a/install/firefox-syncserver-install.sh b/install/firefox-syncserver-install.sh new file mode 100644 index 00000000..3ce04a76 --- /dev/null +++ b/install/firefox-syncserver-install.sh @@ -0,0 +1,99 @@ +#!/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/mozilla-services/syncstorage-rs + +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 \ + libssl-dev \ + libpq-dev \ + python3-dev +msg_ok "Installed Dependencies" + +PG_VERSION="18" setup_postgresql +PG_DB_NAME="syncserver" PG_DB_USER="syncserver" setup_postgresql_db +setup_rust +setup_uv + +fetch_and_deploy_gh_release "firefox-syncserver" "mozilla-services/syncstorage-rs" "tarball" + +msg_info "Building Firefox Syncserver (Patience)" +cd /opt/firefox-syncserver +$STD cargo build --release --locked --no-default-features --features=syncstorage-db/postgres --features=tokenserver-db/postgres --features=py_verifier +cp target/release/syncserver /usr/local/bin/syncserver +rm -rf target +$STD uv venv --python /usr/bin/python3 /opt/firefox-syncserver/.venv +$STD uv pip install --python /opt/firefox-syncserver/.venv/bin/python pyfxa tokenlib cryptography +msg_ok "Built Firefox Syncserver" + +msg_info "Configuring Firefox Syncserver" +mkdir -p /opt/firefox-syncserver_data +cat </opt/firefox-syncserver_data/.env +SYNC_HOST=0.0.0.0 +SYNC_PORT=8000 +SYNC_MASTER_SECRET=$(openssl rand -hex 32) +SYNC_HUMAN_LOGS=true +RUST_LOG=info +SYNC_SYNCSTORAGE__DATABASE_URL=postgres://syncserver:${PG_DB_PASS}@127.0.0.1:5432/syncserver +SYNC_SYNCSTORAGE__GLEAN_ENABLED=false +SYNC_TOKENSERVER__ENABLED=true +SYNC_TOKENSERVER__RUN_MIGRATIONS=true +SYNC_TOKENSERVER__DATABASE_URL=postgres://syncserver:${PG_DB_PASS}@127.0.0.1:5432/syncserver +SYNC_TOKENSERVER__NODE_TYPE=postgres +SYNC_TOKENSERVER__FXA_EMAIL_DOMAIN=api.accounts.firefox.com +SYNC_TOKENSERVER__FXA_OAUTH_SERVER_URL=https://oauth.accounts.firefox.com +SYNC_TOKENSERVER__INIT_NODE_URL=http://${LOCAL_IP}:8000 +EOF +chmod 600 /opt/firefox-syncserver_data/.env +cat <<'EOF' >/opt/firefox-syncserver_data/nodes.sql +SELECT to_regclass('nodes') IS NOT NULL AS ready \gset +\if :ready +UPDATE nodes SET node = :'url' + WHERE id = (SELECT min(id) FROM nodes) + AND NOT EXISTS (SELECT 1 FROM nodes WHERE node = :'url'); +UPDATE users SET nodeid = (SELECT id FROM nodes WHERE node = :'url') + WHERE nodeid <> (SELECT id FROM nodes WHERE node = :'url'); +DELETE FROM nodes WHERE node <> :'url'; +\endif +EOF +msg_ok "Configured Firefox Syncserver" + +msg_info "Creating Service" +cat </etc/systemd/system/firefox-syncserver.service +[Unit] +Description=Firefox Syncserver +After=network.target postgresql.service +Wants=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/firefox-syncserver +EnvironmentFile=/opt/firefox-syncserver_data/.env +Environment=PYTHONPATH=/opt/firefox-syncserver/.venv/lib/python3.13/site-packages +ExecStartPre=/usr/bin/psql -1 -q -v ON_ERROR_STOP=1 -v url=\${SYNC_TOKENSERVER__INIT_NODE_URL} -f /opt/firefox-syncserver_data/nodes.sql \${SYNC_TOKENSERVER__DATABASE_URL} +ExecStart=/usr/local/bin/syncserver +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now firefox-syncserver +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/frigate-install.sh b/install/frigate-install.sh index f0f3d6fa..f8591f1e 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -110,7 +110,7 @@ export AUTOGRAPH_VERBOSITY=0 export GLOG_minloglevel=3 export GLOG_logtostderr=0 -fetch_and_deploy_gh_release "frigate" "blakeblackshear/frigate" "tarball" "v0.18.2" "/opt/frigate" +fetch_and_deploy_gh_release "frigate" "blakeblackshear/frigate" "tarball" "v0.18.3" "/opt/frigate" msg_info "Building Nginx" $STD bash /opt/frigate/docker/main/build_nginx.sh @@ -201,7 +201,7 @@ msg_ok "Installed OpenVino" msg_info "Building OpenVino Model" cd /models -curl_download "ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz" "http://download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz" +curl_download "ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz" "https://storage.googleapis.com/download.tensorflow.org/models/object_detection/ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz" $STD tar -zxf ssdlite_mobilenet_v2_coco_2018_05_09.tar.gz --no-same-owner if python3 /opt/frigate/docker/main/build_ov_model.py &>/dev/null; then mkdir -p /openvino-model diff --git a/install/gitea-runner-install.sh b/install/gitea-runner-install.sh new file mode 100644 index 00000000..2fc13412 --- /dev/null +++ b/install/gitea-runner-install.sh @@ -0,0 +1,129 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: community-scripts +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://gitea.com/gitea/runner + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +setup_deb_based() { + msg_info "Installing Dependencies" + $STD apt install -y git + msg_ok "Installed Dependencies" + + setup_docker + + msg_info "Installing Gitea Runner" + RELEASE=$(curl -fsSL https://gitea.com/api/v1/repos/gitea/runner/releases/latest | jq -r .tag_name | sed 's/^v//') + $STD curl -fsSL -o /usr/local/bin/gitea-runner "https://gitea.com/gitea/runner/releases/download/v${RELEASE}/gitea-runner-${RELEASE}-linux-$(arch_resolve)" + chmod +x /usr/local/bin/gitea-runner + ln -sf /usr/local/bin/gitea-runner /usr/local/bin/act_runner + echo "${RELEASE}" >~/.gitea-runner + msg_ok "Installed Gitea Runner v${RELEASE}" + + msg_info "Configuring Gitea Runner" + mkdir -p /etc/gitea-runner /var/lib/gitea-runner + /usr/local/bin/gitea-runner config generate >/etc/gitea-runner/config.yaml + sed -i 's|.*file:.*\.runner.*| file: /var/lib/gitea-runner/.runner|' /etc/gitea-runner/config.yaml + msg_ok "Configured Gitea Runner" + + if [[ -n "${var_gitea_url:-}" ]] && [[ -n "${var_gitea_token:-}" ]]; then + msg_info "Registering Gitea Runner" + $STD /usr/local/bin/gitea-runner register --no-interactive --config /etc/gitea-runner/config.yaml --instance "${var_gitea_url}" --token "${var_gitea_token}" --name "$(hostname)" + msg_ok "Registered Gitea Runner" + fi + + msg_info "Creating Service" + cat </etc/systemd/system/gitea-runner.service +[Unit] +Description=Gitea Actions Runner +Documentation=https://docs.gitea.com/runner/ +After=network-online.target docker.service +Wants=network-online.target docker.service + +[Service] +Type=simple +ExecStart=/usr/local/bin/gitea-runner daemon --config /etc/gitea-runner/config.yaml +WorkingDirectory=/var/lib/gitea-runner +Environment=HOME=/var/lib/gitea-runner +Restart=on-failure +RestartSec=5s +TimeoutStopSec=3h + +[Install] +WantedBy=multi-user.target +EOF + systemctl enable -q gitea-runner + if [[ -s /var/lib/gitea-runner/.runner ]]; then + systemctl start gitea-runner + fi + msg_ok "Created Service" +} + +setup_alpine() { + msg_info "Installing Docker" + $STD apk add --no-cache docker docker-cli-compose git + $STD rc-update add docker default + $STD rc-service docker start + msg_ok "Installed Docker" + + msg_info "Installing Gitea Runner" + RELEASE=$(curl -fsSL https://gitea.com/api/v1/repos/gitea/runner/releases/latest | jq -r .tag_name | sed 's/^v//') + $STD curl -fsSL -o /usr/local/bin/gitea-runner "https://gitea.com/gitea/runner/releases/download/v${RELEASE}/gitea-runner-${RELEASE}-linux-$(arch_resolve)" + chmod +x /usr/local/bin/gitea-runner + ln -sf /usr/local/bin/gitea-runner /usr/local/bin/act_runner + echo "${RELEASE}" >~/.gitea-runner + msg_ok "Installed Gitea Runner v${RELEASE}" + + msg_info "Configuring Gitea Runner" + mkdir -p /etc/gitea-runner /var/lib/gitea-runner + /usr/local/bin/gitea-runner config generate >/etc/gitea-runner/config.yaml + sed -i 's|.*file:.*\.runner.*| file: /var/lib/gitea-runner/.runner|' /etc/gitea-runner/config.yaml + msg_ok "Configured Gitea Runner" + + if [[ -n "${var_gitea_url:-}" ]] && [[ -n "${var_gitea_token:-}" ]]; then + msg_info "Registering Gitea Runner" + $STD /usr/local/bin/gitea-runner register --no-interactive --config /etc/gitea-runner/config.yaml --instance "${var_gitea_url}" --token "${var_gitea_token}" --name "$(hostname)" + msg_ok "Registered Gitea Runner" + fi + + msg_info "Creating Service" + cat <<'EOF' >/etc/init.d/gitea-runner +#!/sbin/openrc-run +name="gitea-runner" +description="Gitea Actions Runner" + +export HOME="/var/lib/gitea-runner" +command="/usr/local/bin/gitea-runner" +command_args="daemon --config /etc/gitea-runner/config.yaml" +directory="/var/lib/gitea-runner" +command_background="yes" +pidfile="/run/gitea-runner.pid" +output_log="/var/log/gitea-runner.log" +error_log="/var/log/gitea-runner.log" + +depend() { + need net docker + after firewall +} +EOF + chmod +x /etc/init.d/gitea-runner + $STD rc-update add gitea-runner default + if [[ -s /var/lib/gitea-runner/.runner ]]; then + $STD rc-service gitea-runner start + fi + msg_ok "Created Service" +} + +run_os_setup + +motd_ssh +customize +cleanup_lxc diff --git a/install/goatcounter-install.sh b/install/goatcounter-install.sh new file mode 100644 index 00000000..fb45f2ac --- /dev/null +++ b/install/goatcounter-install.sh @@ -0,0 +1,59 @@ +#!/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/arp242/goatcounter + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "goatcounter" "arp242/goatcounter" "singlefile" "latest" "/opt/goatcounter" "goatcounter-v*-linux-$(arch_resolve).gz" + +msg_info "Configuring GoatCounter" +ADMIN_EMAIL="${var_admin_email:-admin@goatcounter.local}" +ADMIN_PASS="${var_admin_pass:-$(random_password)}" +mkdir -p /opt/goatcounter_data +cat </opt/goatcounter_data/.env +GOATCOUNTER_DB=sqlite+/opt/goatcounter_data/db.sqlite3 +GOATCOUNTER_LISTEN=:8080 +GOATCOUNTER_TLS=http +ADMIN_EMAIL=${ADMIN_EMAIL} +ADMIN_PASSWORD=${ADMIN_PASS} +EOF +chmod 600 /opt/goatcounter_data/.env +$STD /opt/goatcounter/goatcounter db create site -createdb \ + -db sqlite+/opt/goatcounter_data/db.sqlite3 \ + -vhost "${var_goatcounter_domain:-$LOCAL_IP}" \ + -user.email "$ADMIN_EMAIL" \ + -user.password "$ADMIN_PASS" +msg_ok "Configured GoatCounter" + +msg_info "Creating Service" +cat </etc/systemd/system/goatcounter.service +[Unit] +Description=GoatCounter +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/goatcounter_data +EnvironmentFile=/opt/goatcounter_data/.env +ExecStart=/opt/goatcounter/goatcounter serve -automigrate +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now goatcounter +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/gotenberg-install.sh b/install/gotenberg-install.sh index 375da2a8..6f6790ec 100644 --- a/install/gotenberg-install.sh +++ b/install/gotenberg-install.sh @@ -14,18 +14,15 @@ network_check update_os msg_info "Installing Dependencies" +CODENAME=$(get_os_info codename) +setup_deb822_repo \ + "debian-backports" \ + "file:///usr/share/keyrings/debian-archive-keyring.gpg" \ + "http://deb.debian.org/debian" \ + "${CODENAME}-backports" \ + "main" $STD apt install -y \ chromium \ - libreoffice-writer \ - libreoffice-calc \ - libreoffice-impress \ - libreoffice-draw \ - libreoffice-math \ - python3-uno \ - python-is-python3 \ - pdftk-java \ - qpdf \ - libimage-exiftool-perl \ fonts-crosextra-carlito \ fonts-crosextra-caladea \ fonts-liberation \ @@ -33,28 +30,30 @@ $STD apt install -y \ fonts-dejavu \ fonts-noto-cjk \ fonts-noto-color-emoji \ - fonts-noto-core + fonts-noto-core \ + fonts-urw-base35 +# lok is built against the LibreOffice from backports +$STD apt install -y -t "${CODENAME}-backports" \ + libreoffice-writer \ + libreoffice-calc \ + libreoffice-impress \ + libreoffice-draw \ + libreoffice-math msg_ok "Installed Dependencies" -fetch_and_deploy_gh_release "pdfcpu" "pdfcpu/pdfcpu" "prebuild" "latest" "/opt/pdfcpu" "pdfcpu_*_Linux_$(arch_resolve "x86_64" "arm64").tar.xz" -ln -sf "$(find /opt/pdfcpu -type f -name pdfcpu | head -n1)" /usr/local/bin/pdfcpu - -msg_info "Installing unoconverter" -UNOCONVERTER_VERSION=$(get_latest_github_release "gotenberg/unoconverter" "false") -download_file "https://raw.githubusercontent.com/gotenberg/unoconverter/${UNOCONVERTER_VERSION}/unoconv" /usr/local/bin/unoconverter -chmod +x /usr/local/bin/unoconverter -msg_ok "Installed unoconverter" - fetch_and_deploy_gh_release "gotenberg" "gotenberg/gotenberg" "tarball" "latest" "/opt/gotenberg" GO_VERSION="$(awk '$1=="go"{print $2}' /opt/gotenberg/go.mod | cut -d. -f1,2)" setup_go +LOK_VERSION="$(awk -F= '/^ARG LOK_VERSION=/{print $2}' /opt/gotenberg/build/Dockerfile)" +fetch_and_deploy_gh_release "lok" "gotenberg/lok" "prebuild" "$LOK_VERSION" "/usr/local/bin" "lok_${LOK_VERSION#v}_linux_$(arch_resolve "amd64" "arm64").tar.gz" + msg_info "Building Gotenberg (Patience)" cd /opt/gotenberg export CGO_ENABLED=0 $STD go mod download $STD go build -o /usr/local/bin/gotenberg \ - -ldflags "-s -w -X 'github.com/gotenberg/gotenberg/v8/cmd.Version=$(cat ~/.gotenberg)'" \ + -ldflags "-s -w -X 'github.com/gotenberg/gotenberg/v9/cmd.Version=$(cat ~/.gotenberg)'" \ cmd/gotenberg/main.go msg_ok "Built Gotenberg" @@ -70,14 +69,10 @@ Type=simple User=root Environment=LANG=C.UTF-8 Environment=LC_ALL=C.UTF-8 -Environment=PDFTK_BIN_PATH=/usr/bin/pdftk -Environment=QPDF_BIN_PATH=/usr/bin/qpdf -Environment=EXIFTOOL_BIN_PATH=/usr/bin/exiftool -Environment=PDFCPU_BIN_PATH=/usr/local/bin/pdfcpu Environment=CHROMIUM_BIN_PATH=/usr/bin/chromium Environment=CHROMIUM_HYPHEN_DATA_DIR_PATH=/opt/gotenberg/build/chromium-hyphen-data Environment=LIBREOFFICE_BIN_PATH=/usr/lib/libreoffice/program/soffice.bin -Environment=UNOCONVERTER_BIN_PATH=/usr/local/bin/unoconverter +Environment=LOK_BIN_PATH=/usr/local/bin/lok Environment=OTEL_TRACES_EXPORTER=none Environment=OTEL_METRICS_EXPORTER=none Environment=OTEL_LOGS_EXPORTER=none diff --git a/install/guardian-install.sh b/install/guardian-install.sh index 7b6aaf46..828aa328 100644 --- a/install/guardian-install.sh +++ b/install/guardian-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y sqlite3 msg_ok "Installed Dependencies" -NODE_VERSION="24" setup_nodejs +NODE_VERSION="26" setup_nodejs fetch_and_deploy_gh_release "guardian" "HydroshieldMKII/Guardian" "tarball" "latest" "/opt/guardian" msg_info "Configuring ${APPLICATION}" diff --git a/install/hatchet-install.sh b/install/hatchet-install.sh new file mode 100644 index 00000000..f9217190 --- /dev/null +++ b/install/hatchet-install.sh @@ -0,0 +1,99 @@ +#!/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/hatchet-dev/hatchet + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +var_admin_email="${var_admin_email:-admin@example.com}" +var_admin_pass="${var_admin_pass:-}" +until [[ ${#var_admin_pass} -ge 8 && ${#var_admin_pass} -le 64 && "$var_admin_pass" =~ [A-Z] && "$var_admin_pass" =~ [a-z] && "$var_admin_pass" =~ [0-9] ]]; do + var_admin_pass=$(random_password) +done + +msg_info "Installing Dependencies" +$STD apt install -y python3 +msg_ok "Installed Dependencies" + +setup_postgresql +PG_DB_NAME="hatchet" PG_DB_USER="hatchet" setup_postgresql_db +setup_go +fetch_and_deploy_gh_release "hatchet" "hatchet-dev/hatchet" "tarball" +NODE_VERSION="24" NODE_MODULE="$(jq -r '.packageManager' /opt/hatchet/frontend/app/package.json)" setup_nodejs + +msg_info "Building Hatchet" +cd /opt/hatchet/frontend/snippets +$STD python3 generate.py +cd /opt/hatchet/frontend/app +$STD pnpm install --frozen-lockfile +$STD pnpm run build +cd /opt/hatchet +for target in lite admin migrate; do + CGO_ENABLED=0 $STD go build -ldflags="-w -s -X main.Version=v$(cat ~/.hatchet)" -o "bin/hatchet-${target}" "./cmd/hatchet-${target}" +done +rm -rf /opt/hatchet/frontend/app/node_modules ~/.local/share/pnpm/store +$STD go clean -cache -modcache +msg_ok "Built Hatchet" + +msg_info "Configuring Hatchet" +mkdir -p /opt/hatchet_data/config +cat </opt/hatchet_data/.env +DATABASE_URL=postgresql://hatchet:${PG_DB_PASS}@localhost:5432/hatchet?sslmode=disable +SERVER_URL=http://${LOCAL_IP}:8888 +SERVER_AUTH_COOKIE_DOMAIN=${LOCAL_IP} +SERVER_AUTH_COOKIE_INSECURE=t +SERVER_AUTH_SET_EMAIL_VERIFIED=t +SERVER_ALLOW_SIGNUP=f +SERVER_GRPC_BIND_ADDRESS=0.0.0.0 +SERVER_GRPC_PORT=7077 +SERVER_GRPC_INSECURE=t +SERVER_GRPC_BROADCAST_ADDRESS=${LOCAL_IP}:7077 +SERVER_INTERNAL_CLIENT_INTERNAL_GRPC_BROADCAST_ADDRESS=localhost:7077 +SERVER_MSGQUEUE_KIND=postgres +LITE_STATIC_ASSET_DIR=/opt/hatchet/frontend/app/dist +LITE_FRONTEND_BASE_PATH=/ +LITE_FRONTEND_PORT=8081 +LITE_RUNTIME_PORT=8888 +ADMIN_EMAIL=${var_admin_email} +ADMIN_PASSWORD=${var_admin_pass} +EOF +chmod 600 /opt/hatchet_data/.env +cd /opt/hatchet_data +set -a && source /opt/hatchet_data/.env && set +a +$STD /opt/hatchet/bin/hatchet-migrate +$STD /opt/hatchet/bin/hatchet-admin quickstart --config /opt/hatchet_data/config --generated-config-dir /opt/hatchet_data/config --skip certs --overwrite=false +msg_ok "Configured Hatchet" + +msg_info "Creating Service" +cat </etc/systemd/system/hatchet.service +[Unit] +Description=Hatchet +After=network.target postgresql.service +Requires=postgresql.service + +[Service] +Type=simple +WorkingDirectory=/opt/hatchet_data +EnvironmentFile=/opt/hatchet_data/.env +ExecStartPre=/opt/hatchet/bin/hatchet-migrate +ExecStart=/opt/hatchet/bin/hatchet-lite --config /opt/hatchet_data/config +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now hatchet +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/homelable-install.sh b/install/homelable-install.sh index 2356e5b7..36d2e78e 100644 --- a/install/homelable-install.sh +++ b/install/homelable-install.sh @@ -33,7 +33,13 @@ msg_ok "Set up Python Backend" msg_info "Configuring Homelable" mkdir -p /opt/homelable/data SECRET_KEY=$(openssl rand -hex 32) -BCRYPT_HASH=$(/opt/homelable/backend/.venv/bin/python -c "import bcrypt; print(bcrypt.hashpw(b'admin', bcrypt.gensalt()).decode())") +HOMELABLE_PASS=$(random_password 20) +BCRYPT_HASH=$(/opt/homelable/backend/.venv/bin/python -c "import bcrypt,sys; print(bcrypt.hashpw(sys.argv[1].encode(), bcrypt.gensalt()).decode())" "$HOMELABLE_PASS") +{ + echo "Homelable Credentials" + echo "Username: admin" + echo "Password: ${HOMELABLE_PASS}" +} >~/homelable.creds cat </opt/homelable/backend/.env SECRET_KEY=${SECRET_KEY} SQLITE_PATH=/opt/homelable/data/homelab.db diff --git a/install/immich-install.sh b/install/immich-install.sh index 953a50e3..cc3feb22 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -18,7 +18,12 @@ if is_debian && [[ "$(get_os_version_major)" -lt 13 ]]; then exit 238 fi -RELEASE="v3.3.5" +if [[ "$(arch_resolve)" == "amd64" ]] && ! grep -qm1 sse4_2 /proc/cpuinfo; then + msg_error "Immich needs a CPU with SSE4.2: its web build stops with 'Illegal instruction' on older ones." + exit 236 +fi + +RELEASE="v3.4.1" if lscpu | grep -q 'GenuineIntel'; then echo "" echo "" @@ -63,13 +68,10 @@ msg_info "Installing dependencies" $STD apt install --no-install-recommends -y \ git \ redis \ - autoconf \ + pigz \ build-essential \ python3-dev \ - automake \ - cmake \ jq \ - libtool \ libltdl-dev \ libgdk-pixbuf-2.0-dev \ libbrotli-dev \ @@ -90,8 +92,6 @@ $STD apt install --no-install-recommends -y \ libltdl7 \ libopenjp2-7 \ libopenjp2-7-dev \ - meson \ - ninja-build \ pkg-config \ mesa-utils \ mesa-va-drivers \ @@ -108,7 +108,7 @@ $STD apt install --no-install-recommends -y \ libhwy-dev \ libwebp-dev \ libaom-dev \ - ccache + unzip setup_deb822_repo \ "jellyfin" \ @@ -129,6 +129,28 @@ if [[ "$CTTYPE" == "0" && -d /dev/dri ]]; then fi msg_ok "Dependencies Installed" +INSTALL_DIR="/opt/${APPLICATION}" +UPLOAD_DIR="${INSTALL_DIR}/upload" +SRC_DIR="${INSTALL_DIR}/source" +APP_DIR="${INSTALL_DIR}/app" +PLUGIN_DIR="${APP_DIR}/plugins/immich-plugin-core" +ML_DIR="${APP_DIR}/machine-learning" +GEO_DIR="${INSTALL_DIR}/geodata" +mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache} + +msg_info "Installing GeoNames data" +cd "$GEO_DIR" +CURL_RETRIES=6 CURL_CONNECT_TO=30 curl_with_retry "https://download.geonames.org/export/dump/admin1CodesASCII.txt" "admin1CodesASCII.txt" +CURL_RETRIES=6 CURL_CONNECT_TO=30 curl_with_retry "https://download.geonames.org/export/dump/admin2Codes.txt" "admin2Codes.txt" +CURL_RETRIES=6 CURL_CONNECT_TO=30 curl_with_retry "https://download.geonames.org/export/dump/countryInfo.txt" "countryInfo.txt" +CURL_RETRIES=6 CURL_CONNECT_TO=30 curl_with_retry "https://download.geonames.org/export/dump/cities500.zip" "cities500.zip" +curl_with_retry "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson" "ne_10m_admin_0_countries.geojson" +unzip -q cities500.zip +date --iso-8601=seconds | tr -d "\n" >geodata-date.txt +rm cities500.zip +cd ~ +msg_ok "Installed GeoNames data" + MISE_ARCH="x64" [[ "$(arch_resolve)" == "arm64" ]] && MISE_ARCH="arm64" fetch_and_deploy_gh_release "mise" "jdx/mise" "singlefile" "latest" "/usr/local/bin" "mise-v*-linux-${MISE_ARCH}" @@ -167,194 +189,60 @@ ACTUAL_PG_VERSION=$(ls /etc/postgresql/ 2>/dev/null | sort -V | tail -1) ACTUAL_PG_VERSION=${ACTUAL_PG_VERSION:-16} VCHORD_RELEASE="1.1.1" -fetch_and_deploy_gh_release "VectorChord" "tensorchord/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-${ACTUAL_PG_VERSION}-vchord_*_$(arch_resolve).deb" +fetch_and_deploy_gh_release "VectorChord" "supervc-stack/VectorChord" "binary" "${VCHORD_RELEASE}" "/tmp" "postgresql-${ACTUAL_PG_VERSION}-vchord_*_$(arch_resolve).deb" sed -i "s/^#shared_preload.*/shared_preload_libraries = 'vchord.so'/" /etc/postgresql/${ACTUAL_PG_VERSION}/main/postgresql.conf systemctl restart postgresql.service PG_DB_NAME="immich" PG_DB_USER="immich" PG_DB_GRANT_SUPERUSER="true" PG_DB_SKIP_ALTER_ROLE="true" setup_postgresql_db -msg_info "Installing GCC-13 (available as fallback compiler)" -$STD apt install -y gcc-13 g++-13 -msg_ok "Installed GCC-13" - -msg_warn "Compiling Custom Photo-processing Libraries (can take anywhere from 15min to 2h)" LD_LIBRARY_PATH=/usr/local/lib export LD_RUN_PATH=/usr/local/lib -STAGING_DIR=/opt/staging -BASE_REPO="https://github.com/immich-app/base-images" -BASE_DIR=${STAGING_DIR}/base-images -SOURCE_DIR=${STAGING_DIR}/image-source -$STD git clone -b main "$BASE_REPO" "$BASE_DIR" -mkdir -p "$SOURCE_DIR" - -msg_info "(1/6) Compiling libjxl" -cd "$STAGING_DIR" -SOURCE=${SOURCE_DIR}/libjxl -LIBJXL_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libjxl.json)" -$STD git clone https://github.com/libjxl/libjxl.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$LIBJXL_REVISION" -$STD git submodule update --init --recursive --depth 1 --recommend-shallow -mkdir build -cd build -$STD cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_TESTING=OFF \ - -DJPEGXL_ENABLE_DOXYGEN=OFF \ - -DJPEGXL_ENABLE_MANPAGES=OFF \ - -DJPEGXL_ENABLE_BENCHMARK=OFF \ - -DJPEGXL_ENABLE_EXAMPLES=OFF \ - -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \ - -DJPEGXL_FORCE_SYSTEM_HWY=ON \ - -DJPEGXL_ENABLE_HWY_AVX3=ON \ - -DJPEGXL_ENABLE_HWY_AVX3_ZEN4=ON \ - -DJPEGXL_ENABLE_HWY_SVE=OFF \ - -DJPEGXL_ENABLE_HWY_SVE2=OFF \ - -DJPEGXL_ENABLE_HWY_SVE2_128=ON \ - -DJPEGXL_ENABLE_PLUGINS=ON \ - .. -$STD cmake --build . -- -j"$(nproc)" -$STD cmake --install . -ldconfig /usr/local/lib -$STD make clean -cd "$STAGING_DIR" -rm -rf "$SOURCE"/{build,third_party} -msg_ok "(1/6) Compiled libjxl" - -msg_info "(2/6) Compiling jpegli" -SOURCE=${SOURCE_DIR}/jpegli -JPEGLI_LIBJPEG_LIBRARY_SOVERSION="62" -JPEGLI_LIBJPEG_LIBRARY_VERSION="62.3.0" -JPEGLI_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/jpegli.json)" -$STD git clone https://github.com/google/jpegli.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$JPEGLI_REVISION" -$STD git submodule update --init --depth 1 --recommend-shallow third_party/libjpeg-turbo -$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-empty-dht-marker.patch -$STD git apply -3 "$BASE_DIR"/server/sources/jpegli-patches/jpegli-icc-warning.patch -mkdir build -cd build -$STD cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_TESTING=OFF \ - -DJPEGLI_ENABLE_DOXYGEN=OFF \ - -DJPEGLI_ENABLE_MANPAGES=OFF \ - -DJPEGLI_ENABLE_BENCHMARK=OFF \ - -DJPEGLI_ENABLE_TOOLS=OFF \ - -DJPEGLI_ENABLE_DEVTOOLS=OFF \ - -DJPEGLI_ENABLE_FUZZERS=OFF \ - -DJPEGLI_ENABLE_JNI=OFF \ - -DJPEGLI_ENABLE_OPENEXR=OFF \ - -DJPEGLI_ENABLE_SJPEG=OFF \ - -DJPEGLI_ENABLE_SKCMS=OFF \ - -DJPEGLI_FORCE_SYSTEM_HWY=ON \ - -DJPEGLI_FORCE_SYSTEM_LCMS2=ON \ - -DJPEGLI_ENABLE_JPEGLI_LIBJPEG=ON \ - -DJPEGLI_INSTALL_JPEGLI_LIBJPEG=ON \ - -DJPEGLI_ENABLE_HWY_AVX3=ON \ - -DJPEGLI_ENABLE_HWY_AVX3_ZEN4=ON \ - -DJPEGLI_ENABLE_HWY_SVE=OFF \ - -DJPEGLI_ENABLE_HWY_SVE2=OFF \ - -DJPEGLI_ENABLE_HWY_SVE2_128=ON \ - -DJPEGLI_LIBJPEG_LIBRARY_SOVERSION="$JPEGLI_LIBJPEG_LIBRARY_SOVERSION" \ - -DJPEGLI_LIBJPEG_LIBRARY_VERSION="$JPEGLI_LIBJPEG_LIBRARY_VERSION" \ - -DLIBJPEG_TURBO_VERSION_NUMBER=2001005 \ - .. -$STD cmake --build . -- -j"$(nproc)" -$STD cmake --install . -ldconfig /usr/local/lib -$STD make clean -cd "$STAGING_DIR" -rm -rf "$SOURCE"/{build,third_party} -msg_ok "(2/6) Compiled jpegli" - -msg_info "(3/6) Compiling libheif" -SOURCE=${SOURCE_DIR}/libheif -LIBHEIF_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libheif.json)" -$STD git clone https://github.com/strukturag/libheif.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$LIBHEIF_REVISION" -mkdir build -cd build -$STD cmake --preset=release-noplugins \ - -DWITH_DAV1D=ON \ - -DENABLE_PARALLEL_TILE_DECODING=ON \ - -DWITH_LIBSHARPYUV=ON \ - -DWITH_LIBDE265=ON \ - -DWITH_AOM_DECODER=OFF \ - -DWITH_AOM_ENCODER=ON \ - -DWITH_X265=OFF \ - -DWITH_EXAMPLES=OFF \ - .. -$STD make install -j"$(nproc)" -ldconfig /usr/local/lib -$STD make clean -cd "$STAGING_DIR" -rm -rf "$SOURCE"/build -msg_ok "(3/6) Compiled libheif" - -msg_info "(4/6) Compiling libraw" -SOURCE=${SOURCE_DIR}/libraw -LIBRAW_REVISION="e419de08001de28ae6988ecb22df47e52b9c5eaa" -# : "${LIBRAW_REVISION:=$(jq -cr '.revision' $BASE_DIR/server/sources/libraw.json)}" -$STD git clone https://github.com/LibRaw/LibRaw.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$LIBRAW_REVISION" -$STD autoreconf --install -$STD ./configure --disable-examples -$STD make -j"$(nproc)" -$STD make install -ldconfig /usr/local/lib -$STD make clean -cd "$STAGING_DIR" -msg_ok "(4/6) Compiled libraw" - -msg_info "(5/6) Compiling imagemagick" -SOURCE=$SOURCE_DIR/imagemagick -: "${IMAGEMAGICK_REVISION:=$(jq -cr '.revision' $BASE_DIR/server/sources/imagemagick.json)}" -$STD git clone https://github.com/ImageMagick/ImageMagick.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$IMAGEMAGICK_REVISION" -$STD ./configure --with-modules CPPFLAGS="-DMAGICK_LIBRAW_VERSION_TAIL=202502" -$STD make -j"$(nproc)" -$STD make install -ldconfig /usr/local/lib -$STD make clean -cd "$STAGING_DIR" -msg_ok "(5/6) Compiled imagemagick" - -msg_info "(6/6) Compiling libvips" -SOURCE=$SOURCE_DIR/libvips -LIBVIPS_REVISION="$(jq -cr '.revision' "$BASE_DIR"/server/sources/libvips.json)" -$STD git clone https://github.com/libvips/libvips.git "$SOURCE" -cd "$SOURCE" -$STD git reset --hard "$LIBVIPS_REVISION" -$STD git apply "$BASE_DIR"/server/sources/libvips-patches/0001-put-other-loaders-ahead-of-dcrawload.patch -$STD meson setup build --buildtype=release --libdir=lib -Dintrospection=disabled -Dtiff=disabled -cd build -$STD ninja install -ldconfig /usr/local/lib -cd "$STAGING_DIR" -rm -rf "$SOURCE"/build -msg_ok "(6/6) Compiled libvips" -cat <~/.immich_library_revisions -imagemagick: $IMAGEMAGICK_REVISION -jpegli: $JPEGLI_REVISION -libheif: $LIBHEIF_REVISION -libjxl: $LIBJXL_REVISION -libraw: $LIBRAW_REVISION -libvips: $LIBVIPS_REVISION -EOF -msg_ok "Custom Photo-processing Libraries Compiled Successfully" -INSTALL_DIR="/opt/${APPLICATION}" -UPLOAD_DIR="${INSTALL_DIR}/upload" -SRC_DIR="${INSTALL_DIR}/source" -APP_DIR="${INSTALL_DIR}/app" -PLUGIN_DIR="${APP_DIR}/plugins/immich-plugin-core" -ML_DIR="${APP_DIR}/machine-learning" -GEO_DIR="${INSTALL_DIR}/geodata" -mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache} +# Immich ships the custom photo-processing libraries (libjxl, jpegli, libheif, +# libraw, ImageMagick, libvips) prebuilt in its own OCI base image. Pull the one +# the release's Dockerfile pins (skopeo + umoci, no container runtime) and use its +# /usr/local. There is no compile fallback: this needs Proxmox VE 9.1 or newer. +msg_info "Deploying prebuilt image-processing libraries" +BASE_REF="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/${RELEASE}/server/Dockerfile" | awk '/^FROM ghcr.io\/immich-app\/base-server-dev/ {print $2; exit}')" || true +if [[ -z "$BASE_REF" ]]; then + msg_error "Could not read the base image from Immich ${RELEASE}'s Dockerfile." + exit 115 +fi +# skopeo refuses a reference with both a tag and a digest; the digest is the pin. +BASE_IMAGE="$BASE_REF" +[[ "$BASE_REF" == *@sha256:* ]] && BASE_IMAGE="ghcr.io/immich-app/base-server-dev@${BASE_REF#*@}" +if ! $STD apt install -y --no-install-recommends skopeo umoci; then + msg_error "Could not install skopeo and umoci, which Immich needs for its image-processing libraries." + exit 105 +fi +OCI_DIR="$(mktemp -d)" +OCI_BUNDLE="$(mktemp -d)" +if ! $STD skopeo copy --override-os linux --override-arch "$(arch_resolve amd64 arm64)" "docker://${BASE_IMAGE}" "oci:${OCI_DIR}:img"; then + rm -rf "$OCI_DIR" "$OCI_BUNDLE" + msg_error "Could not download Immich's base image (${BASE_IMAGE})." + exit 115 +fi +if ! $STD umoci unpack --image "${OCI_DIR}:img" "$OCI_BUNDLE"; then + rm -rf "$OCI_DIR" "$OCI_BUNDLE" + msg_error "Could not unpack Immich's base image. Immich needs Proxmox VE 9.1 or newer." + exit 105 +fi +# The libraries, headers and ImageMagick data, without the node runtime, global +# node modules and ffmpeg of the node base image: this script provides those. +tar -C "${OCI_BUNDLE}/rootfs/usr/local" \ + --exclude=./bin/node --exclude=./bin/npm --exclude=./bin/npx --exclude=./bin/corepack \ + --exclude=./bin/ffmpeg --exclude=./bin/ffprobe \ + --exclude=./lib/node_modules --exclude=./include/node \ + -cf - . | tar -C /usr/local -xf - +rm -rf "$OCI_DIR" "$OCI_BUNDLE" +export LD_LIBRARY_PATH=/usr/local/lib +ldconfig /usr/local/lib +if ! vips --version >/dev/null 2>&1 || ! pkg-config --exists vips; then + msg_error "The prebuilt libvips from ${BASE_IMAGE} does not work in this container." + exit 1 +fi +echo "$BASE_REF" >~/.immich_base_image +msg_ok "Deployed prebuilt image-processing libraries" fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "${RELEASE}" "$SRC_DIR" PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)" @@ -396,7 +284,7 @@ cp -a web/build "$APP_DIR"/www cp LICENSE "$APP_DIR" cd "$SRC_DIR" export MISE_TRUSTED_CONFIG_PATHS="$SRC_DIR"/mise.toml -export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg +export MISE_DISABLE_TOOLS=github:jellyfin/jellyfin-ffmpeg,java,terragrunt,opentofu,restic,npm:@openapitools/openapi-generator-cli export MISE_LOCKFILE_MODE=merge MISE_LOCKFILE_PLATFORMS="linux-$(arch_resolve x64 arm64)" mise_ok=0 for i in 1 2 3; do @@ -414,7 +302,8 @@ if ! command -v extism-js >/dev/null 2>&1; then # fetch_and_deploy_gh_release cannot deploy (singlefile leaves it compressed, # prebuild only handles zip/tar). Fetch + gunzip it directly. EXTISM_ARCH="$(arch_resolve x86_64 aarch64)" - curl_download /tmp/extism-js.gz "https://github.com/extism/js-pdk/releases/download/v1.6.0/extism-js-${EXTISM_ARCH}-linux-v1.6.0.gz" + EXTISM_VERSION="$(grep -oP '"github:extism/js-pdk"\s*=\s*"\K[^"]+' "$SRC_DIR"/mise.toml)" + curl_download /tmp/extism-js.gz "https://github.com/extism/js-pdk/releases/download/${EXTISM_VERSION}/extism-js-${EXTISM_ARCH}-linux-${EXTISM_VERSION}.gz" gunzip -f /tmp/extism-js.gz install -m 0755 /tmp/extism-js /usr/local/bin/extism-js rm -f /tmp/extism-js @@ -426,6 +315,25 @@ cp -r ./packages/plugin-core/dist "$PLUGIN_DIR"/dist cp ./packages/plugin-core/manifest.json "$PLUGIN_DIR" msg_ok "Installed Immich Server, Web and Plugin Components" +RESTIC_REF="$(grep -oP 'futo-org/restic:sha-\K[0-9a-f]+' "$SRC_DIR"/server/Dockerfile)" +RESTIC_PROXY_REF="$(grep -oP 'futo-org/backups/restic-proxy:\K[^@]+' "$SRC_DIR"/server/Dockerfile)" +FUTO_DIR=/opt/staging/futo +rm -rf "$FUTO_DIR" +$STD git clone --filter=blob:none --no-checkout https://github.com/futo-org/restic "$FUTO_DIR"/restic +$STD git -C "$FUTO_DIR"/restic checkout "$RESTIC_REF" +$STD git clone --depth 1 --filter=blob:none --sparse -b "$RESTIC_PROXY_REF" https://github.com/futo-org/backups "$FUTO_DIR"/backups +$STD git -C "$FUTO_DIR"/backups sparse-checkout set packages/restic-proxy +GO_VERSION="$(awk '/^go /{print $2}' "$FUTO_DIR"/backups/packages/restic-proxy/go.mod)" setup_go +msg_info "Building restic for FUTO Backups" +cd "$FUTO_DIR"/restic +$STD env CGO_ENABLED=0 go build -o /usr/local/bin/restic ./cmd/restic +cd "$FUTO_DIR"/backups/packages/restic-proxy +$STD env CGO_ENABLED=0 go build -o /usr/local/bin/restic-proxy . +cd "$SRC_DIR" +rm -rf "$FUTO_DIR" +echo "${RESTIC_REF} ${RESTIC_PROXY_REF}" >~/.immich_restic +msg_ok "Built restic for FUTO Backups" + cd "$SRC_DIR"/machine-learning $STD useradd -U -s /usr/sbin/nologin -r -M -d "$INSTALL_DIR" immich mkdir -p "$ML_DIR" @@ -444,7 +352,7 @@ if [[ -f ~/.openvino ]]; then msg_ok "Pre-installed Python ${ML_PYTHON}" msg_info "Installing Intel OpenVINO machine-learning" for attempt in $(seq 1 3); do - $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra openvino --no-dev --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break + $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra openvino --no-dev --upgrade-package watchfiles --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break [[ $attempt -eq 3 ]] && { msg_error "uv sync failed three times, the machine-learning environment was not built"; exit 1; } # Parallel fetches can trip DNS rate limits (AdGuard, Pi-hole); retry one at a time. export UV_CONCURRENT_DOWNLOADS=1 UV_CONCURRENT_BUILDS=1 UV_CONCURRENT_INSTALLS=1 @@ -462,7 +370,7 @@ else msg_ok "Pre-installed Python ${ML_PYTHON}" msg_info "Installing machine-learning" for attempt in $(seq 1 3); do - $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra cpu --no-dev --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break + $STD sudo --preserve-env=VIRTUAL_ENV,UV_HTTP_TIMEOUT,UV_CONCURRENT_DOWNLOADS,UV_CONCURRENT_BUILDS,UV_CONCURRENT_INSTALLS -Pnu immich uv sync --extra cpu --no-dev --upgrade-package watchfiles --active --link-mode copy -n -p "${ML_PYTHON}" --managed-python && break [[ $attempt -eq 3 ]] && { msg_error "uv sync failed three times, the machine-learning environment was not built"; exit 1; } # Parallel fetches can trip DNS rate limits (AdGuard, Pi-hole); retry one at a time. export UV_CONCURRENT_DOWNLOADS=1 UV_CONCURRENT_BUILDS=1 UV_CONCURRENT_INSTALLS=1 @@ -481,20 +389,8 @@ grep -rlE "'/build'" | xargs -n1 sed -i "s|'/build'|'$APP_DIR'|g" sed -i "s@\"/cache\"@\"$INSTALL_DIR/cache\"@g" "$ML_DIR"/immich_ml/config.py ln -s "$UPLOAD_DIR" "$APP_DIR"/upload ln -s "$UPLOAD_DIR" "$ML_DIR"/upload - -msg_info "Installing GeoNames data" -cd "$GEO_DIR" -curl_with_retry "https://download.geonames.org/export/dump/admin1CodesASCII.txt" "admin1CodesASCII.txt" -curl_with_retry "https://download.geonames.org/export/dump/admin2Codes.txt" "admin2Codes.txt" -curl_with_retry "https://download.geonames.org/export/dump/countryInfo.txt" "countryInfo.txt" -curl_with_retry "https://download.geonames.org/export/dump/cities500.zip" "cities500.zip" -curl_with_retry "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/v5.1.2/geojson/ne_10m_admin_0_countries.geojson" "ne_10m_admin_0_countries.geojson" -unzip -q cities500.zip -date --iso-8601=seconds | tr -d "\n" >geodata-date.txt -rm cities500.zip cd "$INSTALL_DIR" ln -s "$GEO_DIR" "$APP_DIR" -msg_ok "Installed GeoNames data" # MickLesk temporary patch for HEIC thumbnail gen MEDIA_REPO_JS="/opt/immich/app/dist/repositories/media.repository.js" diff --git a/install/immichframe-install.sh b/install/immichframe-install.sh index cba17016..2642baf9 100644 --- a/install/immichframe-install.sh +++ b/install/immichframe-install.sh @@ -17,8 +17,8 @@ msg_info "Installing Dependencies" if [[ "$(arch_resolve)" == "arm64" ]]; then $STD apt install -y libicu-dev libssl-dev gettext-base curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh - $STD bash /tmp/dotnet-install.sh --channel 8.0 --install-dir /usr/lib/dotnet8 - ln -sf /usr/lib/dotnet8/dotnet /usr/bin/dotnet + $STD bash /tmp/dotnet-install.sh --channel 10.0 --install-dir /usr/lib/dotnet10 + ln -sf /usr/lib/dotnet10/dotnet /usr/bin/dotnet rm -f /tmp/dotnet-install.sh else setup_deb822_repo \ @@ -31,8 +31,8 @@ else libicu-dev \ libssl-dev \ gettext-base \ - dotnet-sdk-8.0 \ - aspnetcore-runtime-8.0 + dotnet-sdk-10.0 \ + aspnetcore-runtime-10.0 fi msg_ok "Installed Dependencies" diff --git a/install/inngest-install.sh b/install/inngest-install.sh new file mode 100644 index 00000000..f0bea862 --- /dev/null +++ b/install/inngest-install.sh @@ -0,0 +1,62 @@ +#!/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/inngest/inngest + +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 redis-server +sed -i 's/^appendonly no/appendonly yes/' /etc/redis/redis.conf +systemctl restart redis-server +msg_ok "Installed Dependencies" + +PG_VERSION="17" setup_postgresql +PG_DB_NAME="inngest" PG_DB_USER="inngest" setup_postgresql_db +fetch_and_deploy_gh_release "inngest" "inngest/inngest" "prebuild" "latest" "/opt/inngest" "inngest_*_linux_$(arch_resolve).tar.gz" + +msg_info "Configuring Inngest" +mkdir -p /opt/inngest_data +cat </opt/inngest_data/.env +INNGEST_PORT=8288 +INNGEST_POSTGRES_URI=postgres://inngest:${PG_DB_PASS}@127.0.0.1:5432/inngest?sslmode=disable +INNGEST_REDIS_URI=redis://127.0.0.1:6379 +INNGEST_EVENT_KEY=$(openssl rand -hex 32) +INNGEST_SIGNING_KEY=$(openssl rand -hex 32) +DO_NOT_TRACK=1 +EOF +chmod 600 /opt/inngest_data/.env +msg_ok "Configured Inngest" + +msg_info "Creating Service" +cat </etc/systemd/system/inngest.service +[Unit] +Description=Inngest +After=network.target postgresql.service redis-server.service +Requires=postgresql.service redis-server.service + +[Service] +Type=simple +WorkingDirectory=/opt/inngest_data +EnvironmentFile=/opt/inngest_data/.env +ExecStart=/opt/inngest/inngest start +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now inngest +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/investbrain-install.sh b/install/investbrain-install.sh index c616592f..0a76053c 100644 --- a/install/investbrain-install.sh +++ b/install/investbrain-install.sh @@ -139,6 +139,7 @@ server { fastcgi_pass unix:${PHP_SOCK}; fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name; include fastcgi_params; + fastcgi_param HTTP_HOST \$http_host; fastcgi_hide_header X-Powered-By; fastcgi_read_timeout 300; } diff --git a/install/invoiceninja-install.sh b/install/invoiceninja-install.sh index 77b07824..53cfcbb6 100644 --- a/install/invoiceninja-install.sh +++ b/install/invoiceninja-install.sh @@ -134,6 +134,7 @@ server { fastcgi_pass unix:__PHP_SOCK__; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; include fastcgi_params; + fastcgi_param HTTP_HOST $http_host; fastcgi_param HTTP_X_FORWARDED_HOST $http_host; fastcgi_param HTTP_X_FORWARDED_PROTO $scheme; fastcgi_read_timeout 300; diff --git a/install/itsm-ng-install.sh b/install/itsm-ng-install.sh index bbaa1443..542d62f8 100644 --- a/install/itsm-ng-install.sh +++ b/install/itsm-ng-install.sh @@ -22,8 +22,8 @@ MARIADB_DB_NAME="itsmng_db" MARIADB_DB_USER="itsmng" MARIADB_DB_EXTRA_GRANTS="GR msg_info "Installing ITSM-NG" setup_deb822_repo \ "itsm-ng" \ - "http://deb.itsm-ng.org/pubkey.gpg" \ - "http://deb.itsm-ng.org/$(get_os_info id)/" \ + "https://deb.itsm-ng.org/pubkey.gpg" \ + "https://deb.itsm-ng.org/$(get_os_info id)/" \ "$(get_os_info codename)" $STD apt install -y itsm-ng cd /usr/share/itsm-ng diff --git a/install/kan-install.sh b/install/kan-install.sh index fbd22052..42b12e58 100644 --- a/install/kan-install.sh +++ b/install/kan-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" PG_VERSION="16" setup_postgresql PG_DB_NAME="kan" PG_DB_USER="kan" setup_postgresql_db -NODE_VERSION="20" NODE_MODULE="pnpm" setup_nodejs +NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs fetch_and_deploy_gh_tag "kan" "kanbn/kan" "latest" diff --git a/install/karakeep-install.sh b/install/karakeep-install.sh index 45fc35c9..377882b1 100644 --- a/install/karakeep-install.sh +++ b/install/karakeep-install.sh @@ -24,7 +24,7 @@ $STD apt install -y \ ffmpeg msg_ok "Installed Dependencies" -fetch_and_deploy_gh_release "monolith" "Y2Z/monolith" "singlefile" "latest" "/usr/bin" "monolith-gnu-linux-$(arch_resolve "x86_64" "aarch64")" +fetch_and_deploy_gh_release "monolith" "Y2Z/monolith" "singlefile" "latest" "/usr/bin" "monolith-cli-linux-$(arch_resolve "x86_64" "aarch64")" fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp-nightly-builds" "singlefile" "latest" "/usr/bin" "yt-dlp_linux" fetch_and_deploy_gh_release "deno" "denoland/deno" "prebuild" "latest" "/usr/local/bin" "deno-$(uname -m)-unknown-linux-gnu.zip" setup_meilisearch diff --git a/install/keycloak-install.sh b/install/keycloak-install.sh index 4feb8958..e522551f 100644 --- a/install/keycloak-install.sh +++ b/install/keycloak-install.sh @@ -21,6 +21,7 @@ PG_DB_NAME="keycloak" PG_DB_USER="keycloak" setup_postgresql_db fetch_and_deploy_gh_release "keycloak_app" "keycloak/keycloak" "prebuild" "latest" "/opt/keycloak" "keycloak-*.tar.gz" msg_info "Creating Service" +ADMIN_PASS=$(random_password 20) cat </etc/systemd/system/keycloak.service [Unit] Description=Keycloak Service @@ -40,7 +41,7 @@ Environment="KC_DB_USERNAME=keycloak" Environment="KC_DB_PASSWORD=$PG_DB_PASS" Environment="KC_HTTP_ENABLED=true" Environment="KC_BOOTSTRAP_ADMIN_USERNAME=tmpadm" -Environment="KC_BOOTSTRAP_ADMIN_PASSWORD=admin123" +Environment="KC_BOOTSTRAP_ADMIN_PASSWORD=${ADMIN_PASS}" # Comment following line and uncomment the next 2 if working behind a reverse proxy Environment="KC_HOSTNAME_STRICT=false" #Environment="KC_HOSTNAME=keycloak.example.com" @@ -48,6 +49,13 @@ Environment="KC_HOSTNAME_STRICT=false" [Install] WantedBy=multi-user.target EOF +chmod 600 /etc/systemd/system/keycloak.service +{ + echo "Keycloak Credentials" + echo "Temporary admin, replace it with a permanent one" + echo "Username: tmpadm" + echo "Password: ${ADMIN_PASS}" +} >~/keycloak.creds systemctl enable -q --now keycloak msg_ok "Created Service" diff --git a/install/kimai-install.sh b/install/kimai-install.sh index be054803..3a77019a 100644 --- a/install/kimai-install.sh +++ b/install/kimai-install.sh @@ -40,6 +40,7 @@ cp .env.dist .env sed -i "/^DATABASE_URL=.*/c\DATABASE_URL=mysql://kimai:$MARIADB_DB_PASS@127.0.0.1:3306/kimai_db?charset=utf8mb4&serverVersion=mariadb-$MYSQL_VERSION" /opt/kimai/.env sed -i "s|^APP_SECRET=.*|APP_SECRET=$APP_SECRET|" /opt/kimai/.env $STD bin/console kimai:install -n +ADMIN_PASS=$(random_password 20) $STD expect <~/kimai.creds $STD composer update --no-interaction cat </opt/kimai/config/packages/local.yaml kimai: diff --git a/install/langflow-install.sh b/install/langflow-install.sh new file mode 100644 index 00000000..b2ab98a6 --- /dev/null +++ b/install/langflow-install.sh @@ -0,0 +1,68 @@ +#!/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/langflow-ai/langflow + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +NODE_VERSION="24" setup_nodejs +PYTHON_VERSION="3.14" USE_UVX="YES" setup_uv + +LANGFLOW_VERSION="${var_appversion:-$(get_latest_github_release "langflow-ai/langflow")}" +msg_info "Installing Langflow ${LANGFLOW_VERSION#v}" +$STD uv venv --python 3.14 /opt/langflow/.venv +$STD uv pip install --python /opt/langflow/.venv/bin/python "langflow==${LANGFLOW_VERSION#v}" +cat <~/.langflow +${LANGFLOW_VERSION#v} +EOF +msg_ok "Installed Langflow ${LANGFLOW_VERSION#v}" + +msg_info "Configuring Langflow" +mkdir -p /opt/langflow_data/logs +cat </opt/langflow_data/.env +LANGFLOW_HOST=0.0.0.0 +LANGFLOW_PORT=7860 +LANGFLOW_CONFIG_DIR=/opt/langflow_data +LANGFLOW_DATABASE_URL=sqlite:////opt/langflow_data/langflow.db +LANGFLOW_KNOWLEDGE_BASES_DIR=/opt/langflow_data/knowledge_bases +LANGFLOW_LOG_FILE=/opt/langflow_data/logs/langflow.log +LANGFLOW_SECRET_KEY=$(/opt/langflow/.venv/bin/python -c "from secrets import token_urlsafe; print(token_urlsafe(32))") +LANGFLOW_AUTO_LOGIN=False +LANGFLOW_SUPERUSER='${var_admin_user:-langflow}' +LANGFLOW_SUPERUSER_PASSWORD='${var_admin_pass:-$(random_password)}' +EOF +chmod 600 /opt/langflow_data/.env +msg_ok "Configured Langflow" + +msg_info "Creating Service" +cat </etc/systemd/system/langflow.service +[Unit] +Description=Langflow +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/opt/langflow_data +EnvironmentFile=/opt/langflow_data/.env +ExecStart=/opt/langflow/.venv/bin/langflow run +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now langflow +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/libredbstudio-install.sh b/install/libredbstudio-install.sh new file mode 100644 index 00000000..f02ecea4 --- /dev/null +++ b/install/libredbstudio-install.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Yusuf Gundogdu (yusuf-gundogdu) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://libredb.org + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "libredb-studio" "libredb/libredb-studio" "binary" "latest" "" "libredb-studio_*_$(arch_resolve).deb" + +msg_info "Configuring LibreDB Studio" +JWT_SECRET="$(openssl rand -hex 32)" +ADMIN_PASSWORD="$(openssl rand -base64 18 | tr -d '/+=' | cut -c1-16)" +mkdir -p /etc/libredb-studio +cat </etc/libredb-studio/env +HOSTNAME=0.0.0.0 +PORT=3000 +# Cookie is marked Secure on non-loopback hosts; plain-HTTP LXC login loops without this. +AUTH_COOKIE_SECURE=false +AUTH_BOOTSTRAP=off +JWT_SECRET=${JWT_SECRET} +ADMIN_EMAIL=admin@libredb.org +ADMIN_PASSWORD=${ADMIN_PASSWORD} +EOF +chmod 600 /etc/libredb-studio/env +systemctl enable -q --now libredb-studio +msg_ok "Configured LibreDB Studio" + +motd_ssh +customize +cleanup_lxc diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 5009ca9f..2c5c208e 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -52,7 +52,7 @@ msg_info "Configuring LibreNMS" $STD useradd librenms -d /opt/librenms -M -r -s "$(which bash)" mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage,html} cd /opt/librenms -APP_KEY=$(openssl rand -base64 40 | tr -dc 'a-zA-Z0-9') +APP_KEY="base64:$(openssl rand -base64 32)" $STD uv venv --clear .venv $STD source .venv/bin/activate $STD uv pip install -r requirements.txt @@ -124,7 +124,6 @@ EOF $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 migrate --force" -$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan key:generate --force" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms db:seed --force" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms user:add -p ${APP_PASSWORD} ${APP_USER} --role=admin" diff --git a/install/marimo-install.sh b/install/marimo-install.sh new file mode 100644 index 00000000..eda33de9 --- /dev/null +++ b/install/marimo-install.sh @@ -0,0 +1,62 @@ +#!/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/marimo-team/marimo + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +PYTHON_VERSION="3.13" setup_uv + +MARIMO_VERSION="${var_appversion:-$(get_latest_github_release "marimo-team/marimo")}" +msg_info "Installing marimo ${MARIMO_VERSION}" +$STD uv venv --python 3.13 /opt/marimo/.venv +$STD uv pip install --python /opt/marimo/.venv/bin/python "marimo[recommended]==${MARIMO_VERSION}" pandas +cat <~/.marimo +${MARIMO_VERSION} +EOF +msg_ok "Installed marimo ${MARIMO_VERSION}" + +msg_info "Configuring marimo" +mkdir -p /opt/marimo_data/notebooks /root/.config/marimo +cat </opt/marimo_data/.env +MARIMO_TOKEN_PASSWORD=${var_token_password:-$(random_password)} +EOF +chmod 600 /opt/marimo_data/.env +cat </root/.config/marimo/marimo.toml +[package_management] +manager = "uv" +EOF +msg_ok "Configured marimo" + +msg_info "Creating Service" +cat </etc/systemd/system/marimo.service +[Unit] +Description=marimo +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/marimo_data/notebooks +EnvironmentFile=/opt/marimo_data/.env +Environment=MARIMO_SKIP_UPDATE_CHECK=1 +ExecStart=/opt/marimo/.venv/bin/marimo -y edit --headless --host 0.0.0.0 --port 2718 --token-password \${MARIMO_TOKEN_PASSWORD} /opt/marimo_data/notebooks +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now marimo +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/martin-install.sh b/install/martin-install.sh new file mode 100644 index 00000000..2bd3940f --- /dev/null +++ b/install/martin-install.sh @@ -0,0 +1,58 @@ +#!/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/maplibre/martin + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "martin" "maplibre/martin" "prebuild" "latest" "/opt/martin" "martin-$(arch_resolve "x86_64" "aarch64")-unknown-linux-musl.tar.gz" + +msg_info "Configuring Martin" +mkdir -p /opt/martin_data/tiles +cat </opt/martin_data/config.yaml +listen_addresses: 0.0.0.0:3000 +web_ui: enable-for-all + +mbtiles: + paths: + - /opt/martin_data/tiles + +pmtiles: + paths: + - /opt/martin_data/tiles + +# postgres: +# connection_string: postgres://user:password@host:5432/database +EOF +msg_ok "Configured Martin" + +msg_info "Creating Service" +cat </etc/systemd/system/martin.service +[Unit] +Description=Martin Tile Server +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/martin_data +ExecStart=/opt/martin/martin --config /opt/martin_data/config.yaml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now martin +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/matterjs-server-install.sh b/install/matterjs-server-install.sh index c77ba00e..b28b1ce5 100644 --- a/install/matterjs-server-install.sh +++ b/install/matterjs-server-install.sh @@ -43,6 +43,7 @@ After=network.target [Service] Type=simple User=root +Environment=ENABLE_TIME_SYNC=true ExecStart=/usr/bin/node /opt/matter-server/node_modules/matter-server/dist/esm/MatterServer.js --storage-path /var/lib/matterjs-server Restart=on-failure RestartSec=5 diff --git a/install/metube-install.sh b/install/metube-install.sh index d8ab4cf7..72a6dd3e 100644 --- a/install/metube-install.sh +++ b/install/metube-install.sh @@ -26,7 +26,7 @@ NODE_VERSION="24" NODE_MODULE="corepack,pnpm" setup_nodejs msg_info "Installing Deno" export DENO_INSTALL="/usr/local" -curl -fsSL https://deno.land/install.sh | $STD sh -s -- -y +curl -fsSL https://deno.land/install.sh | CI=1 $STD sh -s [[ ":$PATH:" != *":/usr/local/bin:"* ]] && echo -e "\nexport PATH=\"/usr/local/bin:\$PATH\"" >>~/.bashrc && source ~/.bashrc diff --git a/install/monica-install.sh b/install/monica-install.sh index c09bd033..ff7f2d9e 100644 --- a/install/monica-install.sh +++ b/install/monica-install.sh @@ -33,7 +33,13 @@ $STD yarn config set ignore-engines true $STD yarn install $STD yarn run production $STD php artisan key:generate -$STD php artisan setup:production --email=admin@community-scripts.org --password=community-scripts.org --force +ADMIN_PASS=$(random_password 20) +$STD php artisan setup:production --email=admin@community-scripts.org --password="${ADMIN_PASS}" --force +{ + echo "Monica Credentials" + echo "Email: admin@community-scripts.org" + echo "Password: ${ADMIN_PASS}" +} >~/monica.creds chown -R www-data:www-data /opt/monica chmod -R 775 /opt/monica/storage echo "* * * * * root php /opt/monica/artisan schedule:run >> /dev/null 2>&1" >>/etc/crontab diff --git a/install/myip-install.sh b/install/myip-install.sh index be8bcb20..07ead06f 100644 --- a/install/myip-install.sh +++ b/install/myip-install.sh @@ -13,7 +13,7 @@ setting_up_container network_check update_os -NODE_VERSION="24" setup_nodejs +NODE_VERSION="26" setup_nodejs fetch_and_deploy_gh_release "myip" "jason5ng32/MyIP" "tarball" msg_info "Configuring MyIP" diff --git a/install/n8n-install.sh b/install/n8n-install.sh index c6f0d421..2595c5a7 100644 --- a/install/n8n-install.sh +++ b/install/n8n-install.sh @@ -23,7 +23,10 @@ msg_ok "Installed Dependencies" NODE_VERSION="24" setup_nodejs msg_info "Installing n8n (Patience)" -$STD npm install -g n8n@latest +# n8n-nodes-base 2.46.0 pins both @napi-rs/canvas musl binaries as hard +# dependencies, which no os/cpu/libc combination can satisfy. Drop --force +# once upstream makes them optional again. +$STD npm install -g n8n@latest --force msg_ok "Installed n8n" msg_info "Creating Service" diff --git a/install/nagios-install.sh b/install/nagios-install.sh index 35f2d86f..330e703c 100644 --- a/install/nagios-install.sh +++ b/install/nagios-install.sh @@ -63,7 +63,13 @@ setcap cap_net_raw+p /bin/ping msg_ok "Built Nagios Plugins" msg_info "Configuring Web Authentication" -$STD htpasswd -bc /usr/local/nagios/etc/htpasswd.users nagiosadmin nagiosadmin +NAGIOS_PASS=$(random_password 20) +$STD htpasswd -bc /usr/local/nagios/etc/htpasswd.users nagiosadmin "$NAGIOS_PASS" +{ + echo "Nagios Credentials" + echo "Username: nagiosadmin" + echo "Password: ${NAGIOS_PASS}" +} >~/nagios.creds chown root:www-data /usr/local/nagios/etc/htpasswd.users chmod 640 /usr/local/nagios/etc/htpasswd.users msg_ok "Configured Web Authentication" diff --git a/install/nametag-install.sh b/install/nametag-install.sh index 4c285a2c..12f1834f 100644 --- a/install/nametag-install.sh +++ b/install/nametag-install.sh @@ -15,7 +15,7 @@ update_os PG_VERSION="16" setup_postgresql PG_DB_NAME="nametag_db" PG_DB_USER="nametag" setup_postgresql_db -NODE_VERSION="20" setup_nodejs +NODE_VERSION="24" setup_nodejs fetch_and_deploy_gh_release "nametag" "mattogodoy/nametag" "tarball" "latest" "/opt/nametag" msg_info "Setting up Application" diff --git a/install/neko-install.sh b/install/neko-install.sh index cc47b9f1..517324fa 100644 --- a/install/neko-install.sh +++ b/install/neko-install.sh @@ -201,6 +201,13 @@ cat <<'EOF' >/etc/neko/openbox.xml EOF +NEKO_ADMIN_PASS=$(random_password 20) +NEKO_USER_PASS=$(random_password 20) +{ + echo "Neko Credentials" + echo "Admin password: ${NEKO_ADMIN_PASS}" + echo "User password: ${NEKO_USER_PASS}" +} >~/neko.creds cat </etc/neko/neko.yaml server: bind: "0.0.0.0:8080" @@ -219,8 +226,8 @@ desktop: member: provider: "multiuser" multiuser: - admin_password: "admin" - user_password: "neko" + admin_password: "${NEKO_ADMIN_PASS}" + user_password: "${NEKO_USER_PASS}" EOF msg_ok "Set up Runtime" diff --git a/install/netalertx-install.sh b/install/netalertx-install.sh new file mode 100644 index 00000000..66841814 --- /dev/null +++ b/install/netalertx-install.sh @@ -0,0 +1,183 @@ +#!/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/netalertx/NetAlertX + +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 \ + arp-scan \ + nmap \ + fping \ + nbtscan \ + traceroute \ + mtr-tiny \ + iw \ + snmp \ + dnsutils \ + net-tools \ + avahi-utils \ + libwww-perl \ + usbutils \ + psmisc \ + wget \ + zip \ + cron +msg_ok "Installed Dependencies" + +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="curl,sqlite3" setup_php +export UV_PYTHON_INSTALL_DIR="/opt/uv-python" +PYTHON_VERSION="3.13" setup_uv +fetch_and_deploy_gh_release "netalertx" "netalertx/NetAlertX" "tarball" + +msg_info "Setting up NetAlertX" +cd /opt/netalertx +$STD uv venv --python 3.13 .venv +$STD uv pip install --python .venv/bin/python -r requirements.txt +ln -sfn /opt/netalertx/install/production-filesystem/services /opt/netalertx/services +ln -sfn /opt/netalertx /app +echo "v$(cat ~/.netalertx)" >/opt/netalertx/.VERSION +date +%s >/opt/netalertx/front/buildtimestamp.txt +mkdir -p /opt/netalertx_data/{config,db,log/plugins,api,tmp} +touch /opt/netalertx_data/log/{app.log,execution_queue.log,app_front.log,app.php_errors.log,stderr.log,db_is_locked.log} +install -m 600 /opt/netalertx/back/app.conf /opt/netalertx_data/config/app.conf +cp /opt/netalertx/back/app.db /opt/netalertx_data/db/app.db +NETALERTX_PASSWORD=$(random_password) +sed -i "s|^TIMEZONE=.*|TIMEZONE='$(timedatectl show -p Timezone --value 2>/dev/null || echo Etc/UTC)'|" /opt/netalertx_data/config/app.conf +cat <>/opt/netalertx_data/config/app.conf +ARPSCAN_ARGS='arp-scan --ignoredups --retry=6' +NMAPDEV_ARGS='nmap --privileged -sn -PR -oX - ' +SETPWD_enable_password=True +SETPWD_password='$(echo -n "$NETALERTX_PASSWORD" | sha256sum | awk '{print $1}')' +EOF +cat </opt/netalertx_data/.env +NETALERTX_PASSWORD=${NETALERTX_PASSWORD} +NETALERTX_APP=/opt/netalertx +NETALERTX_DATA=/opt/netalertx_data +NETALERTX_CONFIG=/opt/netalertx_data/config +NETALERTX_DB=/opt/netalertx_data/db +NETALERTX_API=/opt/netalertx_data/api +NETALERTX_LOG=/opt/netalertx_data/log +NETALERTX_TMP=/opt/netalertx_data/tmp +SYSTEM_SERVICES_RUN_TMP=/opt/netalertx_data/tmp +VENDORSPATH_NEWEST=/opt/netalertx_data/tmp/ieee-oui.txt +LOG_EXECUTION_QUEUE=/opt/netalertx_data/log/execution_queue.log +PYTHONPATH=/opt/netalertx:/opt/netalertx/server:/opt/netalertx/server/plugins +PATH=/opt/netalertx/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +PYTHONUNBUFFERED=1 +NMAP_PRIVILEGED=1 +EOF +chmod 600 /opt/netalertx_data/.env +chown -R www-data:www-data /opt/netalertx_data +msg_ok "Set up NetAlertX" + +msg_info "Configuring PHP-FPM and Nginx" +cat </etc/php/8.4/fpm/pool.d/netalertx.conf +[netalertx] +user = www-data +group = www-data +listen = /run/php/netalertx.sock +listen.owner = www-data +listen.group = www-data +pm = dynamic +pm.max_children = 10 +pm.start_servers = 2 +pm.min_spare_servers = 1 +pm.max_spare_servers = 3 +env[NETALERTX_CONFIG] = /opt/netalertx_data/config +env[NETALERTX_DB] = /opt/netalertx_data/db +env[NETALERTX_API] = /opt/netalertx_data/api +env[NETALERTX_LOG] = /opt/netalertx_data/log +php_admin_value[memory_limit] = 256M +EOF +systemctl restart php8.4-fpm +cat <<'EOF' >/etc/nginx/sites-available/netalertx +map "$http_referer|$http_host" $sec_legacy { + "~^https?://(?[^/:]+)(?::\d+)?/.*\|\k(?::\d+)?$" "TRUSTED"; + default "UNTRUSTED"; +} +map $http_sec_fetch_site $is_trusted { + "same-origin" "TRUSTED"; + "" $sec_legacy; + default "UNTRUSTED"; +} +server { + listen 20211 default_server; + large_client_header_buffers 4 16k; + root /opt/netalertx/front; + index index.php; + add_header X-Forwarded-Prefix "/app" always; + + location /server/ { + error_page 403 /403_internal.html; + if ($is_trusted != "TRUSTED") { + return 403; + } + rewrite ^/server/(.*)$ /$1 break; + proxy_pass http://127.0.0.1:20212; + proxy_buffering off; + proxy_cache off; + proxy_http_version 1.1; + proxy_set_header Connection ""; + client_max_body_size 50m; + proxy_read_timeout 3600s; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } + + location ~* \.php$ { + add_header Cache-Control "no-store"; + fastcgi_pass unix:/run/php/netalertx.sock; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SCRIPT_NAME $fastcgi_script_name; + fastcgi_read_timeout 600; + } +} +EOF +nginx_enable_site "netalertx" +msg_ok "Configured PHP-FPM and Nginx" + +msg_info "Creating Service" +cat </etc/systemd/system/netalertx.service +[Unit] +Description=NetAlertX Backend +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=www-data +Group=www-data +WorkingDirectory=/opt/netalertx +EnvironmentFile=/opt/netalertx_data/.env +AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN CAP_NET_BIND_SERVICE +ExecStart=/opt/netalertx/.venv/bin/python3 -m server +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +cat </etc/cron.d/netalertx +* * * * * www-data LOG_EXECUTION_QUEUE=/opt/netalertx_data/log/execution_queue.log /opt/netalertx/services/scripts/cron_script.sh >/dev/null 2>&1 +EOF +systemctl enable -q --now netalertx +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/new-api-install.sh b/install/new-api-install.sh new file mode 100644 index 00000000..bda38595 --- /dev/null +++ b/install/new-api-install.sh @@ -0,0 +1,67 @@ +#!/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/QuantumNous/new-api + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "new-api" "QuantumNous/new-api" "singlefile" "latest" "/opt/new-api" "$(arch_resolve "new-api-v" "new-api-arm64-v")*[0-9]" + +msg_info "Configuring New API" +ADMIN_USER="${var_admin_user:-admin}" +ADMIN_PASS="${var_admin_pass:-$(random_password)}" +mkdir -p /opt/new-api_data/logs +cat </opt/new-api_data/.env +PORT=3000 +SQLITE_PATH=/opt/new-api_data/new-api.db +SESSION_SECRET=$(openssl rand -hex 32) +CRYPTO_SECRET=$(openssl rand -hex 32) +BATCH_UPDATE_ENABLED=true +NEW_API_ADMIN_USER=${ADMIN_USER} +NEW_API_ADMIN_PASSWORD=${ADMIN_PASS} +EOF +chmod 600 /opt/new-api_data/.env +msg_ok "Configured New API" + +msg_info "Creating Service" +cat </etc/systemd/system/new-api.service +[Unit] +Description=New API +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/new-api_data +EnvironmentFile=/opt/new-api_data/.env +ExecStart=/opt/new-api/new-api --log-dir /opt/new-api_data/logs +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now new-api +msg_ok "Created Service" + +msg_info "Creating New API Admin Account" +for _ in {1..60}; do + curl -fsS http://127.0.0.1:3000/api/status &>/dev/null && break + sleep 1 +done +jq -nc --arg u "$ADMIN_USER" --arg p "$ADMIN_PASS" \ + '{username: $u, password: $p, confirmPassword: $p, SelfUseModeEnabled: false, DemoSiteEnabled: false}' | + curl -fsS -X POST http://127.0.0.1:3000/api/setup -H "Content-Type: application/json" --data-binary @- | + jq -e '.success' >/dev/null +msg_ok "Created New API Admin Account" + +motd_ssh +customize +cleanup_lxc diff --git a/install/nexterm-install.sh b/install/nexterm-install.sh index 1ef0ecfe..ae240513 100644 --- a/install/nexterm-install.sh +++ b/install/nexterm-install.sh @@ -33,6 +33,7 @@ LOCAL_ENGINE_TOKEN=${LOCAL_ENGINE_TOKEN} ENCRYPTION_KEY=${ENCRYPTION_KEY} EOF chmod 0640 /etc/nexterm-engine/config.yaml /etc/nexterm-server/server.env +echo "x /tmp/nexterm-sea-*" >/etc/tmpfiles.d/nexterm.conf msg_ok "Configured Nexterm" msg_info "Creating Services" diff --git a/install/nginxproxymanager-install.sh b/install/nginxproxymanager-install.sh index f7d65189..10223044 100644 --- a/install/nginxproxymanager-install.sh +++ b/install/nginxproxymanager-install.sh @@ -36,8 +36,15 @@ $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.29.2.5" -fetch_and_deploy_from_url "https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz" "/opt/openresty" +OPENRESTY_VERSION="1.31.8.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://github.com/nginx/nginx/commit/${commit}.patch" "-" | patch -d /opt/openresty/bundle/nginx-1.31.8 -p1 --forward -s +done +msg_ok "Patched nginx HTTP/2" msg_info "Building OpenResty" cd /opt/openresty diff --git a/install/nightingale-install.sh b/install/nightingale-install.sh new file mode 100644 index 00000000..30a2d8d7 --- /dev/null +++ b/install/nightingale-install.sh @@ -0,0 +1,151 @@ +#!/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/ccfos/nightingale + +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 redis-server +msg_ok "Installed Dependencies" + +setup_mariadb +MARIADB_DB_NAME="nightingale" MARIADB_DB_USER="nightingale" setup_mariadb_db + +fetch_and_deploy_gh_release "nightingale" "ccfos/nightingale" "prebuild" "latest" "/opt/nightingale" "n9e-v*-linux-$(arch_resolve).tar.gz" + +msg_info "Configuring Nightingale" +mkdir -p /opt/nightingale_data +cat </opt/nightingale_data/config.toml +[Global] +RunMode = "release" + +[Log] +Dir = "/opt/nightingale_data/logs" +Level = "INFO" +Output = "stdout" + +[HTTP] +Host = "0.0.0.0" +Port = 17000 +CertFile = "" +KeyFile = "" +PrintAccessLog = false +PProf = false +ExposeMetrics = true +ShutdownTimeout = 30 +MaxContentLength = 67108864 +ReadTimeout = 20 +WriteTimeout = 40 +IdleTimeout = 120 + +[HTTP.ShowCaptcha] +Enable = false + +[HTTP.APIForAgent] +Enable = true + +[HTTP.APIForService] +Enable = false + +[HTTP.JWTAuth] +AccessExpired = 1500 +RefreshExpired = 10080 +RedisKeyPrefix = "/jwt/" + +[HTTP.ProxyAuth] +Enable = false +HeaderUserNameKey = "X-User-Name" +DefaultRoles = ["Standard"] + +[HTTP.TokenAuth] +Enable = true + +[HTTP.RSA] +OpenRSA = false + +[DB] +DBType = "mysql" +DSN = "nightingale:${MARIADB_DB_PASS}@tcp(127.0.0.1:3306)/nightingale?charset=utf8mb4&collation=utf8mb4_general_ci&parseTime=True&loc=Local&allowNativePasswords=true" +Debug = false +MaxLifetime = 7200 +MaxOpenConns = 150 +MaxIdleConns = 50 + +[Redis] +Address = "127.0.0.1:6379" +RedisType = "standalone" + +[Alert] +[Alert.Heartbeat] +IP = "" +Interval = 1000 +EngineName = "default" + +[Alert.EvalLog] +MaxDiskGB = 1 + +[Center] +MetricsYamlFile = "/opt/nightingale/etc/metrics.yaml" +I18NHeaderKey = "X-Language" + +[Center.AnonymousAccess] +PromQuerier = false +AlertDetail = true + +[EmbeddedTSDB] +Enable = true +Dir = "/opt/nightingale_data/tsdb" +RetentionDuration = "15d" +MaxBytes = "4GiB" +OutOfOrderTimeWindow = "10m" +QueryTimeout = "1m" +QueryMaxSamples = 50000000 +LookbackDelta = "5m" +BasicAuthUser = "" +BasicAuthPass = "" + +[Pushgw] +LabelRewrite = true +ForceUseServerTS = true + +[Ibex] +Enable = true +RPCListen = "0.0.0.0:20090" +EOF +chmod 600 /opt/nightingale_data/config.toml +msg_ok "Configured Nightingale" + +msg_info "Creating Service" +# integrations/, agents/ and the AI skill cache resolve against the working directory, so it stays the release dir +cat </etc/systemd/system/nightingale.service +[Unit] +Description=Nightingale +After=network.target mariadb.service redis-server.service +Requires=mariadb.service redis-server.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/nightingale +ExecStart=/opt/nightingale/n9e --configs /opt/nightingale_data +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now nightingale +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/nodebb-install.sh b/install/nodebb-install.sh index 86531803..7d2fc552 100644 --- a/install/nodebb-install.sh +++ b/install/nodebb-install.sh @@ -31,6 +31,7 @@ NODEBB_USER="nodebb" NODEBB_PWD="$(random_password 13)" MONGO_CONNECTION_STRING="mongodb://${NODEBB_USER}:${NODEBB_PWD}@localhost:27017/nodebb" NODEBB_SECRET=$(uuidgen) +NODEBB_ADMIN_PASS="$(random_password 20)" cat <~/nodebb.creds NodeBB-Credentials Mongo Database User: $MONGO_ADMIN_USER @@ -38,6 +39,8 @@ Mongo Database Password: $MONGO_ADMIN_PWD NodeBB User: $NODEBB_USER NodeBB Password: $NODEBB_PWD NodeBB Secret: $NODEBB_SECRET +NodeBB Admin User: community-scripts +NodeBB Admin Password: $NODEBB_ADMIN_PASS EOF $STD mongosh <~/npmplus.creds msg_info "Building and Starting NPMplus (Patience)" $STD docker compose up -d diff --git a/install/octoprint-install.sh b/install/octoprint-install.sh index eff030fa..fb29c0df 100644 --- a/install/octoprint-install.sh +++ b/install/octoprint-install.sh @@ -30,7 +30,13 @@ rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED msg_ok "Setup Python3" msg_info "Creating user octoprint" -useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint +OCTOPRINT_PASS=$(random_password 20) +useradd -m -s /bin/bash -p "$(openssl passwd -6 "$OCTOPRINT_PASS")" octoprint +{ + echo "OctoPrint Linux user Credentials" + echo "Username: octoprint" + echo "Password: ${OCTOPRINT_PASS}" +} >~/octoprint.creds usermod -aG sudo,tty,dialout octoprint chown -R octoprint:octoprint /opt echo "octoprint ALL=NOPASSWD: $(command -v systemctl) restart octoprint, $(command -v reboot), $(command -v poweroff)" >/etc/sudoers.d/octoprint diff --git a/install/omada-install.sh b/install/omada-install.sh index 9cc34967..6597dc98 100644 --- a/install/omada-install.sh +++ b/install/omada-install.sh @@ -59,9 +59,12 @@ if ! dpkg -l | grep -q 'libssl1.1'; then fi msg_info "Installing Omada Controller" -OMADA_URL=$(curl -fsSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15" "https://support.omadanetworks.com/en/download/software/omada-controller/" | +OMADA_URL=$(curl -fsSL -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15" \ + "https://support.omadanetworks.com/en/product/omada-software-controller/?resourceType=download" \ + "https://support.omadanetworks.com/en/download/software/omada-controller/" | grep -o 'https://static\.tp-link\.com/upload/software/[^"]*linux_x64[^"]*\.deb' | - head -n1) + sed -n 's/.*_v\([0-9.]*\)_linux.*/\1 &/p' | + sort -V | tail -n1 | cut -d' ' -f2) OMADA_PKG=$(basename "${OMADA_URL}") curl_download "${OMADA_PKG}" "${OMADA_URL}" $STD dpkg -i "${OMADA_PKG}" diff --git a/install/opencloud-install.sh b/install/opencloud-install.sh index bd721c9a..fd63d660 100644 --- a/install/opencloud-install.sh +++ b/install/opencloud-install.sh @@ -14,6 +14,8 @@ network_check update_os MAX_ATTEMPTS=3 +# Each FQDN is read from var_opencloud_opencloud_fqdn, var_opencloud_collabora_fqdn and var_opencloud_wopi_fqdn when set. +# Named literally here because the prompt below builds the name from $server, and unattended runs look for the literal names. servers=("opencloud" "collabora" "wopi") attempt=0 for server in "${servers[@]}"; do @@ -68,7 +70,7 @@ $STD sudo -u cool coolconfig set-admin-password --user=admin --password="$COOLPA echo "$COOLPASS" >~/.coolpass msg_ok "Installed Collabora Online" -fetch_and_deploy_gh_release "OpenCloud" "opencloud-eu/opencloud" "singlefile" "v8.1.0" "/usr/bin" "opencloud-*-linux-$(arch_resolve)" +fetch_and_deploy_gh_release "OpenCloud" "opencloud-eu/opencloud" "singlefile" "v9.2.0" "/usr/bin" "opencloud-*-linux-$(arch_resolve)" mv /usr/bin/OpenCloud /usr/bin/opencloud msg_info "Configuring OpenCloud" @@ -128,6 +130,10 @@ COLLABORATION_JWT_SECRET= ## Allow insecure connections. Defaults to false. # NOTIFICATIONS_SMTP_INSECURE=false +## Guest links - share with external people by email +## Requires the SMTP settings above and notifications in OC_ADD_RUN_SERVICES +# OC_ENABLE_GUEST_LINKS=true + ## Start additional services at runtime ## Examples: notifications, antivirus etc. ## Do not uncomment unless configured above. @@ -217,6 +223,14 @@ chown -R opencloud:opencloud "$CONFIG_DIR" "$DATA_DIR" sudo -u opencloud opencloud init --config-path "$CONFIG_DIR" --insecure no OPENCLOUD_SECRET="$(sed -n '/jwt/p' "$CONFIG_DIR"/opencloud.yaml | awk '{print $2}')" sed -i "s/JWT_SECRET=/&${OPENCLOUD_SECRET//&/\\&}/" "$ENV_FILE" +ACCOUNT_ID="$(awk '/service_account_id:/ {gsub(/["'\'']/, "", $2); print $2; exit}' "$CONFIG_DIR"/opencloud.yaml)" +ACCOUNT_SECRET="$(awk '/service_account_secret:/ {sub(/^[^:]*:[[:space:]]*/, ""); gsub(/^["'\'']|["'\'']$/, ""); print; exit}' "$CONFIG_DIR"/opencloud.yaml)" +if [[ -n "$ACCOUNT_ID" && -n "$ACCOUNT_SECRET" && "$ACCOUNT_SECRET" != *"'"* ]]; then + printf "OC_SERVICE_ACCOUNT_ID=%s\nOC_SERVICE_ACCOUNT_SECRET='%s'\n" "$ACCOUNT_ID" "$ACCOUNT_SECRET" | + sed -i '/^STORAGE_SYSTEM_OC_ROOT=/r /dev/stdin' "$ENV_FILE" +else + msg_warn "Could not read the service account from opencloud.yaml; set OC_SERVICE_ACCOUNT_ID/SECRET in opencloud.env" +fi msg_ok "Configured OpenCloud" msg_info "Starting services" diff --git a/install/opengym-install.sh b/install/opengym-install.sh index b9187be4..260c2717 100644 --- a/install/opengym-install.sh +++ b/install/opengym-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y nginx msg_ok "Installed Dependencies" -NODE_VERSION="22" setup_nodejs +NODE_VERSION="26" setup_nodejs fetch_and_deploy_gh_release "opengym" "DuarteSantos8/openGym" "tarball" "latest" "/opt/opengym" "" "v" msg_info "Building openGym" diff --git a/install/openlist-install.sh b/install/openlist-install.sh new file mode 100755 index 00000000..16477f4b --- /dev/null +++ b/install/openlist-install.sh @@ -0,0 +1,98 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: uchouT (uchouT) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/OpenListTeam/OpenList/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +setup_deb_based() { + fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Configuring OpenList" + ADMIN_PASS="$(random_password 16)" + $STD /opt/openlist/openlist --data /opt/openlist_data admin set "$ADMIN_PASS" + if [[ ! -f /opt/openlist_data/data.db ]]; then + msg_error "OpenList did not initialise its database" + exit 1 + fi + cat <~/openlist.creds +OpenList Credentials +Username: admin +Password: ${ADMIN_PASS} +EOF + chmod 600 ~/openlist.creds + msg_ok "Configured OpenList" + + msg_info "Creating Service" + cat </etc/systemd/system/openlist.service +[Unit] +Description=OpenList +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/openlist +ExecStart=/opt/openlist/openlist server --data /opt/openlist_data +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + systemctl enable -q --now openlist + msg_ok "Created Service" +} + +setup_alpine() { + fetch_and_deploy_gh_release "openlist" "OpenListTeam/OpenList" "prebuild" "latest" "/opt/openlist" "openlist-linux-musl-$(arch_resolve "amd64" "arm64").tar.gz" + + msg_info "Configuring OpenList" + ADMIN_PASS="$(random_password 16)" + $STD /opt/openlist/openlist --data /opt/openlist_data admin set "$ADMIN_PASS" + if [[ ! -f /opt/openlist_data/data.db ]]; then + msg_error "OpenList did not initialise its database" + exit 1 + fi + cat <~/openlist.creds +OpenList Credentials +Username: admin +Password: ${ADMIN_PASS} +EOF + chmod 600 ~/openlist.creds + msg_ok "Configured OpenList" + + msg_info "Creating Service" + cat </etc/init.d/openlist +#!/sbin/openrc-run +name="openlist" +description="OpenList Daemon" +directory="/opt/openlist" +command="/opt/openlist/openlist" +command_args="server --data /opt/openlist_data" +command_background="yes" +pidfile="/run/openlist.pid" + +depend() { + need net +} +EOF + chmod +x /etc/init.d/openlist + $STD rc-update add openlist default + $STD rc-service openlist start + msg_ok "Created Service" +} + +run_os_setup + +motd_ssh +customize +cleanup_lxc diff --git a/install/openobserve-install.sh b/install/openobserve-install.sh index 3f6a192d..81674b54 100644 --- a/install/openobserve-install.sh +++ b/install/openobserve-install.sh @@ -16,7 +16,7 @@ update_os msg_info "Installing OpenObserve" mkdir -p /opt/openobserve/data RELEASE=$(get_latest_github_release "openobserve/openobserve") -tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-$(arch_resolve).tar.gz) -C /opt/openobserve +tar zxf <(curl -fsSL https://downloads.openobserve.ai/releases/openobserve/v$RELEASE/openobserve-v$RELEASE-linux-$(arch_resolve).tar.gz) -C /opt/openobserve --no-same-owner ROOT_PASS="$(random_password 9)Aa1!" cat </opt/openobserve/data/.env @@ -25,7 +25,7 @@ ZO_ROOT_USER_PASSWORD = "${ROOT_PASS}" ZO_DATA_DIR = "/opt/openobserve/data" ZO_HTTP_PORT = "5080" EOF -echo "${RELEASE}" >>~/.openobserve +echo "${RELEASE}" >~/.openobserve msg_ok "Installed OpenObserve" msg_info "Creating Service" @@ -38,7 +38,6 @@ After=network.target Type=simple EnvironmentFile=/opt/openobserve/data/.env ExecStart=/opt/openobserve/openobserve -ExecStop=killall -QUIT openobserve Restart=on-failure [Install] diff --git a/install/openproject-install.sh b/install/openproject-install.sh index 9ce6311b..889043b8 100644 --- a/install/openproject-install.sh +++ b/install/openproject-install.sh @@ -70,6 +70,9 @@ memcached/autoinstall install openproject/admin_email admin@example.net openproject/default_language en EOF +# Debian's memcached also listens on ::1 and does not start when IPv6 is disabled +$STD apt install -y memcached +sed -i '/^-l ::1$/d' /etc/memcached.conf $STD sudo openproject configure systemctl stop openproject-web-1 if ! grep -qF 'Environment=LD_PRELOAD=/usr/local/lib/libjemalloc.so.2' /etc/systemd/system/openproject-web-1.service; then diff --git a/install/paperless-ai-install.sh b/install/paperless-ai-install.sh index f536d50b..a14bd353 100644 --- a/install/paperless-ai-install.sh +++ b/install/paperless-ai-install.sh @@ -13,100 +13,36 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt install -y \ - build-essential -msg_ok "Installed Dependencies" - -msg_info "Installing Python3" -$STD apt install -y \ - python3-pip \ - python3-dev \ - python3-venv -mkdir -p ~/.config/pip -cat >~/.config/pip/pip.conf </opt/paperless-ai/data/.env -PAPERLESS_API_URL= -PAPERLESS_API_TOKEN= -PAPERLESS_USERNAME= -AI_PROVIDER=openai -OPENAI_API_KEY= -OPENAI_MODEL=gpt-4o-mini -OLLAMA_API_URL= -OLLAMA_MODEL= -SCAN_INTERVAL=*/10 * * * * -SYSTEM_PROMPT="" -PROCESS_PREDEFINED_DOCUMENTS=no -TAGS= -ADD_AI_PROCESSED_TAG=no -AI_PROCESSED_TAG_NAME=ki-gen -USE_PROMPT_TAGS=no -PROMPT_TAGS= -USE_EXISTING_DATA=no -API_KEY= -CUSTOM_API_KEY= -CUSTOM_BASE_URL= -CUSTOM_MODEL= -RAG_SERVICE_URL=http://localhost:8000 -RAG_SERVICE_ENABLED=true -EOF msg_ok "Setup Paperless-AI" msg_info "Creating Service" cat </etc/systemd/system/paperless-ai.service [Unit] Description=PaperlessAI Service -After=network.target paperless-rag.service -Requires=paperless-rag.service - -[Service] -WorkingDirectory=/opt/paperless-ai -Environment="NODE_ENV=production" -EnvironmentFile=/opt/paperless-ai/data/.env -ExecStart=/usr/bin/node server.js -Restart=always - -[Install] -WantedBy=multi-user.target -EOF - -cat </etc/systemd/system/paperless-rag.service -[Unit] -Description=PaperlessAI-RAG Service After=network.target [Service] WorkingDirectory=/opt/paperless-ai -EnvironmentFile=/opt/paperless-ai/data/.env -ExecStart=/opt/paperless-ai/venv/bin/python3 main.py --host 0.0.0.0 --port 8000 --initialize +Environment="NODE_ENV=production" +Environment="PAPERLESS_AI_PORT=3000" +Environment="PAPERLESS_AI_DATA_DIR=/opt/paperless-ai/data" +Environment="HF_HUB_DISABLE_TELEMETRY=1" +ExecStart=/usr/bin/node dist/server/index.js Restart=always [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now paperless-rag -sleep 5 systemctl enable -q --now paperless-ai msg_ok "Created Service" diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 30591f37..3338656e 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -43,7 +43,13 @@ $STD php artisan migrate --force --seed msg_ok "Set up database" msg_info "Creating Admin User" -$STD php artisan app:user:create paymenter admin admin@paymenter.org paymenter 1 -q +PAYMENTER_PASS=$(random_password 20) +$STD php artisan app:user:create paymenter admin admin@paymenter.org "$PAYMENTER_PASS" 1 -q +{ + echo "Paymenter Credentials" + echo "Email: admin@paymenter.org" + echo "Password: ${PAYMENTER_PASS}" +} >~/paymenter.creds msg_ok "Created Admin User" msg_info "Configuring Nginx" diff --git a/install/photoprism-install.sh b/install/photoprism-install.sh index 741a20ed..ebb16af0 100644 --- a/install/photoprism-install.sh +++ b/install/photoprism-install.sh @@ -46,10 +46,16 @@ tar -xzf /tmp/libheif.tar.gz -C /usr/local ldconfig echo "${LIBHEIF_URL}" >~/.photoprism_libheif chmod -R 755 /opt/photoprism/photos/originals +ADMIN_PASS=$(random_password 20) +{ + echo "PhotoPrism Credentials" + echo "Username: admin" + echo "Password: ${ADMIN_PASS}" +} >~/photoprism.creds cat </opt/photoprism/config/.env # Authentication PHOTOPRISM_ADMIN_USER='admin' -PHOTOPRISM_ADMIN_PASSWORD='changeme' +PHOTOPRISM_ADMIN_PASSWORD='${ADMIN_PASS}' PHOTOPRISM_AUTH_MODE='password' PHOTOPRISM_PUBLIC='false' @@ -112,7 +118,7 @@ StoragePath: "/opt/photoprism/storage" OriginalsPath: "/opt/photoprism/photos/originals" ImportPath: "/media" AdminUser: "admin" -AdminPassword: "changeme" +AdminPassword: "${ADMIN_PASS}" AuthMode: "password" DatabaseDriver: "sqlite" HttpHost: "0.0.0.0" diff --git a/install/pixelfed-install.sh b/install/pixelfed-install.sh new file mode 100644 index 00000000..765c5cb5 --- /dev/null +++ b/install/pixelfed-install.sh @@ -0,0 +1,232 @@ +#!/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://pixelfed.org/ + +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 \ + ffmpeg \ + jpegoptim \ + optipng \ + pngquant \ + gifsicle \ + libvips42 +msg_ok "Installed Dependencies" + +msg_info "Creating Pixelfed User" +useradd -rU -s /bin/bash pixelfed +usermod -aG redis pixelfed +msg_ok "Created Pixelfed User" + +PG_VERSION="17" setup_postgresql +PG_DB_NAME="pixelfed" PG_DB_USER="pixelfed" setup_postgresql_db +PHP_VERSION="8.4" PHP_FPM="YES" PHP_MODULE="bcmath,ctype,curl,exif,gd,imagick,intl,mbstring,pgsql,redis,xml,zip" PHP_UPLOAD_MAX_FILESIZE="500M" PHP_POST_MAX_SIZE="500M" PHP_MAX_EXECUTION_TIME="600" setup_php +setup_composer + +msg_info "Configuring Redis" +REDIS_PASS=$(random_password) +sed -i "s/^# requirepass foobared/requirepass $REDIS_PASS/" /etc/redis/redis.conf +sed -i "s/^requirepass .*/requirepass $REDIS_PASS/" /etc/redis/redis.conf +systemctl restart redis-server +msg_ok "Configured Redis" + +msg_info "Configuring PHP-FPM Pool" +cp /etc/php/8.4/fpm/pool.d/www.conf /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's/\[www\]/[pixelfed]/' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's/^user = www-data/user = pixelfed/' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's/^group = www-data/group = pixelfed/' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's|^listen = .*|listen = /run/php/php8.4-fpm-pixelfed.sock|' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's/^listen.owner = .*/listen.owner = www-data/' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i 's/^listen.group = .*/listen.group = www-data/' /etc/php/8.4/fpm/pool.d/pixelfed.conf +sed -i -E 's/^\s*;?\s*ffi\.enable\s*=.*/ffi.enable=true/' /etc/php/8.4/fpm/php.ini +systemctl restart php8.4-fpm +msg_ok "Configured PHP-FPM Pool" + +fetch_and_deploy_gh_release "pixelfed" "pixelfed/pixelfed" "tarball" "latest" "/opt/pixelfed" + +msg_info "Installing Pixelfed (Patience)" +cd /opt/pixelfed +cat </opt/pixelfed/.env +APP_NAME="Pixelfed" +APP_ENV="production" +APP_KEY= +APP_DEBUG="false" +APP_URL=http://${LOCAL_IP} +APP_DOMAIN=${LOCAL_IP} +ADMIN_DOMAIN=${LOCAL_IP} +SESSION_DOMAIN=null +TRUST_PROXIES="*" +FORCE_HTTPS_URLS="false" + +OPEN_REGISTRATION="false" +ENFORCE_EMAIL_VERIFICATION="false" +PF_MAX_USERS="1000" +OAUTH_ENABLED="true" +ENABLE_CONFIG_CACHE="true" +INSTANCE_DISCOVER_PUBLIC="true" + +PF_OPTIMIZE_IMAGES="true" +IMAGE_QUALITY="80" +MAX_PHOTO_SIZE="15000" +MAX_CAPTION_LENGTH="500" +MAX_ALBUM_LENGTH="4" + +DB_CONNECTION="pgsql" +DB_HOST="127.0.0.1" +DB_PORT="5432" +DB_DATABASE="${PG_DB_NAME}" +DB_USERNAME="${PG_DB_USER}" +DB_PASSWORD="${PG_DB_PASS}" + +REDIS_CLIENT="predis" +REDIS_SCHEME="tcp" +REDIS_HOST="127.0.0.1" +REDIS_PASSWORD="${REDIS_PASS}" +REDIS_PORT="6379" + +SESSION_DRIVER="database" +CACHE_STORE="redis" +QUEUE_DRIVER="redis" +BROADCAST_DRIVER="log" +LOG_CHANNEL="stack" +HORIZON_PREFIX="horizon-" + +ACTIVITY_PUB="true" +AP_REMOTE_FOLLOW="true" +AP_INBOX="true" +AP_OUTBOX="true" +AP_SHAREDINBOX="true" + +EXP_EMC="true" + +MAIL_DRIVER="log" +MAIL_HOST="smtp.mailtrap.io" +MAIL_PORT="2525" +MAIL_USERNAME="null" +MAIL_PASSWORD="null" +MAIL_ENCRYPTION="null" +MAIL_FROM_ADDRESS="pixelfed@example.com" +MAIL_FROM_NAME="Pixelfed" + +PF_ENABLE_CLOUD="false" +FILESYSTEM_CLOUD="s3" +SESSION_SECURE_COOKIE="false" +HTTPS="false" +EOF +chmod -R 755 /opt/pixelfed +chmod -R 775 /opt/pixelfed/storage /opt/pixelfed/bootstrap/cache +export COMPOSER_ALLOW_SUPERUSER=1 +$STD composer install --no-dev --no-ansi --no-interaction --optimize-autoloader +$STD php artisan key:generate --force +$STD php artisan storage:link +$STD php artisan migrate --force +$STD php artisan import:cities +$STD php artisan passport:keys +$STD php artisan route:cache +$STD php artisan view:cache +$STD php artisan config:cache +$STD php artisan instance:actor +$STD php artisan horizon:install +chown -R pixelfed:pixelfed /opt/pixelfed +msg_ok "Installed Pixelfed" + +msg_info "Configuring Nginx" +cat <<'EOF' >/etc/nginx/sites-available/pixelfed +server { + listen 80; + server_name _; + root /opt/pixelfed/public; + index index.php; + + charset utf-8; + client_max_body_size 100M; + + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Content-Type-Options "nosniff"; + + 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_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:/run/php/php8.4-fpm-pixelfed.sock; + fastcgi_index index.php; + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + } + + location ~ /\.(?!well-known).* { + deny all; + } +} +EOF +nginx_enable_site pixelfed +msg_ok "Configured Nginx" + +msg_info "Creating Services" +cat <<'EOF' >/etc/systemd/system/pixelfed-horizon.service +[Unit] +Description=Pixelfed Horizon Queue Worker +After=network.target redis-server.service postgresql.service +Requires=redis-server.service + +[Service] +Type=simple +User=pixelfed +WorkingDirectory=/opt/pixelfed +ExecStart=/usr/bin/php /opt/pixelfed/artisan horizon +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + +cat <<'EOF' >/etc/systemd/system/pixelfed-scheduler.service +[Unit] +Description=Pixelfed Task Scheduler +After=network.target + +[Service] +Type=oneshot +User=pixelfed +WorkingDirectory=/opt/pixelfed +ExecStart=/usr/bin/php /opt/pixelfed/artisan schedule:run +EOF + +cat <<'EOF' >/etc/systemd/system/pixelfed-scheduler.timer +[Unit] +Description=Run Pixelfed Scheduler every minute + +[Timer] +OnCalendar=*-*-* *:*:00 +Persistent=true + +[Install] +WantedBy=timers.target +EOF +systemctl enable -q --now pixelfed-horizon pixelfed-scheduler.timer +msg_ok "Created Services" + +motd_ssh +customize +cleanup_lxc diff --git a/install/planka-install.sh b/install/planka-install.sh index 0db31f12..a5a83b7f 100644 --- a/install/planka-install.sh +++ b/install/planka-install.sh @@ -70,7 +70,9 @@ After=network.target [Service] WorkingDirectory=/opt/planka -ExecStart=/usr/bin/npm start --prod +Environment=NODE_ENV=production +Environment=HOME=/root +ExecStart=/usr/bin/node app.js --prod Restart=always [Install] diff --git a/install/pocketbase-install.sh b/install/pocketbase-install.sh index 31fd8fda..56f75d14 100644 --- a/install/pocketbase-install.sh +++ b/install/pocketbase-install.sh @@ -3,7 +3,7 @@ # Copyright (c) 2021-2026 tteck # Author: tteck (tteckster) # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE -# Source: https://pocketbase.io/ | Github: https://github.com/pocketbase/pocketbase +# Source: https://pocketbase.io/ | Repo: https://ganigeorgiev.com/pocketbase/pocketbase source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color @@ -13,7 +13,9 @@ setting_up_container network_check update_os -fetch_and_deploy_gh_release "pocketbase" "pocketbase/pocketbase" "prebuild" "latest" "/opt/pocketbase" "pocketbase*linux_$(arch_resolve).zip" +RELEASE=$(curl_with_retry "https://ganigeorgiev.com/api/collections/releases/records?filter=channel.repository.name%3D%22pocketbase%22%20%26%26%20channel.name%3D%22default%22&sort=-semver&skipTotal=1&perPage=1" "-" | jq -r '.items[0].tag' | sed 's/^v//') +fetch_and_deploy_from_url "https://ganigeorgiev.com/meta/pocketbase/pocketbase/download/v${RELEASE}/pocketbase_${RELEASE}_linux_$(arch_resolve).zip" "/opt/pocketbase" +echo "${RELEASE}" >~/.pocketbase msg_info "Configuring Pocketbase" mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks} diff --git a/install/podman-install.sh b/install/podman-install.sh index 6661de3d..3652f891 100644 --- a/install/podman-install.sh +++ b/install/podman-install.sh @@ -48,6 +48,10 @@ msg_ok "Installed Podman" mkdir -p /etc/containers/systemd +if [[ ! -x /usr/libexec/podman/quadlet ]]; then + msg_warn "Portainer runs as a Quadlet unit, which needs Podman 4.4 or newer (Debian 13); skipping it" + var_podman_portainer="n" var_podman_portainer_agent="n" +fi prompt="${var_podman_portainer:-}" [[ -n "$prompt" ]] || read -r -p "${TAB3}Would you like to add Portainer? " prompt || true if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then diff --git a/install/portabase-install.sh b/install/portabase-install.sh index 594bd1f0..533ccc2b 100644 --- a/install/portabase-install.sh +++ b/install/portabase-install.sh @@ -26,6 +26,8 @@ PG_DB_NAME="portabase" PG_DB_USER="portabase" setup_postgresql_db fetch_and_deploy_gh_release "portabase" "Portabase/portabase" "tarball" fetch_and_deploy_gh_release "tusd" "tus/tusd" "prebuild" "latest" "/opt/tusd" "tusd_linux_$(arch_resolve).tar.gz" +fetch_and_deploy_gh_release "rclone" "rclone/rclone" "binary" "latest" "" "rclone-v*-linux-$(arch_resolve).deb" +fetch_and_deploy_gh_release "restic" "restic/restic" "singlefile" "latest" "/usr/local/bin" "restic_*_linux_$(arch_resolve).bz2" msg_info "Configuring Portabase" mkdir -p /opt/portabase-data/uploads/tmp @@ -141,6 +143,24 @@ server { proxy_set_header Connection "upgrade"; } + location /storage/restic/ { + proxy_pass http://127.0.0.1:1081; + proxy_request_buffering off; + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + + location /storage/sync/ { + proxy_pass http://127.0.0.1:1082; + proxy_request_buffering off; + proxy_buffering off; + proxy_http_version 1.1; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } + location = /api/tus/hooks { deny all; return 404; diff --git a/install/poznote-install.sh b/install/poznote-install.sh index 1fe26918..8cef37fb 100644 --- a/install/poznote-install.sh +++ b/install/poznote-install.sh @@ -101,6 +101,7 @@ server { location ~ \.php$ { include fastcgi_params; + fastcgi_param HTTP_HOST \$http_host; fastcgi_pass unix:${PHP_SOCK}; fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT \$document_root; diff --git a/install/proxmox-mail-gateway-install.sh b/install/proxmox-mail-gateway-install.sh index dfd0b523..1af9e208 100644 --- a/install/proxmox-mail-gateway-install.sh +++ b/install/proxmox-mail-gateway-install.sh @@ -16,9 +16,9 @@ update_os msg_info "Installing Proxmox Mail Gateway" setup_deb822_repo \ "pmg" \ - "https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg" \ + "https://enterprise.proxmox.com/debian/proxmox-release-$(get_os_info codename).gpg" \ "http://download.proxmox.com/debian/pmg" \ - "trixie" \ + "$(get_os_info codename)" \ "pmg-no-subscription" $STD apt install -y proxmox-mailgateway-container msg_ok "Installed Proxmox Mail Gateway" diff --git a/install/ps5-mqtt-install.sh b/install/ps5-mqtt-install.sh index c9e383b2..8260433d 100644 --- a/install/ps5-mqtt-install.sh +++ b/install/ps5-mqtt-install.sh @@ -23,9 +23,11 @@ NODE_VERSION="24" NODE_MODULE="playactor" setup_nodejs fetch_and_deploy_gh_release "ps5-mqtt" "FunkeyFlo/ps5-mqtt" "tarball" msg_info "Configuring PS5-MQTT" -cd /opt/ps5-mqtt/ps5-mqtt/ -$STD npm install -$STD npm run build +cd /opt/ps5-mqtt +$STD corepack yarn install --immutable +$STD env PREPARE_ONLY=1 corepack yarn workspace @ps5-mqtt/server run package +cd /opt/ps5-mqtt/ps5-mqtt/server/.packaged/server +$STD npm install --omit=dev --omit=optional mkdir -p /opt/.config/ps5-mqtt/ mkdir -p /opt/.config/ps5-mqtt/playactor cat </opt/.config/ps5-mqtt/config.json @@ -66,7 +68,7 @@ Description=PS5-MQTT Daemon After=syslog.target network.target [Service] -WorkingDirectory=/opt/ps5-mqtt/ps5-mqtt +WorkingDirectory=/opt/ps5-mqtt/ps5-mqtt/server/.packaged Environment="CONFIG_PATH=/opt/.config/ps5-mqtt/config.json" Environment="DEBUG='@ha:ps5:*'" Restart=always diff --git a/install/qbittorrent-install.sh b/install/qbittorrent-install.sh index 6f02ae8c..52ab5364 100644 --- a/install/qbittorrent-install.sh +++ b/install/qbittorrent-install.sh @@ -18,12 +18,20 @@ fetch_and_deploy_gh_release "qbittorrent" "userdocs/qbittorrent-nox-static" "sin msg_info "Setup qBittorrent-nox" mv /opt/qbittorrent/qbittorrent /opt/qbittorrent/qbittorrent-nox mkdir -p ~/.config/qBittorrent/ +QB_PASS=$(random_password 20) +QB_SALT=$(random_password 16) +QB_HASH="$(printf '%s' "$QB_SALT" | base64 -w0):$(openssl kdf -keylen 64 -kdfopt digest:SHA512 -kdfopt pass:"$QB_PASS" -kdfopt salt:"$QB_SALT" -kdfopt iter:100000 -binary PBKDF2 | base64 -w0)" +{ + echo "qBittorrent Credentials" + echo "Username: admin" + echo "Password: ${QB_PASS}" +} >~/qbittorrent.creds cat <~/.config/qBittorrent/qBittorrent.conf [LegalNotice] Accepted=true [Preferences] -WebUI\Password_PBKDF2="@ByteArray(amjeuVrF3xRbgzqWQmes5A==:XK3/Ra9jUmqUc4RwzCtrhrkQIcYczBl90DJw2rT8DFVTss4nxpoRhvyxhCf87ahVE3SzD8K9lyPdpyUCfmVsUg==)" +WebUI\Password_PBKDF2="@ByteArray(${QB_HASH})" WebUI\Port=8090 WebUI\UseUPnP=false WebUI\Username=admin diff --git a/install/rabbitmq-install.sh b/install/rabbitmq-install.sh index 0f69f784..52e44c32 100644 --- a/install/rabbitmq-install.sh +++ b/install/rabbitmq-install.sh @@ -43,9 +43,15 @@ $STD rabbitmqctl enable_feature_flag all msg_ok "Enabled RabbitMQ Management Plugin" msg_info "Creating User" -$STD rabbitmqctl add_user proxmox proxmox +RABBITMQ_PASS=$(random_password 20) +$STD rabbitmqctl add_user proxmox "$RABBITMQ_PASS" $STD rabbitmqctl set_user_tags proxmox administrator $STD rabbitmqctl set_permissions -p / proxmox ".*" ".*" ".*" +{ + echo "RabbitMQ Credentials" + echo "Username: proxmox" + echo "Password: ${RABBITMQ_PASS}" +} >~/rabbitmq.creds msg_ok "Created User" motd_ssh diff --git a/install/razzia-install.sh b/install/razzia-install.sh new file mode 100644 index 00000000..84ac1f6e --- /dev/null +++ b/install/razzia-install.sh @@ -0,0 +1,118 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Owen Voke (owenvoke) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/Ralex91/Razzia + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y nginx +msg_ok "Installed Dependencies" + +NODE_VERSION="26" NODE_MODULE="pnpm@11" setup_nodejs +fetch_and_deploy_gh_release "razzia" "Ralex91/Razzia" "tarball" + +msg_info "Building Razzia" +cd /opt/razzia +$STD pnpm install --frozen-lockfile +$STD pnpm build +msg_ok "Built Razzia" + +msg_info "Configuring Razzia" +mkdir -p /opt/razzia-config +cat </opt/razzia/.env +MANAGER_PASSWORD=$(random_password 16) +JWT_SECRET=$(openssl rand -hex 32) +EOF +msg_ok "Configured Razzia" + +msg_info "Creating Service" +cat </etc/systemd/system/razzia.service +[Unit] +Description=Razzia Socket Server +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/razzia/packages/socket +EnvironmentFile=/opt/razzia/.env +Environment=NODE_ENV=production +Environment=CONFIG_PATH=/opt/razzia-config +ExecStart=/usr/bin/node /opt/razzia/packages/socket/dist/index.cjs +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now razzia +msg_ok "Created Service" + +msg_info "Configuring Nginx" +cat </etc/nginx/sites-available/razzia +server { + listen 3000; + server_name _; + + root /opt/razzia/packages/web/dist; + index index.html; + + location / { + try_files \$uri \$uri/ /index.html; + } + + location /branding/ { + alias /opt/razzia-config/branding/; + } + + location /media/ { + alias /opt/razzia-config/media/; + types { + image/png png; + image/jpeg jpg; + image/webp webp; + image/gif gif; + audio/mpeg mp3; + audio/ogg ogg; + audio/wav wav; + video/mp4 mp4; + video/webm webm; + } + default_type application/octet-stream; + add_header X-Content-Type-Options nosniff; + } + + location /api { + client_max_body_size 101m; + proxy_pass http://127.0.0.1:3001; + proxy_set_header Host \$host; + proxy_read_timeout 300s; + proxy_send_timeout 300s; + } + + location /ws { + proxy_pass http://127.0.0.1:3001; + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host \$host; + proxy_read_timeout 3600s; + proxy_send_timeout 3600s; + } +} +EOF +nginx_enable_site razzia +msg_ok "Configured Nginx" + +motd_ssh +customize +cleanup_lxc diff --git a/install/reactive-resume-install.sh b/install/reactive-resume-install.sh index 8bb7ca28..ac3e0e25 100644 --- a/install/reactive-resume-install.sh +++ b/install/reactive-resume-install.sh @@ -15,7 +15,7 @@ update_os PG_VERSION="16" setup_postgresql PG_DB_NAME="reactive_resume" PG_DB_USER="reactive_resume" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs +NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs msg_info "Installing Dependencies" $STD apt install -y \ diff --git a/install/reconya-install.sh b/install/reconya-install.sh new file mode 100644 index 00000000..18ec8c85 --- /dev/null +++ b/install/reconya-install.sh @@ -0,0 +1,60 @@ +#!/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/Dyneteq/reconya + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "reconya" "Dyneteq/reconya" "prebuild" "latest" "/opt/reconya" "reconya-linux-$(arch_resolve "amd64" "arm64").tar.gz" + +msg_info "Configuring Reconya" +mkdir -p /opt/reconya_data +cat </opt/reconya_data/.env +PORT=3008 +LOGIN_USERNAME=admin +LOGIN_PASSWORD=$(random_password) +DATABASE_NAME=reconya +SQLITE_PATH=/opt/reconya_data/reconya.db +PUBLIC_IP_LOOKUP_ENABLED=false +GEOLOCATION_ENABLED=false +VENDOR_LOOKUP_ONLINE_ENABLED=false +OUI_DOWNLOAD_ENABLED=false +EOF +chmod 600 /opt/reconya_data/.env +msg_ok "Configured Reconya" + +msg_info "Creating Service" +cat </etc/systemd/system/reconya.service +[Unit] +Description=Reconya +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/reconya_data +EnvironmentFile=/opt/reconya_data/.env +ExecStart=/opt/reconya/reconya-linux-$(arch_resolve "amd64" "arm64") +# Reconya ignores SIGTERM and only shuts down on SIGINT +KillSignal=SIGINT +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now reconya +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/romm-install.sh b/install/romm-install.sh index 27cb130d..0223e796 100644 --- a/install/romm-install.sh +++ b/install/romm-install.sh @@ -257,15 +257,33 @@ map $http_upgrade $connection_upgrade { '' close; } +# COEP/COOP for the EmulatorJS and js-dos players (SharedArrayBuffer needs a +# crossOriginIsolated document). Matched on $request_uri because try_files +# rewrites $uri to /index.html before add_header runs, so a per-location +# add_header on the player route never fires. Mirrors upstream RomM's +# docker/nginx/templates/default.conf.template. +map $request_uri $coep_header { + default ""; + ~^/rom/.*/(ejs|jsdos)(\?|$) "require-corp"; +} +map $request_uri $coop_header { + default ""; + ~^/rom/.*/(ejs|jsdos)(\?|$) "same-origin"; +} + server { listen 80; server_name _; root /opt/romm/frontend/dist; client_max_body_size 0; - # Frontend SPA + # Frontend SPA - also emits the player isolation headers: the player URLs + # fall through try_files to /index.html, which this location serves location / { try_files $uri $uri/ /index.html; + add_header Cache-Control "no-cache"; + add_header Cross-Origin-Embedder-Policy $coep_header; + add_header Cross-Origin-Opener-Policy $coop_header; } # Static assets @@ -276,13 +294,6 @@ server { add_header Cache-Control "public, immutable"; } - # EmulatorJS player - requires COOP/COEP headers for SharedArrayBuffer - location ~ ^/rom/.*/ejs$ { - add_header Cross-Origin-Embedder-Policy "require-corp"; - add_header Cross-Origin-Opener-Policy "same-origin"; - try_files $uri /index.html; - } - # Backend API location /api { proxy_pass http://romm_backend; diff --git a/install/scrutiny-install.sh b/install/scrutiny-install.sh new file mode 100644 index 00000000..9813191b --- /dev/null +++ b/install/scrutiny-install.sh @@ -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/AnalogJ/scrutiny + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Setting up InfluxDB Repository" +setup_deb822_repo \ + "influxdata" \ + "https://repos.influxdata.com/influxdata-archive.key" \ + "https://repos.influxdata.com/debian" \ + "stable" +msg_ok "Set up InfluxDB Repository" + +msg_info "Installing InfluxDB" +$STD apt install -y influxdb2 +systemctl enable -q --now influxdb +for _ in {1..30}; do + curl -fsS http://127.0.0.1:8086/health >/dev/null 2>&1 && break + sleep 1 +done +msg_ok "Installed InfluxDB" + +msg_info "Configuring InfluxDB" +INFLUX_PASS="$(random_password)" +INFLUX_TOKEN="$(random_password 48)" +curl -fsS -X POST http://127.0.0.1:8086/api/v2/setup \ + -H "Content-Type: application/json" \ + -d "{\"username\":\"admin\",\"password\":\"${INFLUX_PASS}\",\"org\":\"scrutiny\",\"bucket\":\"metrics\",\"token\":\"${INFLUX_TOKEN}\"}" >/dev/null +mkdir -p /opt/scrutiny_data +cat </opt/scrutiny_data/.env +INFLUXDB_USER=admin +INFLUXDB_PASSWORD=${INFLUX_PASS} +INFLUXDB_TOKEN=${INFLUX_TOKEN} +EOT +chmod 600 /opt/scrutiny_data/.env +msg_ok "Configured InfluxDB" + +fetch_and_deploy_gh_release "scrutiny" "AnalogJ/scrutiny" "singlefile" "latest" "/opt/scrutiny" "scrutiny-web-linux-$(arch_resolve "amd64" "arm64")" +fetch_and_deploy_gh_release "scrutiny-web" "AnalogJ/scrutiny" "prebuild" "latest" "/opt/scrutiny/web" "scrutiny-web-frontend.tar.gz" + +msg_info "Configuring Scrutiny" +cat </opt/scrutiny_data/scrutiny.yaml +version: 1 +web: + listen: + port: 8080 + host: 0.0.0.0 + basepath: '' + database: + location: /opt/scrutiny_data/scrutiny.db + src: + frontend: + path: /opt/scrutiny/web + influxdb: + scheme: 'http' + host: 127.0.0.1 + port: 8086 + token: '${INFLUX_TOKEN}' + org: 'scrutiny' + bucket: 'metrics' + retention_policy: true +log: + file: '' + level: INFO +EOT +chmod 600 /opt/scrutiny_data/scrutiny.yaml +msg_ok "Configured Scrutiny" + +msg_info "Creating Service" +cat </etc/systemd/system/scrutiny.service +[Unit] +Description=Scrutiny +After=network-online.target influxdb.service +Requires=influxdb.service + +[Service] +Type=simple +WorkingDirectory=/opt/scrutiny_data +ExecStart=/opt/scrutiny/scrutiny start --config /opt/scrutiny_data/scrutiny.yaml +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOT +systemctl enable -q --now scrutiny +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/signoz-install.sh b/install/signoz-install.sh index b9eecbcb..1a207adf 100644 --- a/install/signoz-install.sh +++ b/install/signoz-install.sh @@ -151,7 +151,7 @@ INVITE_EMAIL_TEMPLATE=/opt/signoz/templates/invitation_email_template.html SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db SIGNOZ_WEB_ENABLED=true SIGNOZ_WEB_DIRECTORY=/opt/signoz/web -SIGNOZ_JWT_SECRET=secret +SIGNOZ_JWT_SECRET=$(openssl rand -hex 32) SIGNOZ_ALERTMANAGER_PROVIDER=signoz SIGNOZ_TELEMETRYSTORE_PROVIDER=clickhouse SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://localhost:9000?password= diff --git a/install/simplelogin-install.sh b/install/simplelogin-install.sh new file mode 100644 index 00000000..f37b4dec --- /dev/null +++ b/install/simplelogin-install.sh @@ -0,0 +1,230 @@ +#!/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/simple-login/app + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections +echo "postfix postfix/main_mailer_type string Internet Site" | debconf-set-selections +$STD apt install -y \ + build-essential \ + libre2-dev \ + pkg-config \ + libpq-dev \ + cmake \ + ninja-build \ + clang \ + redis-server \ + nginx \ + postfix \ + postfix-pgsql \ + opendkim-tools +msg_ok "Installed Dependencies" + +PG_VERSION="17" setup_postgresql +APPLICATION="simplelogin" PG_DB_NAME="simplelogin" PG_DB_USER="simplelogin" setup_postgresql_db +PYTHON_VERSION="3.12" setup_uv +NODE_VERSION="24" setup_nodejs + +fetch_and_deploy_gh_release "simplelogin" "simple-login/app" + +msg_info "Installing SimpleLogin (Patience)" +cd /opt/simplelogin +$STD uv venv +$STD uv pip install setuptools hatchling editables +export CMAKE_POLICY_VERSION_MINIMUM=3.5 +$STD uv sync --locked --no-dev --no-build-isolation --no-install-package newrelic +if [[ -f /opt/simplelogin/static/package.json ]]; then + cd /opt/simplelogin/static + $STD npm ci +fi +msg_ok "Installed SimpleLogin" + +msg_info "Configuring SimpleLogin" +FLASK_SECRET=$(openssl rand -hex 32) + +mkdir -p /opt/simplelogin/dkim +$STD openssl genrsa -traditional -out /opt/simplelogin/dkim/dkim.private 2048 +$STD openssl rsa -in /opt/simplelogin/dkim/dkim.private -pubout -out /opt/simplelogin/dkim/dkim.public.key +DKIM_PUB=$(openssl rsa -in /opt/simplelogin/dkim/dkim.private -pubout 2>/dev/null | grep -v '^-----' | tr -d '\n') +cat </opt/simplelogin/dkim/dkim.dns.txt +dkim._domainkey.EMAIL_DOMAIN. IN TXT ( "v=DKIM1; k=rsa; p=${DKIM_PUB}" ) +EOF +$STD openssl genrsa -out /opt/simplelogin/openid-rsa.key 2048 +$STD openssl rsa -in /opt/simplelogin/openid-rsa.key -pubout -out /opt/simplelogin/openid-rsa.pub + +mkdir -p /opt/simplelogin/uploads /opt/simplelogin/.gnupg +chmod 700 /opt/simplelogin/.gnupg + +{ + echo "URL=http://${LOCAL_IP}" + echo "EMAIL_DOMAIN=example.com" + echo "SUPPORT_EMAIL=support@example.com" + echo 'EMAIL_SERVERS_WITH_PRIORITY=[(10, "localhost.")]' + echo "POSTFIX_SERVER=localhost" + echo "DB_URI=postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME}" + echo "FLASK_SECRET=${FLASK_SECRET}" + echo "DKIM_PRIVATE_KEY_PATH=/opt/simplelogin/dkim/dkim.private" + echo "GNUPGHOME=/opt/simplelogin/.gnupg" + echo "LOCAL_FILE_UPLOAD=true" + echo "UPLOAD_DIR=/opt/simplelogin/uploads" + echo "DISABLE_ALIAS_SUFFIX=1" + echo "WORDS_FILE_PATH=/opt/simplelogin/local_data/words.txt" + echo "NAMESERVERS=1.1.1.1" + echo "MEM_STORE_URI=redis://localhost:6379/1" + echo "OPENID_PRIVATE_KEY_PATH=/opt/simplelogin/openid-rsa.key" + echo "OPENID_PUBLIC_KEY_PATH=/opt/simplelogin/openid-rsa.pub" + echo "METRICS_BACKENDS=noop" +} >/opt/simplelogin/.env + +cd /opt/simplelogin +export FLASK_APP=server +export URL="http://${LOCAL_IP}" +export EMAIL_DOMAIN="example.com" +export SUPPORT_EMAIL="support@example.com" +export EMAIL_SERVERS_WITH_PRIORITY='[(10, "localhost.")]' +export POSTFIX_SERVER="localhost" +export DB_URI="postgresql://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME}" +export FLASK_SECRET="${FLASK_SECRET}" +export DKIM_PRIVATE_KEY_PATH="/opt/simplelogin/dkim/dkim.private" +export GNUPGHOME="/opt/simplelogin/.gnupg" +export LOCAL_FILE_UPLOAD="true" +export UPLOAD_DIR="/opt/simplelogin/uploads" +export DISABLE_ALIAS_SUFFIX="1" +export WORDS_FILE_PATH="/opt/simplelogin/local_data/words.txt" +export NAMESERVERS="1.1.1.1" +export MEM_STORE_URI="redis://localhost:6379/1" +export OPENID_PRIVATE_KEY_PATH="/opt/simplelogin/openid-rsa.key" +export OPENID_PUBLIC_KEY_PATH="/opt/simplelogin/openid-rsa.pub" +export METRICS_BACKENDS="noop" +$STD .venv/bin/alembic upgrade head +$STD .venv/bin/python init_app.py +msg_ok "Configured SimpleLogin" + +msg_info "Configuring Postfix" +cat </etc/postfix/pgsql-relay-domains.cf +hosts = localhost +dbname = ${PG_DB_NAME} +user = ${PG_DB_USER} +password = ${PG_DB_PASS} +query = SELECT domain FROM custom_domain WHERE domain='%s' AND verified=true +EOF + +cat </etc/postfix/pgsql-transport-maps.cf +hosts = localhost +dbname = ${PG_DB_NAME} +user = ${PG_DB_USER} +password = ${PG_DB_PASS} +query = SELECT 'smtp:[127.0.0.1]:20381' FROM custom_domain WHERE domain='%s' AND verified=true +EOF + +chmod 640 /etc/postfix/pgsql-*.cf + +cat </etc/postfix/transport +example.com smtp:[127.0.0.1]:20381 +EOF +$STD postmap /etc/postfix/transport + +postconf -e "relay_domains = example.com, pgsql:/etc/postfix/pgsql-relay-domains.cf" +postconf -e "transport_maps = hash:/etc/postfix/transport, pgsql:/etc/postfix/pgsql-transport-maps.cf" +postconf -e "smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination" +postconf -e "inet_protocols = ipv4" +$STD systemctl restart postfix +msg_ok "Configured Postfix" + +msg_info "Creating Services" +cat <<'EOF' >/etc/systemd/system/simplelogin-webapp.service +[Unit] +Description=SimpleLogin Web Application +After=network.target postgresql.service redis-server.service +Requires=postgresql.service redis-server.service + +[Service] +Type=simple +WorkingDirectory=/opt/simplelogin +EnvironmentFile=/opt/simplelogin/.env +ExecStart=/opt/simplelogin/.venv/bin/gunicorn wsgi:app -b 127.0.0.1:7777 -w 2 --timeout 120 +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + +cat <<'EOF' >/etc/systemd/system/simplelogin-email.service +[Unit] +Description=SimpleLogin Email Handler +After=network.target postgresql.service redis-server.service postfix.service +Requires=postgresql.service redis-server.service + +[Service] +Type=simple +WorkingDirectory=/opt/simplelogin +EnvironmentFile=/opt/simplelogin/.env +ExecStart=/opt/simplelogin/.venv/bin/python email_handler.py +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + +cat <<'EOF' >/etc/systemd/system/simplelogin-job.service +[Unit] +Description=SimpleLogin Job Runner +After=network.target postgresql.service redis-server.service +Requires=postgresql.service redis-server.service + +[Service] +Type=simple +WorkingDirectory=/opt/simplelogin +EnvironmentFile=/opt/simplelogin/.env +ExecStart=/opt/simplelogin/.venv/bin/python job_runner.py +Restart=always +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + +systemctl enable -q --now redis-server simplelogin-webapp simplelogin-email simplelogin-job +msg_ok "Created Services" + +msg_info "Configuring Nginx" +cat <<'EOF' >/etc/nginx/sites-available/simplelogin.conf +server { + listen 80 default_server; + server_name _; + + client_max_body_size 10M; + + location / { + proxy_pass http://127.0.0.1:7777; + proxy_http_version 1.1; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + } +} +EOF +ln -sf /etc/nginx/sites-available/simplelogin.conf /etc/nginx/sites-enabled/ +rm -f /etc/nginx/sites-enabled/default +$STD nginx -t +$STD systemctl enable --now nginx +$STD systemctl reload nginx +msg_ok "Configured Nginx" + +motd_ssh +customize +cleanup_lxc diff --git a/install/snapotter-install.sh b/install/snapotter-install.sh index 498d874b..ace6c647 100644 --- a/install/snapotter-install.sh +++ b/install/snapotter-install.sh @@ -78,6 +78,12 @@ msg_info "Configuring SnapOtter" mkdir -p /opt/snapotter_data/files mkdir -p /tmp/snapotter-workspace +SNAPOTTER_PASS=$(random_password 20) +{ + echo "SnapOtter Credentials" + echo "Username: admin" + echo "Password: ${SNAPOTTER_PASS}" +} >~/snapotter.creds cat </opt/snapotter_data/.env PORT=1349 NODE_ENV=production @@ -92,7 +98,7 @@ FEATURE_MANIFEST_PATH=/opt/snapotter/docker/feature-manifest.json U2NET_HOME=/opt/snapotter_data/ai/models/rembg AUTH_ENABLED=true DEFAULT_USERNAME=admin -DEFAULT_PASSWORD=admin +DEFAULT_PASSWORD=${SNAPOTTER_PASS} LOG_LEVEL=info TRUST_PROXY=true FILE_MAX_AGE_HOURS=72 diff --git a/install/spacebot-install.sh b/install/spacebot-install.sh new file mode 100644 index 00000000..18536c86 --- /dev/null +++ b/install/spacebot-install.sh @@ -0,0 +1,99 @@ +#!/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/spacedriveapp/spacebot + +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 \ + bubblewrap \ + fonts-liberation \ + libnss3 \ + libatk-bridge2.0-0t64 \ + libdrm2 \ + libxcomposite1 \ + libxdamage1 \ + libxrandr2 \ + libgbm1 \ + libasound2t64 \ + libpango-1.0-0 \ + libcairo2 \ + libcups2t64 \ + libxkbcommon0 \ + libxss1 \ + libxtst6 \ + libxfixes3 +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "spacebot" "spacedriveapp/spacebot" "prebuild" "latest" "/opt/spacebot" "spacebot-v*-$(arch_resolve "x86_64" "aarch64")-unknown-linux-gnu.tar.gz" + +msg_info "Configuring Spacebot" +mkdir -p /opt/spacebot_data +cat </opt/spacebot_data/.env +SPACEBOT_DIR=/opt/spacebot_data +EOF +cat </opt/spacebot_data/config.toml +[api] +bind = "0.0.0.0" +port = 19898 + +[[agents]] +id = "main" +default = true +EOF +if [[ -n "${var_llm_base_url:-}" ]]; then + cat <>/opt/spacebot_data/.env +LLM_API_KEY=${var_llm_api_key:-none} +EOF + cat <>/opt/spacebot_data/config.toml + +[llm.provider.custom] +api_type = "openai_chat_completions" +base_url = "${var_llm_base_url%/}" +api_key = "env:LLM_API_KEY" +name = "OpenAI-compatible" + +[defaults.routing] +channel = "custom/${var_llm_model}" +branch = "custom/${var_llm_model}" +worker = "custom/${var_llm_model}" +compactor = "custom/${var_llm_model}" +cortex = "custom/${var_llm_model}" +EOF +fi +chmod 600 /opt/spacebot_data/.env /opt/spacebot_data/config.toml +msg_ok "Configured Spacebot" + +msg_info "Creating Service" +cat </etc/systemd/system/spacebot.service +[Unit] +Description=Spacebot +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/opt/spacebot_data +EnvironmentFile=/opt/spacebot_data/.env +ExecStart=/opt/spacebot/spacebot start --foreground +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now spacebot +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/stirling-pdf-install.sh b/install/stirling-pdf-install.sh index e0c7d5c4..8b973bb9 100644 --- a/install/stirling-pdf-install.sh +++ b/install/stirling-pdf-install.sh @@ -92,7 +92,7 @@ msg_ok "Installed Language Packs" msg_info "Creating Environment Variables" cat </opt/Stirling-PDF/.env # Java tuning -JAVA_BASE_OPTS="-XX:+UnlockExperimentalVMOptions -XX:MaxRAMPercentage=75 -XX:InitiatingHeapOccupancyPercent=20 -XX:+G1PeriodicGCInvokesConcurrent -XX:G1PeriodicGCInterval=10000 -XX:+UseStringDeduplication -XX:G1PeriodicGCSystemLoadThreshold=70" +JAVA_BASE_OPTS="-XX:+UnlockExperimentalVMOptions -XX:MaxRAMPercentage=50 -XX:InitiatingHeapOccupancyPercent=20 -XX:+G1PeriodicGCInvokesConcurrent -XX:G1PeriodicGCInterval=10000 -XX:+UseStringDeduplication -XX:G1PeriodicGCSystemLoadThreshold=70" JAVA_CUSTOM_OPTS="" # LibreOffice @@ -116,10 +116,6 @@ if [[ "$login_mode" == "true" ]]; then # activate Login DISABLE_ADDITIONAL_FEATURES=false SECURITY_ENABLELOGIN=true - -# login credentials -SECURITY_INITIALLOGIN_USERNAME=admin -SECURITY_INITIALLOGIN_PASSWORD=stirling EOF fi msg_ok "Created Environment Variables" @@ -135,7 +131,8 @@ msg_ok "Font Cache Updated" msg_info "Creating Service" # unoserver starts and supervises its own LibreOffice on UNO port 2002, so a separate # listener on that port only collides with it. Do not reintroduce one. -cat </etc/systemd/system/stirlingpdf.service +# MaxRAM: inside LXC the JVM sizes its heap from host RAM; /proc/meminfo (lxcfs) reports the CT limit +cat <<'EOF' >/etc/systemd/system/stirlingpdf.service [Unit] Description=Stirling-PDF service After=syslog.target network.target unoserver.service @@ -147,7 +144,7 @@ User=root Group=root EnvironmentFile=/opt/Stirling-PDF/.env WorkingDirectory=/opt/Stirling-PDF -ExecStart=/usr/bin/java -jar Stirling-PDF.jar +ExecStart=/bin/bash -c 'exec /usr/bin/java -XX:MaxRAM=$$(grep -m1 -o "[0-9][0-9]*" /proc/meminfo)k $$JAVA_BASE_OPTS $$JAVA_CUSTOM_OPTS -jar Stirling-PDF.jar' Restart=always RestartSec=10 diff --git a/install/t3code-install.sh b/install/t3code-install.sh new file mode 100644 index 00000000..5680d20f --- /dev/null +++ b/install/t3code-install.sh @@ -0,0 +1,68 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: lukdz +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/pingdotgg/t3code + +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 \ + build-essential \ + bubblewrap +msg_ok "Installed Dependencies" + +NODE_VERSION="24" setup_nodejs + +msg_info "Installing T3 Code and Provider CLIs" +$STD npm install -g \ + t3 \ + @openai/codex \ + @anthropic-ai/claude-code \ + @xai-official/grok \ + opencode-ai +msg_ok "Installed T3 Code and Provider CLIs" + +fetch_and_deploy_gh_release "gh" "cli/cli" "binary" + +msg_info "Creating Service" +mkdir -p /opt/t3code +cat </etc/systemd/system/t3code.service +[Unit] +Description=T3 Code Server +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=root +Environment=PATH=/usr/local/bin:/usr/bin:/bin +Environment=T3CODE_TELEMETRY_ENABLED=false +# Allow Claude Full access mode as root inside the LXC. +Environment=IS_SANDBOX=1 +WorkingDirectory=/opt/t3code +ExecStart=/usr/bin/t3 serve --host 0.0.0.0 --base-dir /opt/t3code +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now t3code +for _ in {1..60}; do + [[ -f /opt/t3code/userdata/server-runtime.json ]] && curl -s -o /dev/null http://127.0.0.1:3773 && break + sleep 2 +done +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/teable-install.sh b/install/teable-install.sh index 203cd5d8..be624c50 100644 --- a/install/teable-install.sh +++ b/install/teable-install.sh @@ -17,7 +17,8 @@ msg_info "Installing Dependencies" $STD apt install -y \ build-essential \ python3 \ - git + git \ + redis-server msg_ok "Installed Dependencies" NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs @@ -56,8 +57,8 @@ SECRET_KEY=${SECRET_KEY} PORT=3000 NODE_ENV=production NEXT_TELEMETRY_DISABLED=1 -BACKEND_CACHE_PROVIDER=sqlite -BACKEND_CACHE_SQLITE_URI=sqlite:///opt/teable/.assets/.cache.db +BACKEND_CACHE_PROVIDER=redis +BACKEND_CACHE_REDIS_URI=redis://127.0.0.1:6379/0 NEXTJS_DIR=apps/nextjs-app EOF ln -sf /opt/teable /app @@ -70,10 +71,11 @@ fi msg_ok "Configured Teable" msg_info "Creating Service" +systemctl enable -q --now redis-server cat </etc/systemd/system/teable.service [Unit] Description=Teable -After=network.target postgresql.service +After=network.target postgresql.service redis-server.service [Service] Type=simple diff --git a/install/technitiumdns-install.sh b/install/technitiumdns-install.sh index f38de6ca..d5e2c0cd 100644 --- a/install/technitiumdns-install.sh +++ b/install/technitiumdns-install.sh @@ -23,7 +23,7 @@ setup_deb822_repo \ $STD apt install -y aspnetcore-runtime-10.0 msg_ok "Installed Dependencies" -RELEASE=$(curl -fsSL https://technitium.com/dns/ | grep -oP 'Version \K[\d.]+') +RELEASE=$(get_latest_github_release "TechnitiumSoftware/DnsServer") fetch_and_deploy_from_url "https://download.technitium.com/dns/DnsServerPortable.tar.gz" /opt/technitium/dns echo "${RELEASE}" >~/.technitium diff --git a/install/teleport-install.sh b/install/teleport-install.sh index c98bcb46..6e542c9a 100644 --- a/install/teleport-install.sh +++ b/install/teleport-install.sh @@ -24,7 +24,11 @@ msg_info "Configuring Teleport" $STD apt install -y teleport $STD teleport configure -o /etc/teleport.yaml systemctl enable -q --now teleport -sleep 10 +SECONDS=0 +until teleport debug readyz &>/dev/null; do + sleep 2 + ((SECONDS >= 120)) && { msg_error "Teleport did not become ready in time"; exit 1; } +done tctl users add teleport-admin --roles=editor,access --logins=root >~/teleportadmin.txt sed -i "s|https://[^:]*:3080|https://${LOCAL_IP}:3080|g" ~/teleportadmin.txt msg_ok "Configured Teleport" diff --git a/install/temporal-install.sh b/install/temporal-install.sh new file mode 100644 index 00000000..7b48bd3e --- /dev/null +++ b/install/temporal-install.sh @@ -0,0 +1,206 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Renan Bastos (renanbastos93) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/temporalio/temporal + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +PG_VERSION="17" setup_postgresql +PG_DB_NAME="temporal" PG_DB_USER="temporal" PG_DB_SCHEMA_PERMS="true" setup_postgresql_db + +fetch_and_deploy_gh_release "temporal" "temporalio/temporal" "prebuild" "latest" "/opt/temporal" "temporal_*_linux_$(arch_resolve).tar.gz" +fetch_and_deploy_gh_release "temporal-ui" "temporalio/ui-server" "prebuild" "latest" "/opt/temporal-ui" "ui-server_*_linux_$(arch_resolve).tar.gz" +fetch_and_deploy_gh_release "temporal-cli" "temporalio/cli" "prebuild" "latest" "/opt/temporal-cli" "temporal_cli_*_linux_$(arch_resolve).tar.gz" + +msg_info "Configuring Temporal" +mkdir -p /etc/temporal/config/dynamicconfig /etc/temporal/ui +ln -sf /opt/temporal-cli/temporal /usr/bin/temporal +cat </etc/temporal/temporal.env +SQL_PLUGIN=postgres12 +SQL_HOST=127.0.0.1 +SQL_PORT=5432 +SQL_USER=temporal +SQL_PASSWORD=${PG_DB_PASS} +EOF +chmod 600 /etc/temporal/temporal.env +cat <<'EOF' >/etc/temporal/config/production.yaml +# enable-template +log: + stdout: true + level: info + +persistence: + defaultStore: postgres-default + visibilityStore: postgres-visibility + numHistoryShards: 4 + datastores: + postgres-default: + sql: + pluginName: {{ env "SQL_PLUGIN" | quote }} + databaseName: "temporal" + connectAddr: {{ printf "%s:%s" (env "SQL_HOST") (env "SQL_PORT") | quote }} + connectProtocol: "tcp" + user: {{ env "SQL_USER" | quote }} + password: {{ env "SQL_PASSWORD" | quote }} + maxConns: 20 + maxIdleConns: 20 + maxConnLifetime: "1h" + postgres-visibility: + sql: + pluginName: {{ env "SQL_PLUGIN" | quote }} + databaseName: "temporal_visibility" + connectAddr: {{ printf "%s:%s" (env "SQL_HOST") (env "SQL_PORT") | quote }} + connectProtocol: "tcp" + user: {{ env "SQL_USER" | quote }} + password: {{ env "SQL_PASSWORD" | quote }} + maxConns: 10 + maxIdleConns: 10 + maxConnLifetime: "1h" + +global: + membership: + maxJoinDuration: 30s + broadcastAddress: "127.0.0.1" + +services: + frontend: + rpc: + grpcPort: 7233 + membershipPort: 6933 + bindOnIP: "0.0.0.0" + + matching: + rpc: + grpcPort: 7235 + membershipPort: 6935 + bindOnLocalHost: true + + history: + rpc: + grpcPort: 7234 + membershipPort: 6934 + bindOnLocalHost: true + + worker: + rpc: + grpcPort: 7239 + membershipPort: 6939 + bindOnLocalHost: true + +clusterMetadata: + enableGlobalNamespace: false + failoverVersionIncrement: 10 + masterClusterName: "active" + currentClusterName: "active" + clusterInformation: + active: + enabled: true + initialFailoverVersion: 1 + rpcName: "frontend" + rpcAddress: "127.0.0.1:7233" + +dcRedirectionPolicy: + policy: "noop" + +archival: + history: + state: "disabled" + visibility: + state: "disabled" + +namespaceDefaults: + archival: + history: + state: "disabled" + visibility: + state: "disabled" + +dynamicConfigClient: + filepath: "/etc/temporal/config/dynamicconfig/production.yaml" + pollInterval: "60s" +EOF +cat </etc/temporal/config/dynamicconfig/production.yaml +limit.maxIDLength: + - value: 255 + constraints: {} +EOF +cat </etc/temporal/ui/production.yaml +temporalGrpcAddress: 127.0.0.1:7233 +port: 8080 +enableUi: true +defaultNamespace: default +cors: + cookieInsecure: true + allowOrigins: + - http://${LOCAL_IP}:8080 +EOF +msg_ok "Configured Temporal" + +msg_info "Initializing Temporal Database" +set -a && source /etc/temporal/temporal.env && set +a +$STD /opt/temporal/temporal-sql-tool --db temporal_visibility create-database +$STD /opt/temporal/temporal-sql-tool --db temporal setup-schema -v 0.0 +$STD /opt/temporal/temporal-sql-tool --db temporal update-schema --schema-name postgresql/v12/temporal +$STD /opt/temporal/temporal-sql-tool --db temporal_visibility setup-schema -v 0.0 +$STD /opt/temporal/temporal-sql-tool --db temporal_visibility update-schema --schema-name postgresql/v12/visibility +msg_ok "Initialized Temporal Database" + +msg_info "Creating Services" +cat </etc/systemd/system/temporal.service +[Unit] +Description=Temporal Server +After=network.target postgresql.service +Requires=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/temporal +EnvironmentFile=/etc/temporal/temporal.env +ExecStart=/opt/temporal/temporal-server --root /etc/temporal --env production --allow-no-auth start +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF + +cat </etc/systemd/system/temporal-ui.service +[Unit] +Description=Temporal UI +After=network.target temporal.service +Wants=temporal.service + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/temporal-ui +ExecStart=/opt/temporal-ui/ui-server --root /etc/temporal --config ui --env production start +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now temporal temporal-ui +msg_ok "Created Services" + +msg_info "Creating Default Namespace" +for _ in {1..60}; do + temporal operator cluster health &>/dev/null && break + sleep 1 +done +$STD temporal operator namespace create --namespace default +msg_ok "Created Default Namespace" + +motd_ssh +customize +cleanup_lxc diff --git a/install/thingsboard-install.sh b/install/thingsboard-install.sh index ad453661..714ffff6 100644 --- a/install/thingsboard-install.sh +++ b/install/thingsboard-install.sh @@ -26,7 +26,8 @@ PG_DB_NAME="thingsboard_db" PG_DB_USER="thingsboard" setup_postgresql_db fetch_and_deploy_gh_release "thingsboard" "thingsboard/thingsboard" "binary" "latest" "/tmp" "thingsboard-*.deb" msg_info "Configuring ThingsBoard" -cat </etc/thingsboard/conf/thingsboard.conf +cat <>/etc/thingsboard/conf/thingsboard.conf + # DB Configuration export DATABASE_TS_TYPE=sql export SPRING_DATASOURCE_URL=jdbc:postgresql://localhost:5432/${PG_DB_NAME} diff --git a/install/tracearr-install.sh b/install/tracearr-install.sh index d552a64d..dd1e5366 100644 --- a/install/tracearr-install.sh +++ b/install/tracearr-install.sh @@ -17,7 +17,7 @@ msg_info "Installing Dependencies" $STD apt install -y redis-server msg_ok "Installed Dependencies" -NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs +NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs PG_VERSION="18" setup_postgresql msg_info "Installing pnpm" diff --git a/install/trailbase-install.sh b/install/trailbase-install.sh new file mode 100644 index 00000000..07e58018 --- /dev/null +++ b/install/trailbase-install.sh @@ -0,0 +1,59 @@ +#!/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/trailbaseio/trailbase + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "trailbase" "trailbaseio/trailbase" "prebuild" "latest" "/opt/trailbase" "trailbase_v*_$(arch_resolve "x86_64" "aarch64")_linux.zip" + +msg_info "Configuring TrailBase" +ADMIN_EMAIL="${var_admin_email:-admin@localhost}" +ADMIN_PASS="${var_admin_pass:-$(random_password)}" +mkdir -p /opt/trailbase_data +cat </opt/trailbase_data/.env +DEPOT=/opt/trailbase_data/traildepot +ADDRESS=0.0.0.0:4000 +PUBLIC_URL=http://${LOCAL_IP}:4000 +TRAILBASE_ADMIN_EMAIL=${ADMIN_EMAIL} +TRAILBASE_ADMIN_PASSWORD=${ADMIN_PASS} +EOF +chmod 600 /opt/trailbase_data/.env +# The first CLI call creates the depot and the admin user admin@localhost +$STD /opt/trailbase/trail --depot /opt/trailbase_data/traildepot user change-password admin@localhost "$ADMIN_PASS" +if [[ "$ADMIN_EMAIL" != "admin@localhost" ]]; then + $STD /opt/trailbase/trail --depot /opt/trailbase_data/traildepot user change-email admin@localhost "$ADMIN_EMAIL" +fi +msg_ok "Configured TrailBase" + +msg_info "Creating Service" +cat </etc/systemd/system/trailbase.service +[Unit] +Description=TrailBase +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/trailbase_data +EnvironmentFile=/opt/trailbase_data/.env +ExecStart=/opt/trailbase/trail run +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now trailbase +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/tududi-install.sh b/install/tududi-install.sh index 0d5ddf97..914992e9 100644 --- a/install/tududi-install.sh +++ b/install/tududi-install.sh @@ -13,13 +13,9 @@ setting_up_container network_check update_os -msg_info "Installing Dependencies" -$STD apt install -y \ - sqlite3 \ - yq -msg_ok "Installed Dependencies" - NODE_VERSION="22" setup_nodejs +PG_VERSION="17" setup_postgresql +PG_DB_NAME="tududi" PG_DB_USER="tududi" setup_postgresql_db fetch_and_deploy_gh_release "tududi" "chrisvel/tududi" "tarball" "latest" "/opt/tududi" msg_info "Configuring Tududi" @@ -30,30 +26,22 @@ $STD npm run frontend:build mv ./dist ./backend msg_ok "Configured Tududi" -msg_info "Creating env and database" -DB_LOCATION="/opt/tududi-db" -UPLOAD_DIR="/opt/tududi-uploads" -mkdir -p {"$DB_LOCATION","$UPLOAD_DIR"} +msg_info "Creating env" +mkdir -p /opt/tududi-uploads SECRET="$(openssl rand -hex 64)" sed -e '/^NODE_ENV=/s/=.*$/=production/' \ -e 's/^TUDUDI_USER/# TUDUDI_USER/g' \ - -e "/_SECRET=/s/=.*$/=${SECRET}/" \ - -e '/^# DB_FILE=/s/^# //' \ - -e "s|^DB_FILE=.*|DB_FILE=${DB_LOCATION}/production.sqlite3|" \ - -e "/^# TUDUDI_ALLOWED/s/^# //; \ - \|_ORIGINS=|s|=.*$|=|" \ - -e "/^# TUDUDI_UPLOAD/s/^# //; \ - \|UPLOAD_PATH=|s|=.*$|=${UPLOAD_DIR}|" \ + -e "s/^TUDUDI_SESSION_SECRET=.*/TUDUDI_SESSION_SECRET=${SECRET}/" \ + -e "s|^DATABASE_URL=.*|DATABASE_URL=postgres://tududi:${PG_DB_PASS}@localhost:5432/tududi|" \ /opt/tududi/backend/.env.example >/opt/tududi/backend/.env -export DB_FILE="${DB_LOCATION}/production.sqlite3" -$STD npm run db:init -msg_ok "Created env and database" +echo "TUDUDI_UPLOAD_PATH=/opt/tududi-uploads" >>/opt/tududi/backend/.env +msg_ok "Created env" msg_info "Creating service" cat </etc/systemd/system/tududi.service [Unit] Description=Tududi Service -After=network.target +After=network.target postgresql.service [Service] Type=simple diff --git a/install/tunarr-install.sh b/install/tunarr-install.sh index 9af700d6..1a438fff 100644 --- a/install/tunarr-install.sh +++ b/install/tunarr-install.sh @@ -16,14 +16,11 @@ update_os setup_hwaccel fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-$(arch_resolve "x64" "arm64").tar.gz" -cd /opt/tunarr -mv tunarr* tunarr -fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux$(arch_resolve "64" "arm64")-gpl-7.1.tar.xz" +fetch_and_deploy_gh_release "ersatztv-ffmpeg" "ErsatzTV/ErsatzTV-ffmpeg" "prebuild" "latest" "/opt/ErsatzTV-ffmpeg" "*-linux$(arch_resolve "64" "arm64")-gpl-*.tar.xz" msg_info "Set ErsatzTV-ffmpeg links" chmod +x /opt/ErsatzTV-ffmpeg/bin/* ln -sf /opt/ErsatzTV-ffmpeg/bin/ffmpeg /usr/bin/ffmpeg -ln -sf /opt/ErsatzTV-ffmpeg/bin/ffplay /usr/bin/ffplay ln -sf /opt/ErsatzTV-ffmpeg/bin/ffprobe /usr/bin/ffprobe msg_ok "ffmpeg links set" diff --git a/install/twenty-install.sh b/install/twenty-install.sh index 23819f20..b04bc5ca 100644 --- a/install/twenty-install.sh +++ b/install/twenty-install.sh @@ -21,7 +21,7 @@ msg_ok "Installed Dependencies" PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql PG_DB_NAME="twenty_db" PG_DB_USER="twenty" PG_DB_SCHEMA_PERMS="true" PG_DB_EXTENSIONS="vector" setup_postgresql_db -NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs +NODE_VERSION="26" NODE_MODULE="corepack" setup_nodejs fetch_and_deploy_gh_release "twenty" "twentyhq/twenty" "tarball" diff --git a/install/unsloth-install.sh b/install/unsloth-install.sh new file mode 100644 index 00000000..005b0fb2 --- /dev/null +++ b/install/unsloth-install.sh @@ -0,0 +1,90 @@ +#!/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/unslothai/unsloth + +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 \ + libgomp1 \ + git +msg_ok "Installed Dependencies" + +UV_PYTHON="3.12" setup_uv +NODE_VERSION="22" setup_nodejs + +setup_hwaccel + +msg_info "Setting up Unsloth Studio (Patience)" +mkdir -p /opt/unsloth_data +curl -fsSL https://unsloth.ai/install.sh -o /tmp/unsloth-install.sh +export UNSLOTH_STUDIO_HOME=/opt/unsloth +export UNSLOTH_SKIP_AUTOSTART=1 +export UNSLOTH_PYTHON=3.12 +$STD sh /tmp/unsloth-install.sh +unset UNSLOTH_SKIP_AUTOSTART UNSLOTH_PYTHON +rm -f /tmp/unsloth-install.sh +[[ -x /opt/unsloth/unsloth_studio/bin/unsloth ]] || { + msg_error "Unsloth Studio was not installed to /opt/unsloth/unsloth_studio" + exit 1 +} +msg_ok "Set up Unsloth Studio" + +msg_info "Configuring Unsloth Studio" +cat </opt/unsloth.env +UNSLOTH_STUDIO_HOME=/opt/unsloth +HF_HOME=/opt/unsloth_data/huggingface +EOF +chmod 600 /opt/unsloth.env + +UNSLOTH_PASSWORD=$(UNSLOTH_STUDIO_HOME=/opt/unsloth \ + /opt/unsloth/unsloth_studio/bin/unsloth studio reset-password | + sed -n "s/^New password for 'unsloth': //p") +[[ -n "$UNSLOTH_PASSWORD" ]] || { + msg_error "Could not set the initial Unsloth admin password" + exit 1 +} + +cat <~/unsloth.creds +Unsloth Studio +Username: unsloth +Password: ${UNSLOTH_PASSWORD} +EOF +chmod 600 ~/unsloth.creds +msg_ok "Configured Unsloth Studio" + +msg_info "Creating Service" +cat </etc/systemd/system/unsloth.service +[Unit] +Description=Unsloth Studio +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/unsloth_data +EnvironmentFile=/opt/unsloth.env +ExecStart=/opt/unsloth/unsloth_studio/bin/unsloth studio -H 0.0.0.0 -p 8888 +Restart=on-failure +RestartSec=10 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now unsloth +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/victorialogs-install.sh b/install/victorialogs-install.sh new file mode 100644 index 00000000..a8b63812 --- /dev/null +++ b/install/victorialogs-install.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Nicolas Pastorello (opastorello) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://victoriametrics.com/products/victorialogs/ + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "victorialogs" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/victorialogs" "victoria-logs-linux-$(arch_resolve amd64 arm64)-v*[0-9].tar.gz" +fetch_and_deploy_gh_release "vlutils" "VictoriaMetrics/VictoriaLogs" "prebuild" "latest" "/opt/vlutils" "vlutils-linux-$(arch_resolve amd64 arm64)-v*[0-9].tar.gz" + +msg_info "Creating Service" +mkdir -p /opt/victorialogs_data +cat </etc/systemd/system/victorialogs.service +[Unit] +Description=VictoriaLogs Service +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/victorialogs +ExecStart=/opt/victorialogs/victoria-logs-prod -storageDataPath=/opt/victorialogs_data -httpListenAddr=:9428 -syslog.listenAddr.tcp=:514 -syslog.listenAddr.udp=:514 +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now victorialogs +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/vikunja-install.sh b/install/vikunja-install.sh index 6495068b..a34746ad 100644 --- a/install/vikunja-install.sh +++ b/install/vikunja-install.sh @@ -17,6 +17,7 @@ fetch_and_deploy_gh_release "vikunja" "go-vikunja/vikunja" "binary" "latest" "" msg_info "Setting up Vikunja" sed -i 's|^# \(service:\)|\1|' /etc/vikunja/config.yml +sed -i '0,/^service:/!{/^service:/d}' /etc/vikunja/config.yml sed -i "s|^ # \(publicurl: \).*| \1\"http://$LOCAL_IP\"|" /etc/vikunja/config.yml sed -i "0,/^ # \(timezone: \).*/s|| \1${tz}|" /etc/vikunja/config.yml systemctl enable -q --now vikunja diff --git a/install/vllm-install.sh b/install/vllm-install.sh new file mode 100644 index 00000000..6d44fb01 --- /dev/null +++ b/install/vllm-install.sh @@ -0,0 +1,135 @@ +#!/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/vllm-project/vllm + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +var_backend="${var_backend:-auto}" +var_model="${var_model:-Qwen/Qwen2.5-0.5B-Instruct}" +var_port="${var_port:-8000}" +var_dtype="${var_dtype:-auto}" +var_vram_utilization="${var_vram_utilization:-0.90}" +var_max_model_len="${var_max_model_len:-}" +var_hf_token="${var_hf_token:-}" +var_api_key="${var_api_key:-}" + +msg_info "Installing Dependencies" +$STD apt install -y \ + build-essential \ + python3-dev +msg_ok "Installed Dependencies" + +PYTHON_VERSION="3.12" setup_uv +setup_hwaccel + +if [[ "$var_backend" == "auto" ]]; then + case "${HWACCEL_VENDOR:-none}" in + nvidia) var_backend="cuda" ;; + amd) var_backend="rocm" ;; + *) var_backend="cpu" ;; + esac +fi + +VLLM_VERSION="$(get_latest_github_release "vllm-project/vllm")" + +msg_info "Installing vLLM (${var_backend}, Patience)" +$STD uv venv --python 3.12 /opt/vllm +case "$var_backend" in +cuda) + $STD uv pip install --python /opt/vllm/bin/python vllm + ;; +rocm) + $STD uv pip install --python /opt/vllm/bin/python vllm \ + --extra-index-url https://wheels.vllm.ai/rocm/ --upgrade + ;; +cpu) + if [[ "$(uname -m)" != "x86_64" ]]; then + msg_error "vLLM publishes no prebuilt CPU wheel for $(uname -m)" + exit 1 + fi + github_api_call "https://api.github.com/repos/vllm-project/vllm/releases/tags/v${VLLM_VERSION}" /tmp/vllm-release.json + VLLM_WHEEL="$(jq -r '.assets[] | select(.name | endswith("+cpu-cp38-abi3-manylinux_2_39_x86_64.whl")) | .browser_download_url' /tmp/vllm-release.json | head -n1)" + rm -f /tmp/vllm-release.json + [[ -n "$VLLM_WHEEL" ]] || { + msg_error "vLLM ${VLLM_VERSION} has no CPU wheel for x86_64" + exit 1 + } + $STD uv pip install --python /opt/vllm/bin/python "$VLLM_WHEEL" --torch-backend cpu + ;; +*) + msg_error "Unknown var_backend '${var_backend}' (expected auto, cuda, rocm or cpu)" + exit 1 + ;; +esac +echo "$var_backend" >/opt/vllm/.backend +cat <~/.vllm +${VLLM_VERSION} +EOF +msg_ok "Installed vLLM (${var_backend})" + +msg_info "Configuring vLLM" +mkdir -p /opt/vllm/models +VLLM_SERVE_ARGS="--dtype ${var_dtype} --gpu-memory-utilization ${var_vram_utilization}" +[[ -n "$var_max_model_len" ]] && VLLM_SERVE_ARGS+=" --max-model-len ${var_max_model_len}" +cat </opt/vllm/vllm.env +VLLM_MODEL=${var_model} +VLLM_HOST=0.0.0.0 +VLLM_PORT=${var_port} +HF_HOME=/opt/vllm/models +HF_TOKEN=${var_hf_token} +VLLM_API_KEY=${var_api_key} +# Appended to 'vllm serve' verbatim. +VLLM_SERVE_ARGS=${VLLM_SERVE_ARGS} +EOF + +CUDA_ROOT="$(find /opt/vllm/lib/python3*/site-packages/nvidia -maxdepth 1 -type d -name 'cu[0-9]*' 2>/dev/null | sort -V | tail -1 || true)" +if [[ -n "$CUDA_ROOT" ]]; then + CUDART="$(find "${CUDA_ROOT}/lib" -maxdepth 1 -name 'libcudart.so.*' 2>/dev/null | sort -V | tail -1 || true)" + if [[ -n "$CUDART" && ! -e "${CUDA_ROOT}/lib/libcudart.so" ]]; then + ln -s "$(basename "$CUDART")" "${CUDA_ROOT}/lib/libcudart.so" + fi + cat <>/opt/vllm/vllm.env +CUDA_HOME=${CUDA_ROOT} +FLASHINFER_NVCC=${CUDA_ROOT}/bin/nvcc +PATH=${CUDA_ROOT}/bin:/opt/vllm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +LD_LIBRARY_PATH=${CUDA_ROOT}/lib +LIBRARY_PATH=${CUDA_ROOT}/lib +EOF +fi +chmod 600 /opt/vllm/vllm.env +msg_ok "Configured vLLM" + +msg_info "Creating Service" +cat </etc/systemd/system/vllm.service +[Unit] +Description=vLLM OpenAI-Compatible Inference Server +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +WorkingDirectory=/opt/vllm +EnvironmentFile=/opt/vllm/vllm.env +ExecStart=/opt/vllm/bin/vllm serve \${VLLM_MODEL} --host \${VLLM_HOST} --port \${VLLM_PORT} \$VLLM_SERVE_ARGS +Restart=on-failure +RestartSec=10 +TimeoutStartSec=0 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now vllm +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/wallabag-install.sh b/install/wallabag-install.sh index caa87b8f..bd4c8eb6 100644 --- a/install/wallabag-install.sh +++ b/install/wallabag-install.sh @@ -114,6 +114,7 @@ server { fastcgi_pass unix:__PHP_SOCK__; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params; + fastcgi_param HTTP_HOST $http_host; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; internal; diff --git a/install/watchstate-install.sh b/install/watchstate-install.sh index 40cd6785..7b3aec11 100644 --- a/install/watchstate-install.sh +++ b/install/watchstate-install.sh @@ -66,6 +66,7 @@ server { fastcgi_pass unix:${PHP_SOCK}; fastcgi_param SCRIPT_FILENAME \$realpath_root\$fastcgi_script_name; include fastcgi_params; + fastcgi_param HTTP_HOST \$http_host; fastcgi_read_timeout 600; } } diff --git a/install/wazuh-install.sh b/install/wazuh-install.sh index cc4a3066..8f335bf3 100644 --- a/install/wazuh-install.sh +++ b/install/wazuh-install.sh @@ -21,7 +21,11 @@ msg_info "Setup Wazuh" curl -fsSL https://packages.wazuh.com/$RELEASE/wazuh-install.sh -o wazuh-install.sh chmod +x wazuh-install.sh if [ "$STD" = "silent" ]; then - bash wazuh-install.sh -a >>~/wazuh-install.output + bash wazuh-install.sh -a >>~/wazuh-install.output || { + $STD tail -n 25 ~/wazuh-install.output + msg_error "The Wazuh installer failed, see its output above or in ~/wazuh-install.output" + exit 1 + } else bash wazuh-install.sh -a | tee -a ~/wazuh-install.output fi diff --git a/install/weaviate-install.sh b/install/weaviate-install.sh new file mode 100644 index 00000000..3057f84f --- /dev/null +++ b/install/weaviate-install.sh @@ -0,0 +1,64 @@ +#!/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/weaviate/weaviate + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "weaviate" "weaviate/weaviate" "prebuild" "latest" "/opt/weaviate" "weaviate-v*-linux-$(arch_resolve).tar.gz" + +msg_info "Configuring Weaviate" +mkdir -p /opt/weaviate_data/data +cat </opt/weaviate_data/.env +PERSISTENCE_DATA_PATH=/opt/weaviate_data/data +QUERY_DEFAULTS_LIMIT=25 +CLUSTER_HOSTNAME=node1 +CLUSTER_BIND_ADDR=127.0.0.1 +CLUSTER_BASIC_AUTH_USERNAME=weaviate +CLUSTER_BASIC_AUTH_PASSWORD=$(random_password) +GRPC_PORT=50051 +AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=false +AUTHENTICATION_APIKEY_ENABLED=true +AUTHENTICATION_APIKEY_ALLOWED_KEYS=${var_api_key:-$(random_password 32)} +AUTHENTICATION_APIKEY_USERS=admin +AUTHENTICATION_DB_USERS_ENABLED=true +AUTHORIZATION_RBAC_ENABLED=true +AUTHORIZATION_RBAC_ROOT_USERS=admin +LIMIT_RESOURCES=true +GO_PROFILING_DISABLE=true +DISABLE_TELEMETRY=true +EOF +chmod 600 /opt/weaviate_data/.env +msg_ok "Configured Weaviate" + +msg_info "Creating Service" +cat </etc/systemd/system/weaviate.service +[Unit] +Description=Weaviate +After=network.target + +[Service] +Type=simple +WorkingDirectory=/opt/weaviate_data +EnvironmentFile=/opt/weaviate_data/.env +ExecStart=/opt/weaviate/weaviate --host 0.0.0.0 --port 8080 --scheme http +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now weaviate +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc diff --git a/install/whisparr-eros-install.sh b/install/whisparr-eros-install.sh index 71615f25..f02ebb5d 100644 --- a/install/whisparr-eros-install.sh +++ b/install/whisparr-eros-install.sh @@ -27,6 +27,7 @@ chmod 775 /var/lib/whisparr-eros/ /opt/Whisparr-Eros/ msg_ok "Configured Whisparr-Eros" msg_info "Creating Service" +WHISPARR_PASS=$(random_password 20) cat </etc/systemd/system/whisparr-eros.service [Unit] Description=Whisparr-Eros Daemon @@ -35,6 +36,7 @@ After=syslog.target network.target [Service] UMask=0002 Type=simple +Environment=WHISPARR__AUTH__INITIALPASSWORD=${WHISPARR_PASS} ExecStart=/opt/Whisparr-Eros/Whisparr -nobrowser -data=/var/lib/whisparr-eros/ TimeoutStopSec=20 KillMode=process @@ -44,6 +46,18 @@ Restart=on-failure WantedBy=multi-user.target EOF systemctl enable -q --now whisparr-eros +for _ in {1..60}; do + grep -qs "created 'whisparr' with the configured password" /var/lib/whisparr-eros/logs/whisparr.txt && break + sleep 2 +done +sed -i '/WHISPARR__AUTH__INITIALPASSWORD/d' /etc/systemd/system/whisparr-eros.service +systemctl daemon-reload +cat <~/whisparr-eros.creds +Whisparr-Eros Credentials +Username: whisparr +Password: ${WHISPARR_PASS} +EOF +chmod 600 ~/whisparr-eros.creds msg_ok "Created Service" motd_ssh diff --git a/install/wikijs-install.sh b/install/wikijs-install.sh index cfcf4206..3eec6739 100644 --- a/install/wikijs-install.sh +++ b/install/wikijs-install.sh @@ -17,26 +17,42 @@ msg_info "Installing Dependencies" $STD apt install -y git msg_ok "Installed Dependencies" -NODE_VERSION="26" NODE_MODULE="yarn,node-gyp" setup_nodejs +NODE_VERSION="26" setup_nodejs PG_VERSION="17" setup_postgresql -PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" PG_DB_EXTENSIONS="pg_trgm" setup_postgresql_db -fetch_and_deploy_gh_release "wikijs" "requarks/wiki-v2" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" +PG_DB_NAME="wiki" PG_DB_USER="wikijs_user" setup_postgresql_db +fetch_and_deploy_gh_release "wikijs" "requarks/wiki" "prebuild" "latest" "/opt/wikijs" "wiki-js.tar.gz" + +msg_info "Installing Wiki.js Dependencies" +cd /opt/wikijs/backend +$STD npm ci --omit=dev +msg_ok "Installed Wiki.js Dependencies" msg_info "Configuring Wiki.js" -mv /opt/wikijs/config.sample.yml /opt/wikijs/config.yml -sed -i -E 's|^( *user: ).*|\1'"$PG_DB_USER"'|' /opt/wikijs/config.yml -sed -i -E 's|^( *pass: ).*|\1'"$PG_DB_PASS"'|' /opt/wikijs/config.yml +mkdir -p /opt/wikijs_data +cp /opt/wikijs/config.sample.yml /opt/wikijs/config.yml +sed -i \ + -e "s|^ user: .*| user: wikijs_user|" \ + -e "s|^ pass: .*| pass: ${PG_DB_PASS}|" \ + -e "s|^ db: .*| db: wiki|" \ + -e "s|^dataPath: .*|dataPath: /opt/wikijs_data|" \ + /opt/wikijs/config.yml +ADMIN_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16) +cat <~/wikijs.creds +Wiki.js Admin +Email: admin@example.com +Password: ${ADMIN_PASS} +EOF msg_ok "Configured Wiki.js" msg_info "Creating Service" cat </etc/systemd/system/wikijs.service [Unit] Description=Wiki.js -After=network.target +After=network.target postgresql.service [Service] Type=simple -ExecStart=/usr/bin/node server +ExecStart=/usr/bin/node --no-experimental-webstorage backend Restart=always User=root Environment=NODE_ENV=production @@ -45,7 +61,13 @@ WorkingDirectory=/opt/wikijs [Install] WantedBy=multi-user.target EOF +systemctl set-environment ADMIN_PASS="${ADMIN_PASS}" systemctl enable -q --now wikijs +for _ in $(seq 60); do + curl -fs -o /dev/null http://127.0.0.1:3000 && break + sleep 2 +done +systemctl unset-environment ADMIN_PASS msg_ok "Created Service" motd_ssh diff --git a/install/yubal-install.sh b/install/yubal-install.sh index f58eac07..ed9a987e 100644 --- a/install/yubal-install.sh +++ b/install/yubal-install.sh @@ -31,7 +31,7 @@ ln -sf /opt/bun/bin/bunx /usr/local/bin/bunx msg_ok "Installed Bun" msg_info "Installing Deno" -$STD sh -c "curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr/local sh -s -- -y" +curl -fsSL https://deno.land/install.sh | CI=1 $STD sh -s msg_ok "Installed Deno" msg_info "Creating directories" diff --git a/install/yuvomi-install.sh b/install/yuvomi-install.sh index 7f18767e..15fcb83a 100644 --- a/install/yuvomi-install.sh +++ b/install/yuvomi-install.sh @@ -23,7 +23,7 @@ msg_ok "Installed Dependencies" NODE_VERSION="24" setup_nodejs -fetch_and_deploy_gh_release "yuvomi" "ulsklyc/yuvomi" "tarball" +fetch_and_deploy_gh_release "yuvomi" "ulsklyc/yuvomi" "prebuild" "latest" "/opt/yuvomi" "yuvomi-*-dist.tar.gz" msg_info "Installing Node.js Dependencies" cd /opt/yuvomi diff --git a/install/zabbix-install.sh b/install/zabbix-install.sh index 82a6f4b2..5653d0e5 100644 --- a/install/zabbix-install.sh +++ b/install/zabbix-install.sh @@ -36,17 +36,17 @@ cd /tmp ZABBIX_REPO_DIR="debian" [[ "$ZABBIX_VERSION" == "7.0" && "$(arch_resolve)" == "arm64" ]] && ZABBIX_REPO_DIR="debian-arm64" if [[ "$ZABBIX_VERSION" == "7.0" ]]; then - ZABBIX_DEB_URL="https://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/${ZABBIX_REPO_DIR}/pool/main/z/zabbix-release/zabbix-release_latest_${ZABBIX_VERSION}+debian13_all.deb" - ZABBIX_DEB_FILE="zabbix-release_latest_${ZABBIX_VERSION}+debian13_all.deb" + ZABBIX_DEB_URL="https://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/${ZABBIX_REPO_DIR}/pool/main/z/zabbix-release/zabbix-release_latest_${ZABBIX_VERSION}+debian$(get_os_version_major)_all.deb" + ZABBIX_DEB_FILE="zabbix-release_latest_${ZABBIX_VERSION}+debian$(get_os_version_major)_all.deb" else - ZABBIX_DEB_URL="https://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian13_all.deb" - ZABBIX_DEB_FILE="zabbix-release_latest+debian13_all.deb" + ZABBIX_DEB_URL="https://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian$(get_os_version_major)_all.deb" + ZABBIX_DEB_FILE="zabbix-release_latest+debian$(get_os_version_major)_all.deb" fi curl -fsSL "$ZABBIX_DEB_URL" -o /tmp/"$ZABBIX_DEB_FILE" $STD dpkg -i /tmp/"$ZABBIX_DEB_FILE" apt_update_safe -$STD apt install -y zabbix-server-pgsql zabbix-frontend-php php8.4-pgsql zabbix-apache-conf zabbix-sql-scripts +$STD apt install -y zabbix-server-pgsql zabbix-frontend-php php-pgsql zabbix-apache-conf zabbix-sql-scripts if [[ "$ZABBIX_VERSION" == "7.0" ]]; then ZABBIX_SQL="/usr/share/zabbix-sql-scripts/postgresql/server.sql.gz" @@ -83,23 +83,20 @@ msg_ok "Selected $AGENT_PKG" if [ "$AGENT_PKG" = "zabbix-agent2" ]; then echo "Choose plugins for Zabbix Agent2:" echo "1) PostgreSQL only (default, recommended)" - echo "2) All plugins (may cause issues)" + echo "2) All plugins except NVIDIA GPU (may cause issues)" PLUGIN_CHOICE="${var_zabbix_plugins:-}" [[ -n "$PLUGIN_CHOICE" ]] || read -rp "Choose option [1-2]: " PLUGIN_CHOICE || true case "$PLUGIN_CHOICE" in 2) - $STD apt install -y zabbix-agent2 zabbix-agent2-plugin-* + # The NVIDIA plugin fails the agent's config test without NVML, which aborts the package install + mapfile -t AGENT2_PLUGINS < <(apt-cache search --names-only '^zabbix-agent2-plugin-' | awk '{print $1}' | grep -v nvidia) + $STD apt install -y zabbix-agent2 "${AGENT2_PLUGINS[@]}" ;; *) $STD apt install -y zabbix-agent2 zabbix-agent2-plugin-postgresql ;; esac - - if [ -f /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf ]; then - sed -i 's|^Plugins.NVIDIA.System.Path=.*|# Plugins.NVIDIA.System.Path=/usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu|' \ - /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf - fi else $STD apt install -y zabbix-agent fi diff --git a/install/zerobyte-install.sh b/install/zerobyte-install.sh index cb7bdd60..6e4aa039 100644 --- a/install/zerobyte-install.sh +++ b/install/zerobyte-install.sh @@ -25,9 +25,6 @@ $STD apt install -y \ msg_ok "Installed Dependencies" fetch_and_deploy_gh_release "restic" "restic/restic" "singlefile" "latest" "/usr/local/bin" "restic_*_linux_$(arch_resolve).bz2" -mv /usr/local/bin/restic /usr/local/bin/restic.bz2 -bzip2 -d /usr/local/bin/restic.bz2 -chmod +x /usr/local/bin/restic fetch_and_deploy_gh_release "rclone" "rclone/rclone" "prebuild" "latest" "/opt/rclone" "rclone-*-linux-$(arch_resolve).zip" ln -sf /opt/rclone/rclone /usr/local/bin/rclone @@ -53,6 +50,7 @@ export VITE_SHOUTRRR_VERSION=$(cat ~/.shoutrrr) export NODE_OPTIONS="--max-old-space-size=3072" $STD bun install $STD node ./node_modules/vite/bin/vite.js build +$STD bun build apps/agent/src/index.ts --outfile .output/agent/index.mjs --target bun msg_ok "Built Zerobyte" msg_info "Configuring Zerobyte"