mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-13 01:06:39 +00:00
Compare commits
1 Commits
github-act
...
node-drift
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0bcdab8a2 |
87
.github/ISSUE_TEMPLATE/bug_report.yml
generated
vendored
87
.github/ISSUE_TEMPLATE/bug_report.yml
generated
vendored
@@ -6,17 +6,13 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
## ⚠️ **IMPORTANT - READ FIRST**
|
## ⚠️ **IMPORTANT - READ FIRST**
|
||||||
|
- 🔍 **Search first:** Before submitting, check if the issue has already been reported or resolved in [closed issues](https://github.com/community-scripts/ProxmoxVE/issues?q=is%3Aissue+is%3Aclosed). If found, comment on that issue instead of creating a new one.
|
||||||
|
Alternatively, check the **[Discussions](https://github.com/community-scripts/ProxmoxVE/discussions)** under the *"Announcement"* or *"Guide"* categories for relevant information.
|
||||||
|
- 🔎 If you encounter `[ERROR] in line 23: exit code *: while executing command "$@" > /dev/null 2>&1`, rerun the script with verbose mode before submitting the issue.
|
||||||
|
- 📜 **Read the script:** Familiarize yourself with the script's content and its purpose. This will help you understand the issue better and provide more relevant information
|
||||||
|
|
||||||
**1. Reproduce the issue with verbose mode - this is mandatory.**
|
Thank you for taking the time to report an issue! Please provide as much detail as possible to help us address the problem efficiently.
|
||||||
Set `var_verbose=yes` (or *Advanced Settings → Verbose Mode*) and run the script again.
|
|
||||||
Only a verbose log shows what actually failed - a bare `[ERROR] in line 23: exit code *` tells us nothing.
|
|
||||||
**Reports without a verbose log will most likely be closed.**
|
|
||||||
|
|
||||||
**2. Search before you post.**
|
|
||||||
Check the [closed issues](https://github.com/community-scripts/ProxmoxVE/issues?q=is%3Aissue+is%3Aclosed) and the [Discussions](https://github.com/community-scripts/ProxmoxVE/discussions) (*Announcement* / *Guide*). If it is already known, comment there instead of opening a new issue.
|
|
||||||
|
|
||||||
**3. Read the script.**
|
|
||||||
Knowing what it does makes it much easier to describe the problem - and often to solve it yourself.
|
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
id: guidelines
|
id: guidelines
|
||||||
@@ -32,6 +28,7 @@ body:
|
|||||||
label: 🔎 Did you run the script with verbose mode enabled?
|
label: 🔎 Did you run the script with verbose mode enabled?
|
||||||
description: "Required for debugging any script issue. A verbose log is mandatory."
|
description: "Required for debugging any script issue. A verbose log is mandatory."
|
||||||
options:
|
options:
|
||||||
|
- ""
|
||||||
- "Yes, verbose mode was enabled and the output is included below"
|
- "Yes, verbose mode was enabled and the output is included below"
|
||||||
- "No (this issue will likely be closed automatically)"
|
- "No (this issue will likely be closed automatically)"
|
||||||
validations:
|
validations:
|
||||||
@@ -53,32 +50,6 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: issue_phase
|
|
||||||
attributes:
|
|
||||||
label: 🕒 When does the issue occur?
|
|
||||||
options:
|
|
||||||
- "Initial creation / installation"
|
|
||||||
- "Update of an existing container"
|
|
||||||
- "While the application is running"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: execution_context
|
|
||||||
attributes:
|
|
||||||
label: 🖱️ Where did you run the command?
|
|
||||||
description: "The shell matters — the Proxmox web console starts without some environment variables that a normal login shell sets."
|
|
||||||
options:
|
|
||||||
- "Proxmox web UI → node → Shell"
|
|
||||||
- "Proxmox web UI → LXC → Console"
|
|
||||||
- "SSH into the Proxmox host"
|
|
||||||
- "SSH into the container"
|
|
||||||
- "pct enter from the host"
|
|
||||||
- "Other / not listed"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -93,31 +64,18 @@ body:
|
|||||||
value: "💡 **Tip:** If you are using Advanced Settings, please test with Default Settings before submitting an issue."
|
value: "💡 **Tip:** If you are using Advanced Settings, please test with Default Settings before submitting an issue."
|
||||||
|
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: os_distribution
|
id: linux_distribution
|
||||||
attributes:
|
attributes:
|
||||||
label: 🖥️ Which Linux distribution is the container running?
|
label: 🖥️ Which Linux distribution are you using?
|
||||||
options:
|
options:
|
||||||
- Debian
|
-
|
||||||
- Ubuntu
|
|
||||||
- Alpine
|
- Alpine
|
||||||
- Devuan
|
- Debian 11
|
||||||
- AlmaLinux
|
- Debian 12
|
||||||
- Rocky Linux
|
- Debian 13
|
||||||
- CentOS Stream
|
- Ubuntu 22.04
|
||||||
- Fedora
|
- Ubuntu 24.04
|
||||||
- openSUSE
|
- Ubuntu 24.10
|
||||||
- openEuler
|
|
||||||
- Gentoo
|
|
||||||
- Other / not listed
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
|
||||||
id: os_version
|
|
||||||
attributes:
|
|
||||||
label: 🔢 Which version of that distribution?
|
|
||||||
description: "Run `cat /etc/os-release` inside the container if unsure."
|
|
||||||
placeholder: "e.g. 13 (Debian), 24.04 (Ubuntu), 3.22 (Alpine)"
|
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
@@ -127,27 +85,16 @@ body:
|
|||||||
label: 🧱 Is this Proxmox host running arm64?
|
label: 🧱 Is this Proxmox host running arm64?
|
||||||
description: "Run `dpkg --print-architecture` on your Proxmox host if unsure."
|
description: "Run `dpkg --print-architecture` on your Proxmox host if unsure."
|
||||||
options:
|
options:
|
||||||
|
- ""
|
||||||
- "No"
|
- "No"
|
||||||
- "Yes"
|
- "Yes"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- type: dropdown
|
|
||||||
id: pve_major
|
|
||||||
attributes:
|
|
||||||
label: 📈 Which Proxmox VE release are you on?
|
|
||||||
options:
|
|
||||||
- "Proxmox VE 9"
|
|
||||||
- "Proxmox VE 8"
|
|
||||||
- "Proxmox VE 7 or older (end of life)"
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
- type: input
|
||||||
id: pve_version
|
id: pve_version
|
||||||
attributes:
|
attributes:
|
||||||
label: 🔢 Exact Proxmox version and kernel
|
label: 📈 Which Proxmox version are you on?
|
||||||
description: "Both matter — several issues turned out to be kernel-specific."
|
|
||||||
placeholder: "run pveversion in your PVE node console"
|
placeholder: "run pveversion in your PVE node console"
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
166
.github/changelogs/2026/09.md
generated
vendored
166
.github/changelogs/2026/09.md
generated
vendored
@@ -1,169 +1,3 @@
|
|||||||
## 2026-09-12
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Elasticsearch ([#17188](https://github.com/community-scripts/ProxmoxVE/pull/17188))
|
|
||||||
- Hammer ([#17189](https://github.com/community-scripts/ProxmoxVE/pull/17189))
|
|
||||||
- gotenberg ([#17205](https://github.com/community-scripts/ProxmoxVE/pull/17205))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix(dispatcharr): add comskip installation and build dependencies [@eXistC](https://github.com/eXistC) ([#16224](https://github.com/community-scripts/ProxmoxVE/pull/16224))
|
|
||||||
- poznote: serve from src/public docroot [@MickLesk](https://github.com/MickLesk) ([#17187](https://github.com/community-scripts/ProxmoxVE/pull/17187))
|
|
||||||
- calibre-web: use calibreweb release identifier to avoid version file collision [@MickLesk](https://github.com/MickLesk) ([#17186](https://github.com/community-scripts/ProxmoxVE/pull/17186))
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- Docker VM: Feature Bump - Refactor script for improved functionality [@MickLesk](https://github.com/MickLesk) ([#17216](https://github.com/community-scripts/ProxmoxVE/pull/17216))
|
|
||||||
- feat(jitsi-meet): optional public setup (FQDN, Let's Encrypt, NAT, secure domain) [@klanghans](https://github.com/klanghans) ([#17132](https://github.com/community-scripts/ProxmoxVE/pull/17132))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- Paperless-NGX: add --no-sync to uv run services [@MickLesk](https://github.com/MickLesk) ([#17210](https://github.com/community-scripts/ProxmoxVE/pull/17210))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- VM's: show the selected CPU model instead of doubling it [@MickLesk](https://github.com/MickLesk) ([core#37](https://github.com/community-scripts/core/pull/37))
|
|
||||||
- Generate app headers [@github-actions[bot]](https://github.com/github-actions[bot]) ([core#36](https://github.com/community-scripts/core/pull/36))
|
|
||||||
|
|
||||||
## 2026-09-11
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Lemonade-Server ([#17190](https://github.com/community-scripts/ProxmoxVE/pull/17190))
|
|
||||||
- OneTimeSecret ([#17097](https://github.com/community-scripts/ProxmoxVE/pull/17097))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- update authentik to 2026.8.2 [@thieneret](https://github.com/thieneret) ([#17198](https://github.com/community-scripts/ProxmoxVE/pull/17198))
|
|
||||||
- passwordpusher: restore data before running migrations [@MickLesk](https://github.com/MickLesk) ([#17141](https://github.com/community-scripts/ProxmoxVE/pull/17141))
|
|
||||||
- paperclip: install the rust toolchain needed by the runner build [@MickLesk](https://github.com/MickLesk) ([#17142](https://github.com/community-scripts/ProxmoxVE/pull/17142))
|
|
||||||
- homepage: run next directly instead of through pnpm [@MickLesk](https://github.com/MickLesk) ([#17155](https://github.com/community-scripts/ProxmoxVE/pull/17155))
|
|
||||||
- changedetection: fix: pin browserless [@CrazyWolf13](https://github.com/CrazyWolf13) ([#17163](https://github.com/community-scripts/ProxmoxVE/pull/17163))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- core.func: fall back to a usable HOME when the shell has none [@MickLesk](https://github.com/MickLesk) ([#17154](https://github.com/community-scripts/ProxmoxVE/pull/17154))
|
|
||||||
|
|
||||||
### 🧰 Tools
|
|
||||||
|
|
||||||
- Dockhand ([#17191](https://github.com/community-scripts/ProxmoxVE/pull/17191))
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- update-apps: rewrite the retired Gitea base in every container before updating it [@MickLesk](https://github.com/MickLesk) ([#17156](https://github.com/community-scripts/ProxmoxVE/pull/17156))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- Rename lxc-delete.sh to guest-delete.sh [@MickLesk](https://github.com/MickLesk) ([#17152](https://github.com/community-scripts/ProxmoxVE/pull/17152))
|
|
||||||
|
|
||||||
### 📚 Documentation
|
|
||||||
|
|
||||||
- issue template: add PVE release, execution context and phase; refresh distro list / pve versions [@MickLesk](https://github.com/MickLesk) ([#17160](https://github.com/community-scripts/ProxmoxVE/pull/17160))
|
|
||||||
|
|
||||||
## 2026-09-10
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Chevereto ([#17131](https://github.com/community-scripts/ProxmoxVE/pull/17131))
|
|
||||||
- Portabase ([#17111](https://github.com/community-scripts/ProxmoxVE/pull/17111))
|
|
||||||
- Logseq ([#17112](https://github.com/community-scripts/ProxmoxVE/pull/17112))
|
|
||||||
- Safebucket ([#17096](https://github.com/community-scripts/ProxmoxVE/pull/17096))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Immich v3.2.0 [@vhsdream](https://github.com/vhsdream) ([#17137](https://github.com/community-scripts/ProxmoxVE/pull/17137))
|
|
||||||
- fix(solidtime): prevent composer install from hanging on root prompt [@supersoju](https://github.com/supersoju) ([#17146](https://github.com/community-scripts/ProxmoxVE/pull/17146))
|
|
||||||
- fix(hermesagent): wait for root gateway cleanup [@steveonjava](https://github.com/steveonjava) ([#17147](https://github.com/community-scripts/ProxmoxVE/pull/17147))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- Keep the script name when regenerating the entrypoint [@MickLesk](https://github.com/MickLesk) ([core#35](https://github.com/community-scripts/core/pull/35))
|
|
||||||
- Rewrite the dead Gitea base onto GitHub instead of failing the update [@MickLesk](https://github.com/MickLesk) ([core#33](https://github.com/community-scripts/core/pull/33))
|
|
||||||
- core.func: fall back to a usable HOME when the shell has none [@MickLesk](https://github.com/MickLesk) ([core#32](https://github.com/community-scripts/core/pull/32))
|
|
||||||
|
|
||||||
## 2026-09-09
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Lingarr ([#17130](https://github.com/community-scripts/ProxmoxVE/pull/17130))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- vm: drop the discussions link from the summary [@MickLesk](https://github.com/MickLesk) ([#17117](https://github.com/community-scripts/ProxmoxVE/pull/17117))
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix(hermesagent): stop spurious root gateway after update [@steveonjava](https://github.com/steveonjava) ([#17126](https://github.com/community-scripts/ProxmoxVE/pull/17126))
|
|
||||||
|
|
||||||
## 2026-09-08
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Decypharr ([#17108](https://github.com/community-scripts/ProxmoxVE/pull/17108))
|
|
||||||
- Stash ([#17106](https://github.com/community-scripts/ProxmoxVE/pull/17106))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Update Jellyfin FFmpeg dependency to version 8 [@MickLesk](https://github.com/MickLesk) ([#17109](https://github.com/community-scripts/ProxmoxVE/pull/17109))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- Treat a cut-short forge response as a failure, not as HTTP 200 [@MickLesk](https://github.com/MickLesk) ([core#31](https://github.com/community-scripts/core/pull/31))
|
|
||||||
- Generate app headers [@github-actions[bot]](https://github.com/github-actions[bot]) ([core#28](https://github.com/community-scripts/core/pull/28))
|
|
||||||
- cloud-init: drop the "configure in Proxmox UI" hint [@MickLesk](https://github.com/MickLesk) ([core#30](https://github.com/community-scripts/core/pull/30))
|
|
||||||
- Survive an empty /usr/bin/update instead of aborting the run [@MickLesk](https://github.com/MickLesk) ([core#29](https://github.com/community-scripts/core/pull/29))
|
|
||||||
|
|
||||||
## 2026-09-07
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Chatwoot ([#17095](https://github.com/community-scripts/ProxmoxVE/pull/17095))
|
|
||||||
- whisparr-eros ([#17094](https://github.com/community-scripts/ProxmoxVE/pull/17094))
|
|
||||||
- Matter-Hub ([#17093](https://github.com/community-scripts/ProxmoxVE/pull/17093))
|
|
||||||
- Journiv ([#17092](https://github.com/community-scripts/ProxmoxVE/pull/17092))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- kaneo: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#17086](https://github.com/community-scripts/ProxmoxVE/pull/17086))
|
|
||||||
- iobroker: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#17085](https://github.com/community-scripts/ProxmoxVE/pull/17085))
|
|
||||||
- reactive-resume: repair any wrong WorkingDirectory on update [@MickLesk](https://github.com/MickLesk) ([#17068](https://github.com/community-scripts/ProxmoxVE/pull/17068))
|
|
||||||
- mediamtx: keep mediamtx.yml across updates [@MickLesk](https://github.com/MickLesk) ([#17069](https://github.com/community-scripts/ProxmoxVE/pull/17069))
|
|
||||||
- omnitools: allow remote action while npm ci [@MickLesk](https://github.com/MickLesk) ([#17070](https://github.com/community-scripts/ProxmoxVE/pull/17070))
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- netboot-xyz: add Secure Boot and Legacy assets [@MickLesk](https://github.com/MickLesk) ([#17066](https://github.com/community-scripts/ProxmoxVE/pull/17066))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- flatnotes: follow upstream move to uv and Python 3.13 [@MickLesk](https://github.com/MickLesk) ([#17090](https://github.com/community-scripts/ProxmoxVE/pull/17090))
|
|
||||||
- heimdall: set up PHP 8.4 on update, keep only the database, run migrations [@MickLesk](https://github.com/MickLesk) ([#17067](https://github.com/community-scripts/ProxmoxVE/pull/17067))
|
|
||||||
|
|
||||||
### 📂 Github
|
|
||||||
|
|
||||||
- github: Open per-script Node bump PRs [@MickLesk](https://github.com/MickLesk) ([#17065](https://github.com/community-scripts/ProxmoxVE/pull/17065))
|
|
||||||
|
|
||||||
## 2026-09-06
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Fix Sonarqube update script to add +x on sonar.sh [@jarihu](https://github.com/jarihu) ([#17056](https://github.com/community-scripts/ProxmoxVE/pull/17056))
|
|
||||||
|
|
||||||
## 2026-09-05
|
## 2026-09-05
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|||||||
3
.github/pull_request_template.md
generated
vendored
3
.github/pull_request_template.md
generated
vendored
@@ -14,9 +14,6 @@ Fixes #
|
|||||||
- [ ] **Tested thoroughly** – Changes work as expected.
|
- [ ] **Tested thoroughly** – Changes work as expected.
|
||||||
- [ ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues.
|
- [ ] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues.
|
||||||
|
|
||||||
**Tested on:** <!-- e.g. PVE 9.2 / Debian 13 / fresh install + update. Write "not tested" if you could not run it. -->
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🤖 AI Assistance (**X** in brackets)
|
## 🤖 AI Assistance (**X** in brackets)
|
||||||
|
|||||||
14
.github/workflows/check-node-versions.yml
generated
vendored
14
.github/workflows/check-node-versions.yml
generated
vendored
@@ -497,25 +497,15 @@ jobs:
|
|||||||
PR_EOF
|
PR_EOF
|
||||||
)
|
)
|
||||||
|
|
||||||
# Labels go on at creation, not in a second call: they are what
|
# The label goes on at creation, not in a second call: it is what
|
||||||
# exempts the PR from the template check, and that check runs on
|
# exempts the PR from the template check, and that check runs on
|
||||||
# "opened" — a label added a moment later can arrive too late.
|
# "opened" — a label added a moment later can arrive too late.
|
||||||
#
|
|
||||||
# "keep-open" rather than "automated pr" for that exemption: both
|
|
||||||
# skip the template check, but changelog-pr.yml drops every PR
|
|
||||||
# carrying "automated pr" (it marks its own PR with it), so that
|
|
||||||
# label would keep these bumps out of the changelog entirely.
|
|
||||||
# "update script" and "bugfix" place them under Updated Scripts →
|
|
||||||
# Bug Fixes; the autolabeler cannot do it, since a PR opened with
|
|
||||||
# GITHUB_TOKEN never triggers its pull_request_target run.
|
|
||||||
if url=$(gh pr create \
|
if url=$(gh pr create \
|
||||||
--title "${slug}: bump Node.js from ${our} to ${upstream}" \
|
--title "${slug}: bump Node.js from ${our} to ${upstream}" \
|
||||||
--body "$body" \
|
--body "$body" \
|
||||||
--base main \
|
--base main \
|
||||||
--head "$branch" \
|
--head "$branch" \
|
||||||
--label "keep-open" \
|
--label "automated pr" 2>/dev/null); then
|
||||||
--label "update script" \
|
|
||||||
--label "bugfix" 2>/dev/null); then
|
|
||||||
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
|
printf '%s|open|%s\n' "$slug" "$url" >>/tmp/drift_prs.txt
|
||||||
else
|
else
|
||||||
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
|
printf '%s|failed||\n' "$slug" >>/tmp/drift_prs.txt
|
||||||
|
|||||||
282
CHANGELOG.md
282
CHANGELOG.md
@@ -101,9 +101,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -117,7 +114,7 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary><h4>September (12 entries)</h4></summary>
|
<summary><h4>September (5 entries)</h4></summary>
|
||||||
|
|
||||||
[View September 2026 Changelog](.github/changelogs/2026/09.md)
|
[View September 2026 Changelog](.github/changelogs/2026/09.md)
|
||||||
|
|
||||||
@@ -543,149 +540,12 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
## 2026-09-13
|
|
||||||
|
|
||||||
## 2026-09-12
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Elasticsearch ([#17188](https://github.com/community-scripts/ProxmoxVE/pull/17188))
|
|
||||||
- Hammer ([#17189](https://github.com/community-scripts/ProxmoxVE/pull/17189))
|
|
||||||
- gotenberg ([#17205](https://github.com/community-scripts/ProxmoxVE/pull/17205))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix(dispatcharr): add comskip installation and build dependencies [@eXistC](https://github.com/eXistC) ([#16224](https://github.com/community-scripts/ProxmoxVE/pull/16224))
|
|
||||||
- poznote: serve from src/public docroot [@MickLesk](https://github.com/MickLesk) ([#17187](https://github.com/community-scripts/ProxmoxVE/pull/17187))
|
|
||||||
- calibre-web: use calibreweb release identifier to avoid version file collision [@MickLesk](https://github.com/MickLesk) ([#17186](https://github.com/community-scripts/ProxmoxVE/pull/17186))
|
|
||||||
|
|
||||||
- #### ✨ New Features
|
|
||||||
|
|
||||||
- Docker VM: Feature Bump - Refactor script for improved functionality [@MickLesk](https://github.com/MickLesk) ([#17216](https://github.com/community-scripts/ProxmoxVE/pull/17216))
|
|
||||||
- feat(jitsi-meet): optional public setup (FQDN, Let's Encrypt, NAT, secure domain) [@klanghans](https://github.com/klanghans) ([#17132](https://github.com/community-scripts/ProxmoxVE/pull/17132))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- Paperless-NGX: add --no-sync to uv run services [@MickLesk](https://github.com/MickLesk) ([#17210](https://github.com/community-scripts/ProxmoxVE/pull/17210))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- VM's: show the selected CPU model instead of doubling it [@MickLesk](https://github.com/MickLesk) ([core#37](https://github.com/community-scripts/core/pull/37))
|
|
||||||
- Generate app headers [@github-actions[bot]](https://github.com/github-actions[bot]) ([core#36](https://github.com/community-scripts/core/pull/36))
|
|
||||||
|
|
||||||
## 2026-09-11
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Lemonade-Server ([#17190](https://github.com/community-scripts/ProxmoxVE/pull/17190))
|
|
||||||
- OneTimeSecret ([#17097](https://github.com/community-scripts/ProxmoxVE/pull/17097))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- update authentik to 2026.8.2 [@thieneret](https://github.com/thieneret) ([#17198](https://github.com/community-scripts/ProxmoxVE/pull/17198))
|
|
||||||
- passwordpusher: restore data before running migrations [@MickLesk](https://github.com/MickLesk) ([#17141](https://github.com/community-scripts/ProxmoxVE/pull/17141))
|
|
||||||
- paperclip: install the rust toolchain needed by the runner build [@MickLesk](https://github.com/MickLesk) ([#17142](https://github.com/community-scripts/ProxmoxVE/pull/17142))
|
|
||||||
- homepage: run next directly instead of through pnpm [@MickLesk](https://github.com/MickLesk) ([#17155](https://github.com/community-scripts/ProxmoxVE/pull/17155))
|
|
||||||
- changedetection: fix: pin browserless [@CrazyWolf13](https://github.com/CrazyWolf13) ([#17163](https://github.com/community-scripts/ProxmoxVE/pull/17163))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- core.func: fall back to a usable HOME when the shell has none [@MickLesk](https://github.com/MickLesk) ([#17154](https://github.com/community-scripts/ProxmoxVE/pull/17154))
|
|
||||||
|
|
||||||
### 🧰 Tools
|
|
||||||
|
|
||||||
- Dockhand ([#17191](https://github.com/community-scripts/ProxmoxVE/pull/17191))
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- update-apps: rewrite the retired Gitea base in every container before updating it [@MickLesk](https://github.com/MickLesk) ([#17156](https://github.com/community-scripts/ProxmoxVE/pull/17156))
|
|
||||||
|
|
||||||
- #### 🔧 Refactor
|
|
||||||
|
|
||||||
- Rename lxc-delete.sh to guest-delete.sh [@MickLesk](https://github.com/MickLesk) ([#17152](https://github.com/community-scripts/ProxmoxVE/pull/17152))
|
|
||||||
|
|
||||||
### 📚 Documentation
|
|
||||||
|
|
||||||
- issue template: add PVE release, execution context and phase; refresh distro list / pve versions [@MickLesk](https://github.com/MickLesk) ([#17160](https://github.com/community-scripts/ProxmoxVE/pull/17160))
|
|
||||||
|
|
||||||
## 2026-09-10
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Chevereto ([#17131](https://github.com/community-scripts/ProxmoxVE/pull/17131))
|
|
||||||
- Portabase ([#17111](https://github.com/community-scripts/ProxmoxVE/pull/17111))
|
|
||||||
- Logseq ([#17112](https://github.com/community-scripts/ProxmoxVE/pull/17112))
|
|
||||||
- Safebucket ([#17096](https://github.com/community-scripts/ProxmoxVE/pull/17096))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Immich v3.2.0 [@vhsdream](https://github.com/vhsdream) ([#17137](https://github.com/community-scripts/ProxmoxVE/pull/17137))
|
|
||||||
- fix(solidtime): prevent composer install from hanging on root prompt [@supersoju](https://github.com/supersoju) ([#17146](https://github.com/community-scripts/ProxmoxVE/pull/17146))
|
|
||||||
- fix(hermesagent): wait for root gateway cleanup [@steveonjava](https://github.com/steveonjava) ([#17147](https://github.com/community-scripts/ProxmoxVE/pull/17147))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- Keep the script name when regenerating the entrypoint [@MickLesk](https://github.com/MickLesk) ([core#35](https://github.com/community-scripts/core/pull/35))
|
|
||||||
- Rewrite the dead Gitea base onto GitHub instead of failing the update [@MickLesk](https://github.com/MickLesk) ([core#33](https://github.com/community-scripts/core/pull/33))
|
|
||||||
- core.func: fall back to a usable HOME when the shell has none [@MickLesk](https://github.com/MickLesk) ([core#32](https://github.com/community-scripts/core/pull/32))
|
|
||||||
|
|
||||||
## 2026-09-09
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Lingarr ([#17130](https://github.com/community-scripts/ProxmoxVE/pull/17130))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- vm: drop the discussions link from the summary [@MickLesk](https://github.com/MickLesk) ([#17117](https://github.com/community-scripts/ProxmoxVE/pull/17117))
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- fix(hermesagent): stop spurious root gateway after update [@steveonjava](https://github.com/steveonjava) ([#17126](https://github.com/community-scripts/ProxmoxVE/pull/17126))
|
|
||||||
|
|
||||||
## 2026-09-08
|
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Decypharr ([#17108](https://github.com/community-scripts/ProxmoxVE/pull/17108))
|
|
||||||
- Stash ([#17106](https://github.com/community-scripts/ProxmoxVE/pull/17106))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
|
||||||
|
|
||||||
- Update Jellyfin FFmpeg dependency to version 8 [@MickLesk](https://github.com/MickLesk) ([#17109](https://github.com/community-scripts/ProxmoxVE/pull/17109))
|
|
||||||
|
|
||||||
### 💾 Core
|
|
||||||
|
|
||||||
- Treat a cut-short forge response as a failure, not as HTTP 200 [@MickLesk](https://github.com/MickLesk) ([core#31](https://github.com/community-scripts/core/pull/31))
|
|
||||||
- Generate app headers [@github-actions[bot]](https://github.com/github-actions[bot]) ([core#28](https://github.com/community-scripts/core/pull/28))
|
|
||||||
- cloud-init: drop the "configure in Proxmox UI" hint [@MickLesk](https://github.com/MickLesk) ([core#30](https://github.com/community-scripts/core/pull/30))
|
|
||||||
- Survive an empty /usr/bin/update instead of aborting the run [@MickLesk](https://github.com/MickLesk) ([core#29](https://github.com/community-scripts/core/pull/29))
|
|
||||||
|
|
||||||
## 2026-09-07
|
## 2026-09-07
|
||||||
|
|
||||||
### 🆕 New Scripts
|
|
||||||
|
|
||||||
- Chatwoot ([#17095](https://github.com/community-scripts/ProxmoxVE/pull/17095))
|
|
||||||
- whisparr-eros ([#17094](https://github.com/community-scripts/ProxmoxVE/pull/17094))
|
|
||||||
- Matter-Hub ([#17093](https://github.com/community-scripts/ProxmoxVE/pull/17093))
|
|
||||||
- Journiv ([#17092](https://github.com/community-scripts/ProxmoxVE/pull/17092))
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
- kaneo: bump Node.js from 22 to 24 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#17086](https://github.com/community-scripts/ProxmoxVE/pull/17086))
|
|
||||||
- iobroker: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#17085](https://github.com/community-scripts/ProxmoxVE/pull/17085))
|
|
||||||
- reactive-resume: repair any wrong WorkingDirectory on update [@MickLesk](https://github.com/MickLesk) ([#17068](https://github.com/community-scripts/ProxmoxVE/pull/17068))
|
- reactive-resume: repair any wrong WorkingDirectory on update [@MickLesk](https://github.com/MickLesk) ([#17068](https://github.com/community-scripts/ProxmoxVE/pull/17068))
|
||||||
- mediamtx: keep mediamtx.yml across updates [@MickLesk](https://github.com/MickLesk) ([#17069](https://github.com/community-scripts/ProxmoxVE/pull/17069))
|
- mediamtx: keep mediamtx.yml across updates [@MickLesk](https://github.com/MickLesk) ([#17069](https://github.com/community-scripts/ProxmoxVE/pull/17069))
|
||||||
- omnitools: allow remote action while npm ci [@MickLesk](https://github.com/MickLesk) ([#17070](https://github.com/community-scripts/ProxmoxVE/pull/17070))
|
- omnitools: allow remote action while npm ci [@MickLesk](https://github.com/MickLesk) ([#17070](https://github.com/community-scripts/ProxmoxVE/pull/17070))
|
||||||
@@ -696,7 +556,6 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- #### 🔧 Refactor
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
- flatnotes: follow upstream move to uv and Python 3.13 [@MickLesk](https://github.com/MickLesk) ([#17090](https://github.com/community-scripts/ProxmoxVE/pull/17090))
|
|
||||||
- heimdall: set up PHP 8.4 on update, keep only the database, run migrations [@MickLesk](https://github.com/MickLesk) ([#17067](https://github.com/community-scripts/ProxmoxVE/pull/17067))
|
- heimdall: set up PHP 8.4 on update, keep only the database, run migrations [@MickLesk](https://github.com/MickLesk) ([#17067](https://github.com/community-scripts/ProxmoxVE/pull/17067))
|
||||||
|
|
||||||
### 📂 Github
|
### 📂 Github
|
||||||
@@ -1192,3 +1051,142 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- Refactor: PowerDNS move poweradmin database outside the web root [@MickLesk](https://github.com/MickLesk) ([#16476](https://github.com/community-scripts/ProxmoxVE/pull/16476))
|
- Refactor: PowerDNS move poweradmin database outside the web root [@MickLesk](https://github.com/MickLesk) ([#16476](https://github.com/community-scripts/ProxmoxVE/pull/16476))
|
||||||
- paperless-ngx: run services with uv --no-sync to avoid startup network dependency [@MickLesk](https://github.com/MickLesk) ([#16479](https://github.com/community-scripts/ProxmoxVE/pull/16479))
|
- paperless-ngx: run services with uv --no-sync to avoid startup network dependency [@MickLesk](https://github.com/MickLesk) ([#16479](https://github.com/community-scripts/ProxmoxVE/pull/16479))
|
||||||
|
|
||||||
|
## 2026-08-13
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- SuggestArr ([#16449](https://github.com/community-scripts/ProxmoxVE/pull/16449))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- fix(stirling-pdf): LibreOffice listener collides with unoserver on UNO port 2002, burning a core [@angusmaul](https://github.com/angusmaul) ([#16460](https://github.com/community-scripts/ProxmoxVE/pull/16460))
|
||||||
|
- fix(reitti): enable SNI for tile cache [@kylemd](https://github.com/kylemd) ([#16463](https://github.com/community-scripts/ProxmoxVE/pull/16463))
|
||||||
|
- [wanderer] refactor [@johanngrobe](https://github.com/johanngrobe) ([#16448](https://github.com/community-scripts/ProxmoxVE/pull/16448))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- feat: Update koillection-install.sh to support API usage [@Crazy-Duck](https://github.com/Crazy-Duck) ([#16425](https://github.com/community-scripts/ProxmoxVE/pull/16425))
|
||||||
|
|
||||||
|
## 2026-08-12
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Stalwart ([#16388](https://github.com/community-scripts/ProxmoxVE/pull/16388))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- networkoptimizer: mitigate dotnet publish hang in LXC [@MickLesk](https://github.com/MickLesk) ([#16436](https://github.com/community-scripts/ProxmoxVE/pull/16436))
|
||||||
|
- lazylibrarian: reinstall deps after git pull on update [@MickLesk](https://github.com/MickLesk) ([#16435](https://github.com/community-scripts/ProxmoxVE/pull/16435))
|
||||||
|
- wanderer: fix deprecated meilisearch upgrade flag [@MickLesk](https://github.com/MickLesk) ([#16434](https://github.com/community-scripts/ProxmoxVE/pull/16434))
|
||||||
|
- calibre-web: fix release asset filename pattern [@MickLesk](https://github.com/MickLesk) ([#16433](https://github.com/community-scripts/ProxmoxVE/pull/16433))
|
||||||
|
- fix(stirling-pdf): unoserver installed into the venv, and login mode truncates .env [@angusmaul](https://github.com/angusmaul) ([#16439](https://github.com/community-scripts/ProxmoxVE/pull/16439))
|
||||||
|
- fix(pulse): keep the container recoverable when an update fails [@rcourtman](https://github.com/rcourtman) ([#16311](https://github.com/community-scripts/ProxmoxVE/pull/16311))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- ConvertX: add some new dependencies [@MickLesk](https://github.com/MickLesk) ([#16437](https://github.com/community-scripts/ProxmoxVE/pull/16437))
|
||||||
|
|
||||||
|
## 2026-08-11
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- Update source URL for Reactive Resume [@MickLesk](https://github.com/MickLesk) ([#16407](https://github.com/community-scripts/ProxmoxVE/pull/16407))
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Pelican-Panel: add php artisan p:environment:database [@MickLesk](https://github.com/MickLesk) ([#16397](https://github.com/community-scripts/ProxmoxVE/pull/16397))
|
||||||
|
- outline: fix URL sed matching wrong line in .env.sample // refactor .env generation [@MickLesk](https://github.com/MickLesk) ([#16408](https://github.com/community-scripts/ProxmoxVE/pull/16408))
|
||||||
|
- paperless-ngx: reindex Tantivy search index on webserver start [@MickLesk](https://github.com/MickLesk) ([#16395](https://github.com/community-scripts/ProxmoxVE/pull/16395))
|
||||||
|
- karakeep: pin Node.js to 22 LTS, avoid Node 24.19 better-sqlite3 crash [@MickLesk](https://github.com/MickLesk) ([#16396](https://github.com/community-scripts/ProxmoxVE/pull/16396))
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- Open WebUI: add optional OpenTelemetry package install [@irishpadres](https://github.com/irishpadres) ([#16415](https://github.com/community-scripts/ProxmoxVE/pull/16415))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- fix(add-tailscale-lxc): stop spinner before whiptail menu [@halcycon](https://github.com/halcycon) ([#16402](https://github.com/community-scripts/ProxmoxVE/pull/16402))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- arcane: fix projects/builds dir ownership for non-root container UID [@MickLesk](https://github.com/MickLesk) ([#16411](https://github.com/community-scripts/ProxmoxVE/pull/16411))
|
||||||
|
|
||||||
|
## 2026-08-10
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- GitLab ([#16386](https://github.com/community-scripts/ProxmoxVE/pull/16386))
|
||||||
|
- TeslaMate ([#16385](https://github.com/community-scripts/ProxmoxVE/pull/16385))
|
||||||
|
- tor-snowflake ([#15684](https://github.com/community-scripts/ProxmoxVE/pull/15684))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- ErsatzTV: update ffmpeg to 8.1 version [@MickLesk](https://github.com/MickLesk) ([#16383](https://github.com/community-scripts/ProxmoxVE/pull/16383))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- post-pdm-install ([#16368](https://github.com/community-scripts/ProxmoxVE/pull/16368))
|
||||||
|
|
||||||
|
## 2026-08-09
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- Fix: CouchDB Erlang cookie breaks vm.args (use hex) [@fudianchn](https://github.com/fudianchn) ([#16361](https://github.com/community-scripts/ProxmoxVE/pull/16361))
|
||||||
|
- SparkyFitness: Install Git for frontend builds [@MickLesk](https://github.com/MickLesk) ([#16352](https://github.com/community-scripts/ProxmoxVE/pull/16352))
|
||||||
|
- Byparr: Use invisible-playwright browser setup [@MickLesk](https://github.com/MickLesk) ([#16353](https://github.com/community-scripts/ProxmoxVE/pull/16353))
|
||||||
|
- Crafty Controller: Restore ownership after updates [@MickLesk](https://github.com/MickLesk) ([#16354](https://github.com/community-scripts/ProxmoxVE/pull/16354))
|
||||||
|
- Webtrees: Fix schema check in silent mode [@MickLesk](https://github.com/MickLesk) ([#16355](https://github.com/community-scripts/ProxmoxVE/pull/16355))
|
||||||
|
- SigNoz: Allow legacy metadata schema on ClickHouse 26 [@MickLesk](https://github.com/MickLesk) ([#16356](https://github.com/community-scripts/ProxmoxVE/pull/16356))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- Portainer: Update existing CE and BE installations [@MickLesk](https://github.com/MickLesk) ([#16357](https://github.com/community-scripts/ProxmoxVE/pull/16357))
|
||||||
|
|
||||||
|
### 📚 Documentation
|
||||||
|
|
||||||
|
- github: update Star History links and image sources [@MickLesk](https://github.com/MickLesk) ([#16367](https://github.com/community-scripts/ProxmoxVE/pull/16367))
|
||||||
|
|
||||||
|
## 2026-08-08
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Ignis ([#16330](https://github.com/community-scripts/ProxmoxVE/pull/16330))
|
||||||
|
|
||||||
|
### 💾 Core
|
||||||
|
|
||||||
|
- #### ✨ New Features
|
||||||
|
|
||||||
|
- core - setup_nodejs: bypass npm allowScripts policy globally on npm >=11 [@MickLesk](https://github.com/MickLesk) ([#16280](https://github.com/community-scripts/ProxmoxVE/pull/16280))
|
||||||
|
|
||||||
|
## 2026-08-07
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- NetworkOptimizer ([#16328](https://github.com/community-scripts/ProxmoxVE/pull/16328))
|
||||||
|
- Orb ([#16329](https://github.com/community-scripts/ProxmoxVE/pull/16329))
|
||||||
|
|
||||||
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- HortusFox: start applying db migrations [@tomfrenzel](https://github.com/tomfrenzel) ([#16324](https://github.com/community-scripts/ProxmoxVE/pull/16324))
|
||||||
|
- Docker: report container updates instead of prompting, stop auto-updating Portainer Agent, fix addon detection of legacy Portainer [@MickLesk](https://github.com/MickLesk) ([#16298](https://github.com/community-scripts/ProxmoxVE/pull/16298))
|
||||||
|
- Immich: retry mise install on transient npm download failures [@MickLesk](https://github.com/MickLesk) ([#16301](https://github.com/community-scripts/ProxmoxVE/pull/16301))
|
||||||
|
- changedetection: remove msttcorefonts to fix install hang [@austinpilz](https://github.com/austinpilz) ([#16319](https://github.com/community-scripts/ProxmoxVE/pull/16319))
|
||||||
|
|
||||||
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- core: extend new vars and pocketbase values [@MickLesk](https://github.com/MickLesk) ([#16313](https://github.com/community-scripts/ProxmoxVE/pull/16313))
|
||||||
@@ -38,7 +38,7 @@ function update_script() {
|
|||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="26" setup_nodejs
|
||||||
|
|
||||||
msg_info "Updating Aurral"
|
msg_info "Updating Aurral"
|
||||||
cd /opt/aurral
|
cd /opt/aurral
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function update_script() {
|
|||||||
RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
|
RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust
|
||||||
setup_yq
|
setup_yq
|
||||||
|
|
||||||
AUTHENTIK_VERSION="version/2026.8.2"
|
AUTHENTIK_VERSION="version/2026.8.1"
|
||||||
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26
|
# Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26
|
||||||
XMLSEC_VERSION="1.3.12"
|
XMLSEC_VERSION="1.3.12"
|
||||||
|
|
||||||
@@ -184,12 +184,8 @@ EOF
|
|||||||
|
|
||||||
msg_info "Updating services"
|
msg_info "Updating services"
|
||||||
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
|
sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service
|
||||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then
|
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
|
||||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service
|
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
|
||||||
fi
|
|
||||||
if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then
|
|
||||||
sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service
|
|
||||||
fi
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
msg_ok "Updated services"
|
msg_ok "Updated services"
|
||||||
|
|
||||||
@@ -228,8 +224,8 @@ for i in {1..10}; do
|
|||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
$STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
$STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \
|
||||||
cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
|
cp /opt/authentik/tests/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \
|
||||||
cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
|
cp /opt/authentik/tests/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \
|
||||||
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
|
cp -r /opt/authentik/blueprints /opt/authentik-data/; \
|
||||||
rm -r /opt/authentik/blueprints; \
|
rm -r /opt/authentik/blueprints; \
|
||||||
find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +"
|
find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +"
|
||||||
|
|||||||
@@ -32,18 +32,14 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /root/.calibre-web && ! -e /root/.calibreweb ]]; then
|
if check_for_gh_release "Calibre-Web" "janeczku/calibre-web"; then
|
||||||
mv /root/.calibre-web /root/.calibreweb
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "calibreweb" "janeczku/calibre-web"; then
|
|
||||||
msg_info "Stopping Service"
|
msg_info "Stopping Service"
|
||||||
systemctl stop calibre-web
|
systemctl stop calibre-web
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
create_backup /opt/calibre-web/data
|
create_backup /opt/calibre-web/data
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "calibreweb" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Calibre-Web" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||||
setup_uv
|
setup_uv
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
|
|||||||
@@ -69,7 +69,6 @@ function update_script() {
|
|||||||
$STD git -C /opt/browserless/ reset --hard origin/main
|
$STD git -C /opt/browserless/ reset --hard origin/main
|
||||||
$STD npm update --prefix /opt/browserless
|
$STD npm update --prefix /opt/browserless
|
||||||
$STD npm ci --include=optional --include=dev --prefix /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
|
$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.
|
# 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 chrome
|
||||||
|
|||||||
@@ -1,76 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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://www.chatwoot.com/
|
|
||||||
|
|
||||||
APP="Chatwoot"
|
|
||||||
var_tags="${var_tags:-support;chat;helpdesk;crm}"
|
|
||||||
var_cpu="${var_cpu:-4}"
|
|
||||||
var_ram="${var_ram:-6144}"
|
|
||||||
var_disk="${var_disk:-16}"
|
|
||||||
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 [[ ! -f /opt/chatwoot/.env ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "chatwoot" "chatwoot/chatwoot"; then
|
|
||||||
msg_info "Stopping Services"
|
|
||||||
systemctl stop chatwoot-web chatwoot-worker
|
|
||||||
msg_ok "Stopped Services"
|
|
||||||
|
|
||||||
create_backup /opt/chatwoot/.env /opt/chatwoot/storage
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "chatwoot" "chatwoot/chatwoot" "tarball"
|
|
||||||
RUBY_VERSION=$(tr -d ' \n' </opt/chatwoot/.ruby-version)
|
|
||||||
RUBY_VERSION="${RUBY_VERSION}" RUBY_INSTALL_RAILS="false" setup_ruby
|
|
||||||
NODE_VERSION=$(tr -d ' \n' </opt/chatwoot/.nvmrc)
|
|
||||||
NODE_VERSION="${NODE_VERSION}" NODE_MODULE="pnpm" setup_nodejs
|
|
||||||
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
|
|
||||||
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
msg_info "Updating Application"
|
|
||||||
cd /opt/chatwoot
|
|
||||||
$STD bundle config set --local without 'development test'
|
|
||||||
$STD bundle config set --local deployment 'true'
|
|
||||||
$STD bundle install
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
RAILS_ENV=production $STD bundle exec rails db:chatwoot_prepare
|
|
||||||
RAILS_ENV=production $STD bundle exec rails assets:precompile
|
|
||||||
msg_ok "Updated Application"
|
|
||||||
|
|
||||||
msg_info "Starting Services"
|
|
||||||
systemctl start chatwoot-web chatwoot-worker
|
|
||||||
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}:3000${CL}"
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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://chevereto.com/
|
|
||||||
|
|
||||||
APP="Chevereto"
|
|
||||||
var_tags="${var_tags:-image-hosting;gallery;media}"
|
|
||||||
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/chevereto ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "chevereto" "chevereto/chevereto"; then
|
|
||||||
PHP_FPM_SERVICE="$(basename "$(get_php_fpm_socket)" .sock)"
|
|
||||||
|
|
||||||
msg_info "Stopping Services"
|
|
||||||
systemctl stop nginx "$PHP_FPM_SERVICE"
|
|
||||||
msg_ok "Stopped Services"
|
|
||||||
|
|
||||||
create_backup /opt/chevereto/app/env.php \
|
|
||||||
/opt/chevereto/images \
|
|
||||||
/opt/chevereto/content
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "chevereto" "chevereto/chevereto" "tarball"
|
|
||||||
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
msg_info "Updating Chevereto"
|
|
||||||
cd /opt/chevereto/app
|
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
|
||||||
$STD composer install --no-dev --prefer-dist --no-interaction --optimize-autoloader
|
|
||||||
chown -R www-data:www-data /opt/chevereto
|
|
||||||
chmod -R 775 /opt/chevereto/images /opt/chevereto/content
|
|
||||||
msg_ok "Updated Chevereto"
|
|
||||||
|
|
||||||
msg_info "Starting Services"
|
|
||||||
systemctl start "$PHP_FPM_SERVICE" 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}"
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/sirrobot01/decypharr
|
|
||||||
|
|
||||||
APP="Decypharr"
|
|
||||||
var_tags="${var_tags:-arr;debrid}"
|
|
||||||
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/decypharr ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "decypharr" "sirrobot01/decypharr"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop decypharr
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "decypharr" "sirrobot01/decypharr" "prebuild" "latest" "/opt/decypharr" "decypharr_Linux_$(arch_resolve x86_64 arm64).tar.gz"
|
|
||||||
chmod +x /opt/decypharr/decypharr
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start decypharr
|
|
||||||
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}:8282${CL}"
|
|
||||||
@@ -106,18 +106,7 @@ EOF
|
|||||||
msg_ok "Migrated Nginx Configuration"
|
msg_ok "Migrated Nginx Configuration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ensure_dependencies vlc-bin vlc-plugin-base build-essential autoconf libtool libargtable2-dev libavformat-dev libsdl2-dev libswscale-dev
|
ensure_dependencies vlc-bin vlc-plugin-base
|
||||||
|
|
||||||
if ! command -v comskip &> /dev/null; then
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Comskip" "erikkaashoek/Comskip" "tarball"
|
|
||||||
msg_info "Compiling Comskip"
|
|
||||||
cd /opt/Comskip
|
|
||||||
$STD ./autogen.sh
|
|
||||||
$STD ./configure
|
|
||||||
$STD make
|
|
||||||
$STD make install
|
|
||||||
msg_ok "Compiled and Installed Comskip"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "Dispatcharr" "Dispatcharr/Dispatcharr"; then
|
if check_for_gh_release "Dispatcharr" "Dispatcharr/Dispatcharr"; then
|
||||||
msg_info "Stopping Services"
|
msg_info "Stopping Services"
|
||||||
|
|||||||
@@ -1,56 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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://www.elastic.co/elasticsearch
|
|
||||||
|
|
||||||
APP="Elasticsearch"
|
|
||||||
var_tags="${var_tags:-database;search}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-4096}"
|
|
||||||
var_disk="${var_disk:-20}"
|
|
||||||
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 [[ ! -f /etc/elasticsearch/elasticsearch.yml ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Updating ${APP}"
|
|
||||||
$STD apt update
|
|
||||||
$STD apt install -y elasticsearch
|
|
||||||
msg_ok "Updated ${APP}"
|
|
||||||
|
|
||||||
msg_info "Restarting Service"
|
|
||||||
systemctl restart elasticsearch
|
|
||||||
msg_ok "Restarted 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}:9200${CL}"
|
|
||||||
echo -e "${INFO}${YW}Set the password for the 'elastic' user:${CL}"
|
|
||||||
echo -e "${TAB}${DEFAULT}${BGN}/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic${CL}"
|
|
||||||
@@ -38,18 +38,19 @@ function update_script() {
|
|||||||
|
|
||||||
create_backup /opt/flatnotes/.env /opt/flatnotes/data
|
create_backup /opt/flatnotes/.env /opt/flatnotes/data
|
||||||
|
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "flatnotes" "dullage/flatnotes" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "flatnotes" "dullage/flatnotes" "tarball"
|
||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
msg_info "Updating Flatnotes"
|
msg_info "Updating Flatnotes"
|
||||||
cd /opt/flatnotes
|
cd /opt/flatnotes/client
|
||||||
$STD uv sync --locked --no-dev
|
$STD npm install
|
||||||
$STD npm ci
|
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
|
cd /opt/flatnotes
|
||||||
|
rm -f uv.lock
|
||||||
|
sed -i 's/^name = ""$/name = "flatnotes"/' pyproject.toml
|
||||||
|
$STD /usr/local/bin/uvx migrate-to-uv
|
||||||
|
$STD /usr/local/bin/uv sync
|
||||||
msg_ok "Updated Flatnotes"
|
msg_ok "Updated Flatnotes"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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: CrazyWolf13
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/gotenberg/gotenberg
|
|
||||||
|
|
||||||
APP="Gotenberg"
|
|
||||||
var_tags="${var_tags:-document;pdf}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-4096}"
|
|
||||||
var_disk="${var_disk:-15}"
|
|
||||||
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 /etc/systemd/system/gotenberg.service ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "gotenberg" "gotenberg/gotenberg"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop gotenberg
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 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
|
|
||||||
|
|
||||||
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)'" \
|
|
||||||
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"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start gotenberg
|
|
||||||
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}Gotenberg is a stateless API and has no web interface.${CL}"
|
|
||||||
echo -e "${INFO}${YW}Check the health endpoint using the following URL:${CL}"
|
|
||||||
echo -e "${GATEWAY}${BGN}http://${IP}:3000/health${CL}"
|
|
||||||
58
ct/hammer.sh
58
ct/hammer.sh
@@ -1,58 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/Darkrock-Studios/hammer-editor
|
|
||||||
|
|
||||||
APP="Hammer"
|
|
||||||
var_tags="${var_tags:-writing;sync-server}"
|
|
||||||
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_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/hammer ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "hammer" "Darkrock-Studios/hammer-editor"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop hammer
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "hammer" "Darkrock-Studios/hammer-editor" "prebuild" "latest" "/opt/hammer" "server.zip"
|
|
||||||
chmod +x /opt/hammer/bin/server
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start hammer
|
|
||||||
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}:8080${CL}"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
________ __ __
|
|
||||||
/ ____/ /_ ____ _/ /__ ______ ____ / /_
|
|
||||||
/ / / __ \/ __ `/ __/ | /| / / __ \/ __ \/ __/
|
|
||||||
/ /___/ / / / /_/ / /_ | |/ |/ / /_/ / /_/ / /_
|
|
||||||
\____/_/ /_/\__,_/\__/ |__/|__/\____/\____/\__/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
________ __
|
|
||||||
/ ____/ /_ ___ _ _____ ________ / /_____
|
|
||||||
/ / / __ \/ _ \ | / / _ \/ ___/ _ \/ __/ __ \
|
|
||||||
/ /___/ / / / __/ |/ / __/ / / __/ /_/ /_/ /
|
|
||||||
\____/_/ /_/\___/|___/\___/_/ \___/\__/\____/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
____ __
|
|
||||||
/ __ \___ _______ ______ / /_ ____ ___________
|
|
||||||
/ / / / _ \/ ___/ / / / __ \/ __ \/ __ `/ ___/ ___/
|
|
||||||
/ /_/ / __/ /__/ /_/ / /_/ / / / / /_/ / / / /
|
|
||||||
/_____/\___/\___/\__, / .___/_/ /_/\__,_/_/ /_/
|
|
||||||
/____/_/
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
________ __ _ __
|
|
||||||
/ ____/ /___ ______/ /_(_)____________ ____ ___________/ /_
|
|
||||||
/ __/ / / __ `/ ___/ __/ / ___/ ___/ _ \/ __ `/ ___/ ___/ __ \
|
|
||||||
/ /___/ / /_/ (__ ) /_/ / /__(__ ) __/ /_/ / / / /__/ / / /
|
|
||||||
/_____/_/\__,_/____/\__/_/\___/____/\___/\__,_/_/ \___/_/ /_/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
______ __ __
|
|
||||||
/ ____/___ / /____ ____ / /_ ___ _________ _
|
|
||||||
/ / __/ __ \/ __/ _ \/ __ \/ __ \/ _ \/ ___/ __ `/
|
|
||||||
/ /_/ / /_/ / /_/ __/ / / / /_/ / __/ / / /_/ /
|
|
||||||
\____/\____/\__/\___/_/ /_/_.___/\___/_/ \__, /
|
|
||||||
/____/
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ __
|
|
||||||
/ / / /___ _____ ___ ____ ___ ___ _____
|
|
||||||
/ /_/ / __ `/ __ `__ \/ __ `__ \/ _ \/ ___/
|
|
||||||
/ __ / /_/ / / / / / / / / / / / __/ /
|
|
||||||
/_/ /_/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ _
|
|
||||||
/ /___ __ ___________ (_) __
|
|
||||||
__ / / __ \/ / / / ___/ __ \/ / | / /
|
|
||||||
/ /_/ / /_/ / /_/ / / / / / / /| |/ /
|
|
||||||
\____/\____/\__,_/_/ /_/ /_/_/ |___/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ __ _____
|
|
||||||
/ / ___ ____ ___ ____ ____ ____ _____/ /__ / ___/___ ______ _____ _____
|
|
||||||
/ / / _ \/ __ `__ \/ __ \/ __ \/ __ `/ __ / _ \______\__ \/ _ \/ ___/ | / / _ \/ ___/
|
|
||||||
/ /___/ __/ / / / / / /_/ / / / / /_/ / /_/ / __/_____/__/ / __/ / | |/ / __/ /
|
|
||||||
/_____/\___/_/ /_/ /_/\____/_/ /_/\__,_/\__,_/\___/ /____/\___/_/ |___/\___/_/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ _
|
|
||||||
/ / (_)___ ____ _____ ___________
|
|
||||||
/ / / / __ \/ __ `/ __ `/ ___/ ___/
|
|
||||||
/ /___/ / / / / /_/ / /_/ / / / /
|
|
||||||
/_____/_/_/ /_/\__, /\__,_/_/ /_/
|
|
||||||
/____/
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__
|
|
||||||
/ / ____ ____ _________ ____ _
|
|
||||||
/ / / __ \/ __ `/ ___/ _ \/ __ `/
|
|
||||||
/ /___/ /_/ / /_/ (__ ) __/ /_/ /
|
|
||||||
/_____/\____/\__, /____/\___/\__, /
|
|
||||||
/____/ /_/
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
__ ___ __ __ __ __ __
|
|
||||||
/ |/ /___ _/ /_/ /____ _____ / / / /_ __/ /_
|
|
||||||
/ /|_/ / __ `/ __/ __/ _ \/ ___/_____/ /_/ / / / / __ \
|
|
||||||
/ / / / /_/ / /_/ /_/ __/ / /_____/ __ / /_/ / /_/ /
|
|
||||||
/_/ /_/\__,_/\__/\__/\___/_/ /_/ /_/\__,_/_.___/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
____ _______ _____ __
|
|
||||||
/ __ \____ ___/_ __(_)___ ___ ___ / ___/___ _____________ / /_
|
|
||||||
/ / / / __ \/ _ \/ / / / __ `__ \/ _ \\__ \/ _ \/ ___/ ___/ _ \/ __/
|
|
||||||
/ /_/ / / / / __/ / / / / / / / / __/__/ / __/ /__/ / / __/ /_
|
|
||||||
\____/_/ /_/\___/_/ /_/_/ /_/ /_/\___/____/\___/\___/_/ \___/\__/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
____ __ __
|
|
||||||
/ __ \____ _____/ /_____ _/ /_ ____ _________
|
|
||||||
/ /_/ / __ \/ ___/ __/ __ `/ __ \/ __ `/ ___/ _ \
|
|
||||||
/ ____/ /_/ / / / /_/ /_/ / /_/ / /_/ (__ ) __/
|
|
||||||
/_/ \____/_/ \__/\__,_/_.___/\__,_/____/\___/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
_____ ____ __ __ __
|
|
||||||
/ ___/____ _/ __/__ / /_ __ _______/ /_____ / /_
|
|
||||||
\__ \/ __ `/ /_/ _ \/ __ \/ / / / ___/ //_/ _ \/ __/
|
|
||||||
___/ / /_/ / __/ __/ /_/ / /_/ / /__/ ,< / __/ /_
|
|
||||||
/____/\__,_/_/ \___/_.___/\__,_/\___/_/|_|\___/\__/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
_____ __ __
|
|
||||||
/ ___// /_____ ______/ /_
|
|
||||||
\__ \/ __/ __ `/ ___/ __ \
|
|
||||||
___/ / /_/ /_/ (__ ) / / /
|
|
||||||
/____/\__/\__,_/____/_/ /_/
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
_ ____ _ ______
|
|
||||||
| | / / /_ (_)________ ____ ___________ / ____/________ _____
|
|
||||||
| | /| / / __ \/ / ___/ __ \/ __ `/ ___/ ___/_____/ __/ / ___/ __ \/ ___/
|
|
||||||
| |/ |/ / / / / (__ ) /_/ / /_/ / / / / /_____/ /___/ / / /_/ (__ )
|
|
||||||
|__/|__/_/ /_/_/____/ .___/\__,_/_/ /_/ /_____/_/ \____/____/
|
|
||||||
/_/
|
|
||||||
@@ -52,16 +52,6 @@ function update_script() {
|
|||||||
set -a; source /etc/default/hermes; set +a
|
set -a; source /etc/default/hermes; set +a
|
||||||
/home/hermes/.local/bin/hermes update --yes
|
/home/hermes/.local/bin/hermes update --yes
|
||||||
'
|
'
|
||||||
# See https://github.com/community-scripts/ProxmoxVE/issues/17123
|
|
||||||
mapfile -t root_gateway_pids < <(ps -eo user=,pid=,args= | awk '$1 == "root" && $0 ~ /\/home\/hermes\/\.hermes\/hermes-agent\/venv\/bin\/python -m hermes_cli\.main gateway run --replace$/ { print $2 }')
|
|
||||||
if ((${#root_gateway_pids[@]})); then
|
|
||||||
kill -TERM "${root_gateway_pids[@]}"
|
|
||||||
for pid in "${root_gateway_pids[@]}"; do
|
|
||||||
while kill -0 "$pid" 2>/dev/null; do
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
chown -R hermes:hermes /home/hermes
|
chown -R hermes:hermes /home/hermes
|
||||||
msg_ok "Updated Hermes Agent"
|
msg_ok "Updated Hermes Agent"
|
||||||
|
|
||||||
|
|||||||
@@ -83,10 +83,6 @@ EOF
|
|||||||
sed -i '/^ExecStart=/i Environment=CI=true' /etc/systemd/system/homepage.service
|
sed -i '/^ExecStart=/i Environment=CI=true' /etc/systemd/system/homepage.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
if grep -q '^ExecStart=pnpm start' /etc/systemd/system/homepage.service; then
|
|
||||||
sed -i 's|^ExecStart=pnpm start$|ExecStart=/opt/homepage/node_modules/.bin/next start|' /etc/systemd/system/homepage.service
|
|
||||||
systemctl daemon-reload
|
|
||||||
fi
|
|
||||||
msg_ok "Updated Homepage"
|
msg_ok "Updated Homepage"
|
||||||
|
|
||||||
msg_info "Starting service"
|
msg_info "Starting service"
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ EOF
|
|||||||
msg_ok "Image-processing libraries up to date"
|
msg_ok "Image-processing libraries up to date"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE="v3.2.0"
|
RELEASE="v3.1.0"
|
||||||
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
|
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
|
||||||
if [[ $(cat ~/.immich) > "2.5.1" ]]; then
|
if [[ $(cat ~/.immich) > "2.5.1" ]]; then
|
||||||
msg_info "Enabling Maintenance Mode"
|
msg_info "Enabling Maintenance Mode"
|
||||||
@@ -187,10 +187,11 @@ EOF
|
|||||||
msg_info "Updating Immich web and microservices"
|
msg_info "Updating Immich web and microservices"
|
||||||
cd "$SRC_DIR"/server
|
cd "$SRC_DIR"/server
|
||||||
# server build
|
# server build
|
||||||
|
export SHARP_IGNORE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter immich build
|
$STD pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter immich build
|
||||||
$STD pnpm --filter immich --prod --no-optional deploy "$APP_DIR"
|
unset SHARP_IGNORE_GLOBAL_LIBVIPS
|
||||||
export SHARP_FORCE_GLOBAL_LIBVIPS=true
|
export SHARP_FORCE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --dir "$APP_DIR/node_modules/sharp" exec npm run build
|
$STD pnpm --filter immich --prod --no-optional deploy "$APP_DIR"
|
||||||
|
|
||||||
# Patch helmet.json: disable upgrade-insecure-requests for HTTP access
|
# Patch helmet.json: disable upgrade-insecure-requests for HTTP access
|
||||||
if [[ -f "$APP_DIR/helmet.json" ]]; then
|
if [[ -f "$APP_DIR/helmet.json" ]]; then
|
||||||
@@ -204,6 +205,7 @@ EOF
|
|||||||
cd "$SRC_DIR"
|
cd "$SRC_DIR"
|
||||||
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
||||||
unset SHARP_FORCE_GLOBAL_LIBVIPS
|
unset SHARP_FORCE_GLOBAL_LIBVIPS
|
||||||
|
export SHARP_IGNORE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --filter @immich/sdk --filter immich-web --filter @immich/cli build
|
$STD pnpm --filter @immich/sdk --filter immich-web --filter @immich/cli build
|
||||||
$STD pnpm --filter @immich/cli --prod --no-optional deploy "$APP_DIR"/cli
|
$STD pnpm --filter @immich/cli --prod --no-optional deploy "$APP_DIR"/cli
|
||||||
cp -a web/build "$APP_DIR"/www
|
cp -a web/build "$APP_DIR"/www
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NODE_VERSION="26" NPM_VERSION="11" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
msg_info "Updating ${APP} LXC"
|
msg_info "Updating ${APP} LXC"
|
||||||
$STD apt update
|
$STD apt update
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ function update_script() {
|
|||||||
ln -sf "/usr/lib/$(arch_resolve "x86_64-linux-gnu" "aarch64-linux-gnu")/libjemalloc.so.2" /usr/lib/libjemalloc.so
|
ln -sf "/usr/lib/$(arch_resolve "x86_64-linux-gnu" "aarch64-linux-gnu")/libjemalloc.so.2" /usr/lib/libjemalloc.so
|
||||||
fi
|
fi
|
||||||
$STD apt -y upgrade
|
$STD apt -y upgrade
|
||||||
$STD apt -y --with-new-pkgs upgrade jellyfin jellyfin-server jellyfin-ffmpeg8
|
$STD apt -y --with-new-pkgs upgrade jellyfin jellyfin-server jellyfin-ffmpeg7
|
||||||
ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg
|
ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg
|
||||||
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe
|
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe
|
||||||
msg_ok "Updated Jellyfin"
|
msg_ok "Updated Jellyfin"
|
||||||
|
|||||||
@@ -17,14 +17,6 @@ var_version="${var_version:-13}"
|
|||||||
var_arm64="${var_arm64:-yes}"
|
var_arm64="${var_arm64:-yes}"
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
var_unprivileged="${var_unprivileged:-1}"
|
||||||
|
|
||||||
# Optional public setup, read by the install script (all empty = LAN-only install as before).
|
|
||||||
# Without the export they never reach the container.
|
|
||||||
export var_jitsi_domain="${var_jitsi_domain:-}"
|
|
||||||
export var_jitsi_le_email="${var_jitsi_le_email:-}"
|
|
||||||
export var_jitsi_public_ip="${var_jitsi_public_ip:-}"
|
|
||||||
export var_jitsi_admin_user="${var_jitsi_admin_user:-}"
|
|
||||||
export var_jitsi_admin_pass="${var_jitsi_admin_pass:-}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
header_info "$APP"
|
||||||
variables
|
variables
|
||||||
color
|
color
|
||||||
@@ -58,7 +50,4 @@ description
|
|||||||
msg_ok "Completed Successfully!\n"
|
msg_ok "Completed Successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
||||||
echo -e "${GATEWAY}${BGN}https://${var_jitsi_domain:-$IP}${CL}"
|
echo -e "${GATEWAY}${BGN}https://${IP}${CL}"
|
||||||
if [[ -n "${var_jitsi_domain}" ]]; then
|
|
||||||
echo -e "${INFO}${YW}Forward TCP 80/443 and UDP 10000 to the container. Secure-domain credentials (if enabled) are in ~/jitsi-meet.creds inside the container.${CL}"
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -1,69 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/journiv/journiv-app
|
|
||||||
|
|
||||||
APP="Journiv"
|
|
||||||
var_tags="${var_tags:-journal;notes}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-2048}"
|
|
||||||
var_disk="${var_disk:-12}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_arm64="${var_arm64:-yes}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -d /opt/journiv ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "journiv" "journiv/journiv-app"; then
|
|
||||||
msg_info "Stopping Services"
|
|
||||||
systemctl stop journiv journiv-worker journiv-beat
|
|
||||||
msg_ok "Stopped Services"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "journiv" "journiv/journiv-app" "tarball"
|
|
||||||
|
|
||||||
msg_info "Updating Python Environment"
|
|
||||||
cd /opt/journiv
|
|
||||||
$STD uv sync --locked --no-editable --no-install-project
|
|
||||||
msg_ok "Updated Python Environment"
|
|
||||||
|
|
||||||
msg_info "Running Database Migrations"
|
|
||||||
set -a
|
|
||||||
source /opt/journiv.env
|
|
||||||
set +a
|
|
||||||
$STD /opt/journiv/.venv/bin/python -c "from alembic.config import main; main(['upgrade', 'head'])"
|
|
||||||
msg_ok "Ran Database Migrations"
|
|
||||||
|
|
||||||
msg_info "Starting Services"
|
|
||||||
systemctl start journiv journiv-worker journiv-beat
|
|
||||||
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}:8000${CL}"
|
|
||||||
@@ -42,7 +42,7 @@ function update_script() {
|
|||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kaneo" "usekaneo/kaneo" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "kaneo" "usekaneo/kaneo" "tarball"
|
||||||
|
|
||||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/kaneo/package.json)
|
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/kaneo/package.json)
|
||||||
NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-10.32.1}" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION:-10.32.1}" setup_nodejs
|
||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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: Jamie (jamiej)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/lemonade-sdk/lemonade
|
|
||||||
|
|
||||||
APP="Lemonade-Server"
|
|
||||||
var_tags="${var_tags:-ai}"
|
|
||||||
var_cpu="${var_cpu:-4}"
|
|
||||||
var_ram="${var_ram:-8192}"
|
|
||||||
var_disk="${var_disk:-80}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_arm64="${var_arm64:-yes}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
var_gpu="${var_gpu:-yes}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
if ! command -v lemonade &>/dev/null; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "lemonade-server" "lemonade-sdk/lemonade"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop lemond
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "lemonade-server" "lemonade-sdk/lemonade" "binary" "latest" "/tmp" "lemonade-server_*-debian13_$(arch_resolve).deb"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start lemond
|
|
||||||
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}:13305${CL}"
|
|
||||||
@@ -1,70 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/lingarr-translate/lingarr
|
|
||||||
|
|
||||||
APP="Lingarr"
|
|
||||||
var_tags="${var_tags:-arr;subtitles}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-4096}"
|
|
||||||
var_disk="${var_disk:-16}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_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/lingarr ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "lingarr" "lingarr-translate/lingarr"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop lingarr
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "lingarr" "lingarr-translate/lingarr" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Lingarr (Patience)"
|
|
||||||
cd /opt/lingarr/Lingarr.Client
|
|
||||||
$STD npm ci
|
|
||||||
$STD npm run build
|
|
||||||
mkdir -p /opt/lingarr/Lingarr.Server/wwwroot
|
|
||||||
cp -r /opt/lingarr/Lingarr.Client/dist/* /opt/lingarr/Lingarr.Server/wwwroot/
|
|
||||||
cd /opt/lingarr
|
|
||||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
||||||
rm -rf /opt/lingarr_app
|
|
||||||
$STD dotnet publish ./Lingarr.Server/Lingarr.Server.csproj -c Release -o /opt/lingarr_app /p:UseAppHost=false /p:Version="$(cat ~/.lingarr)"
|
|
||||||
msg_ok "Built Lingarr"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start lingarr
|
|
||||||
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}:9876${CL}"
|
|
||||||
echo -e "${INFO}${YW}Set your translation backend in /opt/lingarr.env${CL}"
|
|
||||||
66
ct/logseq.sh
66
ct/logseq.sh
@@ -1,66 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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://logseq.com/
|
|
||||||
|
|
||||||
APP="Logseq"
|
|
||||||
var_tags="${var_tags:-notes;knowledge-base}"
|
|
||||||
var_cpu="${var_cpu:-4}"
|
|
||||||
var_ram="${var_ram:-8192}"
|
|
||||||
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/logseq ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "logseq" "logseq/logseq"; then
|
|
||||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
|
||||||
JAVA_VERSION="21" setup_java
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "logseq" "logseq/logseq" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Logseq Web App (Patience)"
|
|
||||||
cd /opt/logseq
|
|
||||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
|
||||||
export JAVA_TOOL_OPTIONS="-Xmx4g"
|
|
||||||
$STD corepack enable
|
|
||||||
$STD pnpm install --config.network-timeout=240000
|
|
||||||
$STD pnpm release
|
|
||||||
msg_ok "Built Logseq Web App"
|
|
||||||
|
|
||||||
msg_info "Reloading Webserver"
|
|
||||||
systemctl reload nginx
|
|
||||||
msg_ok "Reloaded Webserver"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
msg_ok "Completed Successfully!\n"
|
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
||||||
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
|
||||||
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/RiDDiX/home-assistant-matter-hub
|
|
||||||
|
|
||||||
APP="Matter-Hub"
|
|
||||||
var_tags="${var_tags:-smarthome;matter}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-4096}"
|
|
||||||
var_disk="${var_disk:-12}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_arm64="${var_arm64:-yes}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -d /opt/matter-hub ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "matter-hub" "RiDDiX/home-assistant-matter-hub"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop matter-hub
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "matter-hub" "RiDDiX/home-assistant-matter-hub" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Matter Hub"
|
|
||||||
cd /opt/matter-hub
|
|
||||||
MATTER_HUB_VERSION=$(cat ~/.matter-hub)
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
$STD pnpm run release:version "$MATTER_HUB_VERSION"
|
|
||||||
APP_VERSION="$MATTER_HUB_VERSION" $STD pnpm build
|
|
||||||
sed -i "s|^APP_VERSION=.*|APP_VERSION=${MATTER_HUB_VERSION}|" /opt/matter-hub.env
|
|
||||||
msg_ok "Built Matter Hub"
|
|
||||||
|
|
||||||
msg_info "Installing Matter Hub"
|
|
||||||
rm -rf /opt/matter-hub_app/node_modules /opt/matter-hub_app/package-lock.json
|
|
||||||
cd /opt/matter-hub_app
|
|
||||||
$STD npm install --omit=dev --no-audit --no-fund
|
|
||||||
msg_ok "Installed Matter Hub"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start matter-hub
|
|
||||||
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}:8482${CL}"
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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: Hai Tran (epiHATR)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://onetimesecret.com/ | Github: https://github.com/onetimesecret/onetimesecret
|
|
||||||
|
|
||||||
APP="OneTimeSecret"
|
|
||||||
var_tags="${var_tags:-security;privacy;secrets}"
|
|
||||||
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}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
SSL_VALUE="${OTS_SSL:-}"
|
|
||||||
if [[ -n "${SSL_VALUE}" ]]; then
|
|
||||||
case "${SSL_VALUE,,}" in
|
|
||||||
1 | true | yes | on) SSL_VALUE="true" ;;
|
|
||||||
0 | false | no | off) SSL_VALUE="false" ;;
|
|
||||||
*)
|
|
||||||
msg_error "Invalid OTS_SSL value '${OTS_SSL}' (use true/false)"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -d /opt/onetimesecret ]] || [[ ! -f /opt/onetimesecret/.env ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "onetimesecret" "onetimesecret/onetimesecret"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop onetimesecret
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
create_backup /opt/onetimesecret/.env
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "onetimesecret" "onetimesecret/onetimesecret" "tarball"
|
|
||||||
RUBY_VERSION=$(tr -d ' \n' </opt/onetimesecret/.ruby-version 2>/dev/null)
|
|
||||||
RUBY_VERSION="${RUBY_VERSION:-3.4.10}" setup_ruby
|
|
||||||
|
|
||||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"]*\)".*/\1/p' /opt/onetimesecret/package.json)
|
|
||||||
NODE_VERSION=$(tr -d ' \n' </opt/onetimesecret/.nvmrc 2>/dev/null)
|
|
||||||
NODE_VERSION="${NODE_VERSION:-25}" NODE_MODULE="pnpm@${PNPM_VERSION:-11.1.2}" setup_nodejs
|
|
||||||
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
msg_info "Reconciling Application"
|
|
||||||
systemctl enable -q --now redis-server
|
|
||||||
cd /opt/onetimesecret
|
|
||||||
mkdir -p tmp/pids log
|
|
||||||
$STD bash bin/setup reconcile
|
|
||||||
msg_ok "Reconciled Application"
|
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
|
||||||
cd /opt/onetimesecret
|
|
||||||
$STD pnpm run build
|
|
||||||
msg_ok "Built Frontend"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start onetimesecret
|
|
||||||
msg_ok "Started Service"
|
|
||||||
msg_ok "Updated successfully!"
|
|
||||||
fi
|
|
||||||
exit
|
|
||||||
}
|
|
||||||
|
|
||||||
start
|
|
||||||
build_container
|
|
||||||
description
|
|
||||||
|
|
||||||
DISPLAY_HOST="${OTS_HOST:-$IP}"
|
|
||||||
case "${OTS_SSL:-false,,}" in
|
|
||||||
1 | true | yes | on)
|
|
||||||
DISPLAY_SCHEME="https"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
DISPLAY_SCHEME="http"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
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}${DISPLAY_SCHEME}://${DISPLAY_HOST}${CL}"
|
|
||||||
@@ -43,8 +43,6 @@ function update_script() {
|
|||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
setup_rust
|
|
||||||
|
|
||||||
msg_info "Rebuilding Paperclip"
|
msg_info "Rebuilding Paperclip"
|
||||||
cd /opt/paperclip-ai
|
cd /opt/paperclip-ai
|
||||||
export HUSKY=0
|
export HUSKY=0
|
||||||
|
|||||||
@@ -169,13 +169,9 @@ function update_script() {
|
|||||||
if ((BRIDGE_UPDATE == 0)); then
|
if ((BRIDGE_UPDATE == 0)); then
|
||||||
sed -i 's|^ExecStart=.*|ExecStart=uv run --no-sync -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"|' /etc/systemd/system/paperless-webserver.service
|
sed -i 's|^ExecStart=.*|ExecStart=uv run --no-sync -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"|' /etc/systemd/system/paperless-webserver.service
|
||||||
grep -q "document_index reindex" /etc/systemd/system/paperless-webserver.service ||
|
grep -q "document_index reindex" /etc/systemd/system/paperless-webserver.service ||
|
||||||
sed -i '/^ExecStart=/i ExecStartPre=uv run --no-sync -- python manage.py document_index reindex --if-needed --no-progress-bar' /etc/systemd/system/paperless-webserver.service
|
sed -i '/^ExecStart=/i ExecStartPre=uv run -- python manage.py document_index reindex --if-needed --no-progress-bar' /etc/systemd/system/paperless-webserver.service
|
||||||
|
$STD systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
for svc in consumer scheduler task-queue webserver; do
|
|
||||||
unit="/etc/systemd/system/paperless-${svc}.service"
|
|
||||||
[[ -f "$unit" ]] && sed -i 's|uv run -- |uv run --no-sync -- |g' "$unit"
|
|
||||||
done
|
|
||||||
$STD systemctl daemon-reload
|
|
||||||
cd /opt/paperless
|
cd /opt/paperless
|
||||||
$STD uv sync --all-extras
|
$STD uv sync --all-extras
|
||||||
cd /opt/paperless/src
|
cd /opt/paperless/src
|
||||||
|
|||||||
@@ -40,9 +40,6 @@ function update_script() {
|
|||||||
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
|
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
|
||||||
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
|
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
|
||||||
|
|
||||||
msg_info "Installing Gem Dependencies"
|
msg_info "Installing Gem Dependencies"
|
||||||
@@ -65,6 +62,8 @@ function update_script() {
|
|||||||
RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1 $STD bundle exec rails assets:precompile
|
RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1 $STD bundle exec rails assets:precompile
|
||||||
msg_ok "Precompiled Assets"
|
msg_ok "Precompiled Assets"
|
||||||
|
|
||||||
|
restore_backup
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start passwordpusher
|
systemctl start passwordpusher
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@@ -1,76 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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://portabase.io
|
|
||||||
|
|
||||||
APP="Portabase"
|
|
||||||
var_tags="${var_tags:-database;backup}"
|
|
||||||
var_cpu="${var_cpu:-4}"
|
|
||||||
var_ram="${var_ram:-8192}"
|
|
||||||
var_disk="${var_disk:-15}"
|
|
||||||
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/portabase ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "portabase" "Portabase/portabase"; then
|
|
||||||
msg_info "Stopping Services"
|
|
||||||
systemctl stop portabase portabase-tusd
|
|
||||||
msg_ok "Stopped Services"
|
|
||||||
|
|
||||||
create_backup /opt/portabase/.env
|
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@11.8.0" setup_nodejs
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "portabase" "Portabase/portabase" "tarball"
|
|
||||||
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
msg_info "Building Portabase"
|
|
||||||
cd /opt/portabase
|
|
||||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
||||||
export NEXT_TELEMETRY_DISABLED=1
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
$STD pnpm run build
|
|
||||||
cp -r /opt/portabase/.next/static /opt/portabase/.next/standalone/.next/static
|
|
||||||
cp -r /opt/portabase/public /opt/portabase/.next/standalone/public
|
|
||||||
mkdir -p /opt/portabase/.next/standalone/src/db
|
|
||||||
cp -r /opt/portabase/src/db/migrations /opt/portabase/.next/standalone/src/db/migrations
|
|
||||||
ln -sf /opt/portabase/.env /opt/portabase/.next/standalone/.env
|
|
||||||
msg_ok "Built Portabase"
|
|
||||||
|
|
||||||
msg_info "Starting Services"
|
|
||||||
systemctl start portabase-tusd portabase
|
|
||||||
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}:3000${CL}"
|
|
||||||
@@ -68,7 +68,7 @@ map \$uri \$poznote_coop {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8040;
|
listen 8040;
|
||||||
root /var/www/html/public;
|
root /var/www/html;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
@@ -144,12 +144,10 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/data/users/[0-9]+/backgrounds/ {
|
location ~ ^/data/users/[0-9]+/backgrounds/ {
|
||||||
root /var/www/html;
|
|
||||||
try_files \$uri =404;
|
try_files \$uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ {
|
location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ {
|
||||||
root /var/www/html;
|
|
||||||
try_files \$uri =404;
|
try_files \$uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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: renizmy
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/safebucket/safebucket
|
|
||||||
|
|
||||||
APP="Safebucket"
|
|
||||||
var_tags="${var_tags:-files;sharing}"
|
|
||||||
var_cpu="${var_cpu:-2}"
|
|
||||||
var_ram="${var_ram:-1024}"
|
|
||||||
var_disk="${var_disk:-10}"
|
|
||||||
var_os="${var_os:-debian}"
|
|
||||||
var_version="${var_version:-13}"
|
|
||||||
var_arm64="${var_arm64:-yes}"
|
|
||||||
var_unprivileged="${var_unprivileged:-1}"
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
variables
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
function update_script() {
|
|
||||||
header_info
|
|
||||||
check_container_storage
|
|
||||||
check_container_resources
|
|
||||||
|
|
||||||
if [[ ! -f /opt/safebucket/safebucket ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "safebucket" "safebucket/safebucket"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop safebucket
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
create_backup /opt/safebucket/config.yaml /opt/safebucket/data/
|
|
||||||
fetch_and_deploy_gh_release "safebucket" "safebucket/safebucket" "singlefile" "latest" "/opt/safebucket" "safebucket-linux-$(arch_resolve)"
|
|
||||||
restore_backup
|
|
||||||
|
|
||||||
msg_info "Configuring Safebucket"
|
|
||||||
chown -R safebucket:safebucket /opt/safebucket
|
|
||||||
msg_ok "Configured Safebucket"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start safebucket
|
|
||||||
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}:8080${CL}"
|
|
||||||
@@ -45,7 +45,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Updating Application"
|
msg_info "Updating Application"
|
||||||
cd /opt/solidtime
|
cd /opt/solidtime
|
||||||
COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev --optimize-autoloader
|
$STD composer install --no-dev --optimize-autoloader
|
||||||
$STD npm install
|
$STD npm install
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
$STD php artisan migrate --force
|
$STD php artisan migrate --force
|
||||||
|
|||||||
58
ct/stash.sh
58
ct/stash.sh
@@ -1,58 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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/stashapp/stash
|
|
||||||
|
|
||||||
APP="Stash"
|
|
||||||
var_tags="${var_tags:-media;organizer}"
|
|
||||||
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_gpu="${var_gpu:-yes}"
|
|
||||||
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/stash ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "stash" "stashapp/stash"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop stash
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "stash" "stashapp/stash" "singlefile" "latest" "/opt/stash" "$(arch_resolve stash-linux stash-linux-arm64v8)"
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start stash
|
|
||||||
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}:9999${CL}"
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/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: angusmaul
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/Whisparr/Whisparr-Eros
|
|
||||||
|
|
||||||
APP="Whisparr-Eros"
|
|
||||||
var_tags="${var_tags:-arr}"
|
|
||||||
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 /var/lib/whisparr-eros ]]; then
|
|
||||||
msg_error "No ${APP} Installation Found!"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if check_for_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros"; then
|
|
||||||
msg_info "Stopping Service"
|
|
||||||
systemctl stop whisparr-eros
|
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros" "prebuild" "latest" "/opt/Whisparr-Eros" "Whisparr.eros.*.linux-$(arch_resolve "x64" "arm64").tar.gz"
|
|
||||||
rm -rf /opt/Whisparr-Eros/Whisparr.Update
|
|
||||||
chmod +x /opt/Whisparr-Eros/Whisparr
|
|
||||||
|
|
||||||
msg_info "Starting Service"
|
|
||||||
systemctl start whisparr-eros
|
|
||||||
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}:6969${CL}"
|
|
||||||
@@ -22,7 +22,7 @@ $STD apt install -y \
|
|||||||
fonts-dejavu-core
|
fonts-dejavu-core
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="22" setup_nodejs
|
NODE_VERSION="26" 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 "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "yt-dlp"
|
||||||
fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ PG_VERSION="17" setup_postgresql
|
|||||||
PG_DB_NAME="authentik" PG_DB_USER="authentik" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
PG_DB_NAME="authentik" PG_DB_USER="authentik" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db
|
||||||
|
|
||||||
XMLSEC_VERSION="1.3.12"
|
XMLSEC_VERSION="1.3.12"
|
||||||
AUTHENTIK_VERSION="version/2026.8.2"
|
AUTHENTIK_VERSION="version/2026.8.1"
|
||||||
fetch_and_deploy_gh_release "xmlsec" "lsh123/xmlsec" "tarball" "${XMLSEC_VERSION}" "/opt/xmlsec"
|
fetch_and_deploy_gh_release "xmlsec" "lsh123/xmlsec" "tarball" "${XMLSEC_VERSION}" "/opt/xmlsec"
|
||||||
fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik"
|
||||||
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
|
GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ msg_info "Installing Calibre (for eBook conversion)"
|
|||||||
$STD apt install -y calibre
|
$STD apt install -y calibre
|
||||||
msg_ok "Installed Calibre"
|
msg_ok "Installed Calibre"
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "calibreweb" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
fetch_and_deploy_gh_release "Calibre-Web" "janeczku/calibre-web" "prebuild" "latest" "/opt/calibre-web" "calibreweb*.tar.gz"
|
||||||
setup_uv
|
setup_uv
|
||||||
|
|
||||||
msg_info "Installing Python Dependencies"
|
msg_info "Installing Python Dependencies"
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ mkdir /opt/browserless
|
|||||||
$STD /opt/changedetection/.venv/bin/python -m pip install playwright
|
$STD /opt/changedetection/.venv/bin/python -m pip install playwright
|
||||||
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
$STD git clone https://github.com/browserless/chrome /opt/browserless
|
||||||
$STD npm ci --include=optional --include=dev --prefix /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 --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 --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 chromium firefox webkit &>/dev/null
|
||||||
|
|||||||
@@ -1,130 +0,0 @@
|
|||||||
#!/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://www.chatwoot.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 \
|
|
||||||
git \
|
|
||||||
imagemagick \
|
|
||||||
libpq-dev \
|
|
||||||
libvips42 \
|
|
||||||
pkg-config \
|
|
||||||
redis-server
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
PG_VERSION="17" PG_MODULES="pgvector" setup_postgresql
|
|
||||||
PG_DB_NAME="chatwoot_production" PG_DB_USER="chatwoot" PG_DB_EXTENSIONS="vector,pg_stat_statements" setup_postgresql_db
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "chatwoot" "chatwoot/chatwoot" "tarball"
|
|
||||||
|
|
||||||
RUBY_VERSION=$(tr -d ' \n' </opt/chatwoot/.ruby-version)
|
|
||||||
RUBY_VERSION="${RUBY_VERSION}" RUBY_INSTALL_RAILS="false" setup_ruby
|
|
||||||
NODE_VERSION=$(grep -oP '"node":\s*"\K[0-9]+' /opt/chatwoot/package.json)
|
|
||||||
NODE_VERSION="${NODE_VERSION}" NODE_MODULE="pnpm" setup_nodejs
|
|
||||||
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
|
|
||||||
|
|
||||||
msg_info "Installing Application Dependencies"
|
|
||||||
cd /opt/chatwoot
|
|
||||||
$STD bundle config set --local without 'development test'
|
|
||||||
$STD bundle config set --local deployment 'true'
|
|
||||||
$STD bundle install
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
msg_ok "Installed Application Dependencies"
|
|
||||||
|
|
||||||
msg_info "Configuring Chatwoot"
|
|
||||||
SECRET_KEY_BASE=$(openssl rand -hex 64)
|
|
||||||
mkdir -p /opt/chatwoot/storage
|
|
||||||
cat <<EOF >/opt/chatwoot/.env
|
|
||||||
RAILS_ENV=production
|
|
||||||
NODE_ENV=production
|
|
||||||
RAILS_LOG_TO_STDOUT=true
|
|
||||||
SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
|
||||||
FRONTEND_URL=http://${LOCAL_IP}:3000
|
|
||||||
FORCE_SSL=false
|
|
||||||
ENABLE_ACCOUNT_SIGNUP=false
|
|
||||||
|
|
||||||
POSTGRES_HOST=127.0.0.1
|
|
||||||
POSTGRES_PORT=5432
|
|
||||||
POSTGRES_DATABASE=${PG_DB_NAME}
|
|
||||||
POSTGRES_USERNAME=${PG_DB_USER}
|
|
||||||
POSTGRES_PASSWORD=${PG_DB_PASS}
|
|
||||||
REDIS_URL=redis://127.0.0.1:6379
|
|
||||||
|
|
||||||
ACTIVE_STORAGE_SERVICE=local
|
|
||||||
EOF
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=$(openssl rand -hex 32)
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=$(openssl rand -hex 32)
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=$(openssl rand -hex 32)
|
|
||||||
cat <<EOF >>/opt/chatwoot/.env
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=${ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=${ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=${ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}
|
|
||||||
EOF
|
|
||||||
chmod 640 /opt/chatwoot/.env
|
|
||||||
msg_ok "Configured Chatwoot"
|
|
||||||
|
|
||||||
msg_info "Preparing Database"
|
|
||||||
RAILS_ENV=production $STD bundle exec rails db:chatwoot_prepare
|
|
||||||
msg_ok "Prepared Database"
|
|
||||||
|
|
||||||
msg_info "Precompiling Assets"
|
|
||||||
RAILS_ENV=production NODE_OPTIONS="--max-old-space-size=4096" $STD bundle exec rails assets:precompile
|
|
||||||
msg_ok "Precompiled Assets"
|
|
||||||
|
|
||||||
msg_info "Creating Services"
|
|
||||||
cat <<EOF >/etc/systemd/system/chatwoot-web.service
|
|
||||||
[Unit]
|
|
||||||
Description=Chatwoot Web
|
|
||||||
After=network.target postgresql.service redis-server.service
|
|
||||||
Requires=postgresql.service redis-server.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/chatwoot
|
|
||||||
EnvironmentFile=/opt/chatwoot/.env
|
|
||||||
Environment=PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
ExecStart=/root/.rbenv/shims/bundle exec rails server -p 3000 -e production
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
cat <<EOF >/etc/systemd/system/chatwoot-worker.service
|
|
||||||
[Unit]
|
|
||||||
Description=Chatwoot Worker
|
|
||||||
After=network.target postgresql.service redis-server.service
|
|
||||||
Requires=postgresql.service redis-server.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/chatwoot
|
|
||||||
EnvironmentFile=/opt/chatwoot/.env
|
|
||||||
Environment=PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
ExecStart=/root/.rbenv/shims/bundle exec sidekiq -C config/sidekiq.yml
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now chatwoot-web chatwoot-worker redis-server
|
|
||||||
msg_ok "Created Services"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
#!/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://chevereto.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 \
|
|
||||||
nginx \
|
|
||||||
exiftran \
|
|
||||||
libimage-exiftool-perl
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
PHP_VERSION="8.3" PHP_FPM="YES" PHP_UPLOAD_MAX_FILESIZE="512M" PHP_POST_MAX_SIZE="512M" PHP_MAX_EXECUTION_TIME="600" setup_php
|
|
||||||
setup_composer
|
|
||||||
setup_mariadb
|
|
||||||
setup_ffmpeg
|
|
||||||
MARIADB_DB_NAME="chevereto" MARIADB_DB_USER="chevereto" setup_mariadb_db
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "chevereto" "chevereto/chevereto" "tarball"
|
|
||||||
|
|
||||||
msg_info "Installing Chevereto Dependencies"
|
|
||||||
cd /opt/chevereto/app
|
|
||||||
export COMPOSER_ALLOW_SUPERUSER=1
|
|
||||||
$STD composer install --no-dev --prefer-dist --no-interaction --optimize-autoloader
|
|
||||||
msg_ok "Installed Chevereto Dependencies"
|
|
||||||
|
|
||||||
msg_info "Configuring Chevereto"
|
|
||||||
cat <<EOF >/opt/chevereto/app/env.php
|
|
||||||
<?php
|
|
||||||
|
|
||||||
return [
|
|
||||||
'CHEVERETO_DB_HOST' => 'localhost',
|
|
||||||
'CHEVERETO_DB_PORT' => '3306',
|
|
||||||
'CHEVERETO_DB_NAME' => '${MARIADB_DB_NAME}',
|
|
||||||
'CHEVERETO_DB_USER' => '${MARIADB_DB_USER}',
|
|
||||||
'CHEVERETO_DB_PASS' => '${MARIADB_DB_PASS}',
|
|
||||||
'CHEVERETO_DB_TABLE_PREFIX' => 'chv_',
|
|
||||||
'CHEVERETO_HOSTNAME' => '${LOCAL_IP}',
|
|
||||||
];
|
|
||||||
EOF
|
|
||||||
chown -R www-data:www-data /opt/chevereto
|
|
||||||
chmod -R 775 /opt/chevereto/images /opt/chevereto/content
|
|
||||||
msg_ok "Configured Chevereto"
|
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
|
||||||
cat <<'EOF' >/etc/nginx/sites-available/chevereto
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name _;
|
|
||||||
root /opt/chevereto;
|
|
||||||
index index.php;
|
|
||||||
|
|
||||||
charset utf-8;
|
|
||||||
client_max_body_size 512M;
|
|
||||||
|
|
||||||
add_header X-Frame-Options "SAMEORIGIN";
|
|
||||||
add_header X-Content-Type-Options "nosniff";
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.php$is_args$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /favicon.ico { access_log off; log_not_found off; }
|
|
||||||
location = /robots.txt { access_log off; log_not_found off; }
|
|
||||||
|
|
||||||
location ~* ^/images/.+\.(gif|jpe?g|png|bmp|webp)$ {
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /index.php {
|
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_pass unix:__PHP_FPM_SOCK__;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
|
|
||||||
fastcgi_read_timeout 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ^~ /app/ {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ /\.(?!well-known).* {
|
|
||||||
deny all;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
sed -i "s|__PHP_FPM_SOCK__|$(get_php_fpm_socket)|" /etc/nginx/sites-available/chevereto
|
|
||||||
nginx_enable_site chevereto
|
|
||||||
msg_ok "Configured Nginx"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,47 +0,0 @@
|
|||||||
#!/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/sirrobot01/decypharr
|
|
||||||
|
|
||||||
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 fuse3
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "decypharr" "sirrobot01/decypharr" "prebuild" "latest" "/opt/decypharr" "decypharr_Linux_$(arch_resolve x86_64 arm64).tar.gz"
|
|
||||||
chmod +x /opt/decypharr/decypharr
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
mkdir -p /opt/decypharr_data
|
|
||||||
cat <<EOF >/etc/systemd/system/decypharr.service
|
|
||||||
[Unit]
|
|
||||||
Description=Decypharr
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/decypharr
|
|
||||||
ExecStart=/opt/decypharr/decypharr --config /opt/decypharr_data
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now decypharr
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -25,13 +25,7 @@ $STD apt install -y \
|
|||||||
procps \
|
procps \
|
||||||
vlc-bin \
|
vlc-bin \
|
||||||
vlc-plugin-base \
|
vlc-plugin-base \
|
||||||
streamlink \
|
streamlink
|
||||||
autoconf \
|
|
||||||
libtool \
|
|
||||||
libargtable2-dev \
|
|
||||||
libavformat-dev \
|
|
||||||
libsdl2-dev \
|
|
||||||
libswscale-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_uv
|
setup_uv
|
||||||
@@ -39,15 +33,6 @@ NODE_VERSION="24" setup_nodejs
|
|||||||
PG_VERSION="16" setup_postgresql
|
PG_VERSION="16" setup_postgresql
|
||||||
PG_DB_NAME="dispatcharr_db" PG_DB_USER="dispatcharr_usr" setup_postgresql_db
|
PG_DB_NAME="dispatcharr_db" PG_DB_USER="dispatcharr_usr" setup_postgresql_db
|
||||||
fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr" "tarball"
|
fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr" "tarball"
|
||||||
fetch_and_deploy_gh_release "Comskip" "erikkaashoek/Comskip" "tarball"
|
|
||||||
|
|
||||||
msg_info "Compiling Comskip"
|
|
||||||
cd /opt/Comskip
|
|
||||||
$STD ./autogen.sh
|
|
||||||
$STD ./configure
|
|
||||||
$STD make
|
|
||||||
$STD make install
|
|
||||||
msg_ok "Compiled and Installed Comskip"
|
|
||||||
|
|
||||||
msg_info "Installing Python Dependencies with uv"
|
msg_info "Installing Python Dependencies with uv"
|
||||||
cd /opt/dispatcharr
|
cd /opt/dispatcharr
|
||||||
|
|||||||
@@ -1,70 +0,0 @@
|
|||||||
#!/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://www.elastic.co/elasticsearch
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
# vm.max_map_count is not namespaced, so a container cannot raise it - the value
|
|
||||||
# is inherited from the Proxmox host. Elasticsearch refuses to start below the
|
|
||||||
# required limit once it binds to a non-loopback address (production mode).
|
|
||||||
msg_info "Checking Kernel Limits"
|
|
||||||
if (($(sysctl -n vm.max_map_count) < 262144)); then
|
|
||||||
msg_error "vm.max_map_count is $(sysctl -n vm.max_map_count), Elasticsearch needs at least 262144"
|
|
||||||
msg_error "Set it on the PROXMOX HOST, not in this container:"
|
|
||||||
msg_error " echo 'vm.max_map_count=1048576' >/etc/sysctl.d/99-elasticsearch.conf && sysctl --system"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
msg_ok "Checked Kernel Limits"
|
|
||||||
|
|
||||||
JAVA_VERSION="21" setup_java
|
|
||||||
|
|
||||||
setup_deb822_repo \
|
|
||||||
"elasticsearch" \
|
|
||||||
"https://artifacts.elastic.co/GPG-KEY-elasticsearch" \
|
|
||||||
"https://artifacts.elastic.co/packages/9.x/apt" \
|
|
||||||
"stable" \
|
|
||||||
"main"
|
|
||||||
|
|
||||||
msg_info "Installing Elasticsearch"
|
|
||||||
$STD apt install -y elasticsearch
|
|
||||||
msg_ok "Installed Elasticsearch"
|
|
||||||
|
|
||||||
msg_info "Configuring Elasticsearch"
|
|
||||||
mkdir -p /opt/elasticsearch_data
|
|
||||||
chown -R elasticsearch:elasticsearch /opt/elasticsearch_data
|
|
||||||
cat <<EOF >/etc/elasticsearch/elasticsearch.yml
|
|
||||||
cluster.name: proxmox
|
|
||||||
node.name: ${HOSTNAME}
|
|
||||||
path.data: /opt/elasticsearch_data
|
|
||||||
path.logs: /var/log/elasticsearch
|
|
||||||
|
|
||||||
network.host: 0.0.0.0
|
|
||||||
http.port: 9200
|
|
||||||
discovery.type: single-node
|
|
||||||
|
|
||||||
xpack.security.enabled: true
|
|
||||||
xpack.security.enrollment.enabled: true
|
|
||||||
xpack.security.http.ssl.enabled: false
|
|
||||||
xpack.security.transport.ssl.enabled: false
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >/etc/elasticsearch/jvm.options.d/heap.options
|
|
||||||
-Xms1g
|
|
||||||
-Xmx1g
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now elasticsearch
|
|
||||||
msg_ok "Configured Elasticsearch"
|
|
||||||
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -14,14 +14,17 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "flatnotes" "dullage/flatnotes" "tarball"
|
fetch_and_deploy_gh_release "flatnotes" "dullage/flatnotes" "tarball"
|
||||||
PYTHON_VERSION="3.13" setup_uv
|
USE_UVX="YES" setup_uv
|
||||||
NODE_VERSION="24" setup_nodejs
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
msg_info "Setting up Flatnotes"
|
msg_info "Setting up Flatnotes"
|
||||||
cd /opt/flatnotes
|
cd /opt/flatnotes
|
||||||
$STD uv sync --locked --no-dev
|
sed -i 's/^name = ""$/name = "flatnotes"/' pyproject.toml
|
||||||
|
$STD /usr/local/bin/uvx migrate-to-uv
|
||||||
|
$STD /usr/local/bin/uv sync
|
||||||
mkdir -p /opt/flatnotes/data
|
mkdir -p /opt/flatnotes/data
|
||||||
$STD npm ci
|
cd /opt/flatnotes/client
|
||||||
|
$STD npm install
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
|
|
||||||
cat <<EOF >/opt/flatnotes/.env
|
cat <<EOF >/opt/flatnotes/.env
|
||||||
|
|||||||
@@ -1,96 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: CrazyWolf13
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/gotenberg/gotenberg
|
|
||||||
|
|
||||||
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 \
|
|
||||||
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 \
|
|
||||||
fonts-liberation2 \
|
|
||||||
fonts-dejavu \
|
|
||||||
fonts-noto-cjk \
|
|
||||||
fonts-noto-color-emoji \
|
|
||||||
fonts-noto-core
|
|
||||||
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
|
|
||||||
|
|
||||||
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)'" \
|
|
||||||
cmd/gotenberg/main.go
|
|
||||||
msg_ok "Built Gotenberg"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/gotenberg.service
|
|
||||||
[Unit]
|
|
||||||
Description=Gotenberg
|
|
||||||
Documentation=https://gotenberg.dev
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
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=OTEL_TRACES_EXPORTER=none
|
|
||||||
Environment=OTEL_METRICS_EXPORTER=none
|
|
||||||
Environment=OTEL_LOGS_EXPORTER=none
|
|
||||||
ExecStart=/usr/local/bin/gotenberg --api-port=3000
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now gotenberg
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
#!/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/Darkrock-Studios/hammer-editor
|
|
||||||
|
|
||||||
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 \
|
|
||||||
unzip \
|
|
||||||
fontconfig \
|
|
||||||
libfreetype6
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
JAVA_VERSION="21" setup_java
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "hammer" "Darkrock-Studios/hammer-editor" "prebuild" "latest" "/opt/hammer" "server.zip"
|
|
||||||
|
|
||||||
msg_info "Configuring Hammer Sync Server"
|
|
||||||
chmod +x /opt/hammer/bin/server
|
|
||||||
mkdir -p /opt/hammer_data
|
|
||||||
cat <<EOF >/opt/hammer_data/config.toml
|
|
||||||
# Hammer Sync Server configuration
|
|
||||||
# Reference: https://github.com/Darkrock-Studios/hammer-editor/blob/develop/docs/HOW-TO-RUN-A-SERVER.md
|
|
||||||
# Loaded automatically from the data directory. Apply changes with:
|
|
||||||
# systemctl restart hammer
|
|
||||||
|
|
||||||
host = "${LOCAL_IP}"
|
|
||||||
port = 8080
|
|
||||||
|
|
||||||
# Hammer clients speak https only and will not connect to plain HTTP. Either put
|
|
||||||
# a TLS reverse proxy in front of this port, or let Hammer terminate TLS itself
|
|
||||||
# with a real certificate (self-signed certs are rejected by the clients).
|
|
||||||
#
|
|
||||||
# Behind a reverse proxy on this host, restrict the plain port to loopback and
|
|
||||||
# set the URL the clients actually use:
|
|
||||||
# bindHosts = ["127.0.0.1", "::1"]
|
|
||||||
# publicUrl = "https://hammer.example.com"
|
|
||||||
#
|
|
||||||
# Hammer terminating TLS itself:
|
|
||||||
# sslPort = 443
|
|
||||||
# [sslCert]
|
|
||||||
# certChainPath = "/etc/letsencrypt/live/hammer.example.com/fullchain.pem"
|
|
||||||
# privateKeyPath = "/etc/letsencrypt/live/hammer.example.com/privkey.pem"
|
|
||||||
# forceHttps = true
|
|
||||||
|
|
||||||
# Per-page social share images. fontconfig and libfreetype6 are already installed.
|
|
||||||
# richLinkPreviews = true
|
|
||||||
|
|
||||||
# communityEnabled = true
|
|
||||||
|
|
||||||
# Storage defaults to an in-process PostgreSQL under /opt/hammer_data/pgdata.
|
|
||||||
# To use an external PostgreSQL instead:
|
|
||||||
# [storage]
|
|
||||||
# type = "remote"
|
|
||||||
# [storage.remote]
|
|
||||||
# host = "db.example.com"
|
|
||||||
# port = 5432
|
|
||||||
# database = "hammer"
|
|
||||||
# user = "hammer"
|
|
||||||
# password = "change-me"
|
|
||||||
# useSsl = true
|
|
||||||
|
|
||||||
# Regenerable render/preview caches, default <data dir>/cache.
|
|
||||||
# [cache]
|
|
||||||
# directory = "/var/tmp/hammer-cache"
|
|
||||||
# maxSizeMb = 200
|
|
||||||
EOF
|
|
||||||
cat <<EOF >/etc/systemd/system/hammer.service
|
|
||||||
[Unit]
|
|
||||||
Description=Hammer Sync Server
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/hammer
|
|
||||||
Environment=SERVER_OPTS=-Duser.home=/opt
|
|
||||||
ExecStart=/opt/hammer/bin/server
|
|
||||||
Restart=always
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now hammer
|
|
||||||
msg_ok "Configured Hammer Sync Server"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -64,7 +64,7 @@ RestartSec=1
|
|||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/homepage/
|
WorkingDirectory=/opt/homepage/
|
||||||
Environment=CI=true
|
Environment=CI=true
|
||||||
ExecStart=/opt/homepage/node_modules/.bin/next start
|
ExecStart=pnpm start
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ ML_DIR="${APP_DIR}/machine-learning"
|
|||||||
GEO_DIR="${INSTALL_DIR}/geodata"
|
GEO_DIR="${INSTALL_DIR}/geodata"
|
||||||
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache}
|
mkdir -p {"${APP_DIR}","${UPLOAD_DIR}","${GEO_DIR}","${INSTALL_DIR}"/cache}
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v3.2.0" "$SRC_DIR"
|
fetch_and_deploy_gh_release "Immich" "immich-app/immich" "tarball" "v3.1.0" "$SRC_DIR"
|
||||||
PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)"
|
PNPM_VERSION="$(jq -r '.packageManager | split("@")[1] | split("+")[0]' ${SRC_DIR}/package.json)"
|
||||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
||||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
||||||
@@ -370,10 +370,11 @@ export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|||||||
export CI=1
|
export CI=1
|
||||||
|
|
||||||
# server build
|
# server build
|
||||||
|
export SHARP_IGNORE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter immich build
|
$STD pnpm --filter @immich/sdk --filter @immich/plugin-sdk --filter immich build
|
||||||
$STD pnpm --filter immich --prod --no-optional deploy "$APP_DIR"
|
unset SHARP_IGNORE_GLOBAL_LIBVIPS
|
||||||
export SHARP_FORCE_GLOBAL_LIBVIPS=true
|
export SHARP_FORCE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --dir "$APP_DIR/node_modules/sharp" exec npm run build
|
$STD pnpm --filter immich --prod --no-optional deploy "$APP_DIR"
|
||||||
|
|
||||||
# Patch helmet.json: disable upgrade-insecure-requests for HTTP access
|
# Patch helmet.json: disable upgrade-insecure-requests for HTTP access
|
||||||
if [[ -f "$APP_DIR/helmet.json" ]]; then
|
if [[ -f "$APP_DIR/helmet.json" ]]; then
|
||||||
@@ -387,6 +388,7 @@ sed -i "s|^start|${APP_DIR}/bin/start|" "$APP_DIR"/bin/immich-admin
|
|||||||
cd "$SRC_DIR"
|
cd "$SRC_DIR"
|
||||||
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
echo "packageImportMethod: hardlink" >>./pnpm-workspace.yaml
|
||||||
unset SHARP_FORCE_GLOBAL_LIBVIPS
|
unset SHARP_FORCE_GLOBAL_LIBVIPS
|
||||||
|
export SHARP_IGNORE_GLOBAL_LIBVIPS=true
|
||||||
$STD pnpm --filter @immich/sdk --filter immich-web --filter @immich/cli build
|
$STD pnpm --filter @immich/sdk --filter immich-web --filter @immich/cli build
|
||||||
$STD pnpm --filter @immich/cli --prod --no-optional deploy "$APP_DIR"/cli
|
$STD pnpm --filter @immich/cli --prod --no-optional deploy "$APP_DIR"/cli
|
||||||
cp -a web/build "$APP_DIR"/www
|
cp -a web/build "$APP_DIR"/www
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
|
|||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NODE_VERSION="26" NPM_VERSION="11" setup_nodejs
|
NODE_VERSION="24" setup_nodejs
|
||||||
|
|
||||||
msg_info "Installing ioBroker (Patience)"
|
msg_info "Installing ioBroker (Patience)"
|
||||||
$STD bash <(curl -fsSL https://iobroker.net/install.sh)
|
$STD bash <(curl -fsSL https://iobroker.net/install.sh)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ setup_deb822_repo \
|
|||||||
msg_ok "Set up Jellyfin Repository"
|
msg_ok "Set up Jellyfin Repository"
|
||||||
|
|
||||||
msg_info "Installing Jellyfin"
|
msg_info "Installing Jellyfin"
|
||||||
ensure_dependencies jellyfin jellyfin-ffmpeg8
|
ensure_dependencies jellyfin jellyfin-ffmpeg7
|
||||||
ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg
|
ln -sf /usr/lib/jellyfin-ffmpeg/ffmpeg /usr/bin/ffmpeg
|
||||||
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe
|
ln -sf /usr/lib/jellyfin-ffmpeg/ffprobe /usr/bin/ffprobe
|
||||||
msg_ok "Installed Jellyfin"
|
msg_ok "Installed Jellyfin"
|
||||||
|
|||||||
@@ -13,29 +13,6 @@ setting_up_container
|
|||||||
network_check
|
network_check
|
||||||
update_os
|
update_os
|
||||||
|
|
||||||
# Optional public setup. Leave the hostname empty for a LAN-only install
|
|
||||||
# (container IP, self-signed certificate) - the previous default behaviour.
|
|
||||||
if [[ -z "${var_jitsi_domain:-}" ]]; then
|
|
||||||
read -rp "${TAB3}Public hostname (FQDN, leave empty to use the container IP): " var_jitsi_domain || true
|
|
||||||
fi
|
|
||||||
var_jitsi_domain="${var_jitsi_domain:-$LOCAL_IP}"
|
|
||||||
|
|
||||||
if [[ "$var_jitsi_domain" != "$LOCAL_IP" ]]; then
|
|
||||||
if [[ -z "${var_jitsi_le_email:-}" ]]; then
|
|
||||||
read -rp "${TAB3}E-mail for Let's Encrypt (leave empty for a self-signed certificate): " var_jitsi_le_email || true
|
|
||||||
fi
|
|
||||||
if [[ -z "${var_jitsi_public_ip:-}" ]]; then
|
|
||||||
read -rp "${TAB3}Public IP behind NAT (leave empty to detect via STUN): " var_jitsi_public_ip || true
|
|
||||||
fi
|
|
||||||
if [[ -z "${var_jitsi_admin_user:-}" ]]; then
|
|
||||||
read -rp "${TAB3}Admin user for secure domain (leave empty to let anyone create rooms): " var_jitsi_admin_user || true
|
|
||||||
fi
|
|
||||||
if [[ -n "${var_jitsi_admin_user:-}" && -z "${var_jitsi_admin_pass:-}" ]]; then
|
|
||||||
read -rsp "${TAB3}Admin password (leave empty to generate): " var_jitsi_admin_pass || true
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt install -y nginx
|
$STD apt install -y nginx
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
@@ -48,72 +25,11 @@ setup_deb822_repo "jitsi" \
|
|||||||
""
|
""
|
||||||
|
|
||||||
msg_info "Installing Jitsi Meet"
|
msg_info "Installing Jitsi Meet"
|
||||||
echo "jitsi-videobridge2 jitsi-videobridge/jvb-hostname string ${var_jitsi_domain}" | debconf-set-selections
|
echo "jitsi-videobridge2 jitsi-videobridge/jvb-hostname string ${LOCAL_IP}" | debconf-set-selections
|
||||||
if [[ -n "${var_jitsi_le_email:-}" ]]; then
|
echo "jitsi-meet-web-config jitsi-meet/cert-choice select Generate a new self-signed certificate" | debconf-set-selections
|
||||||
# acme.sh (used by the packaged Let's Encrypt helper) refuses to install without cron
|
|
||||||
$STD apt install -y cron
|
|
||||||
echo "jitsi-meet-web-config jitsi-meet/cert-choice select Let's Encrypt certificates" | debconf-set-selections
|
|
||||||
echo "jitsi-meet-web-config jitsi-meet/email string ${var_jitsi_le_email}" | debconf-set-selections
|
|
||||||
else
|
|
||||||
echo "jitsi-meet-web-config jitsi-meet/cert-choice select Generate a new self-signed certificate" | debconf-set-selections
|
|
||||||
fi
|
|
||||||
echo "jitsi-meet-web-config jitsi-meet/jaas-choice boolean false" | debconf-set-selections
|
|
||||||
DEBIAN_FRONTEND=noninteractive $STD apt install -y jitsi-meet
|
DEBIAN_FRONTEND=noninteractive $STD apt install -y jitsi-meet
|
||||||
msg_ok "Installed Jitsi Meet"
|
msg_ok "Installed Jitsi Meet"
|
||||||
|
|
||||||
if [[ -n "${var_jitsi_public_ip:-}" ]]; then
|
|
||||||
msg_info "Configuring NAT mapping"
|
|
||||||
# JVB 2.3+ reads this from jvb.conf; sip-communicator.properties is no longer used
|
|
||||||
cat <<EOF >>/etc/jitsi/videobridge/jvb.conf
|
|
||||||
ice4j {
|
|
||||||
harvest {
|
|
||||||
mapping {
|
|
||||||
static-mappings = [
|
|
||||||
{ local-address = "${LOCAL_IP}", public-address = "${var_jitsi_public_ip}" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
systemctl restart jitsi-videobridge2
|
|
||||||
msg_ok "Configured NAT mapping"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "${var_jitsi_admin_user:-}" ]]; then
|
|
||||||
msg_info "Configuring Secure Domain"
|
|
||||||
# Only authenticated users may create rooms; guests join via the anonymous domain.
|
|
||||||
# https://jitsi.github.io/handbook/docs/devops-guide/secure-domain/
|
|
||||||
var_jitsi_admin_pass="${var_jitsi_admin_pass:-$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-16)}"
|
|
||||||
sed -i "0,/authentication = \"jitsi-anonymous\"/s//authentication = \"internal_hashed\"/" \
|
|
||||||
"/etc/prosody/conf.avail/${var_jitsi_domain}.cfg.lua"
|
|
||||||
cat <<EOF >>"/etc/prosody/conf.avail/${var_jitsi_domain}.cfg.lua"
|
|
||||||
|
|
||||||
VirtualHost "guest.${var_jitsi_domain}"
|
|
||||||
authentication = "anonymous"
|
|
||||||
c2s_require_encryption = false
|
|
||||||
EOF
|
|
||||||
cat <<EOF >>/etc/jitsi/jicofo/jicofo.conf
|
|
||||||
jicofo {
|
|
||||||
authentication {
|
|
||||||
enabled = true
|
|
||||||
type = XMPP
|
|
||||||
login-url = "${var_jitsi_domain}"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
sed -i "s|^\s*// anonymousdomain: 'guest.example.com',| anonymousdomain: 'guest.${var_jitsi_domain}',|" \
|
|
||||||
"/etc/jitsi/meet/${var_jitsi_domain}-config.js"
|
|
||||||
$STD prosodyctl register "${var_jitsi_admin_user}" "${var_jitsi_domain}" "${var_jitsi_admin_pass}"
|
|
||||||
cat <<EOF >~/jitsi-meet.creds
|
|
||||||
Jitsi Meet Secure Domain
|
|
||||||
Admin User: ${var_jitsi_admin_user}
|
|
||||||
Admin Password: ${var_jitsi_admin_pass}
|
|
||||||
Add more users: prosodyctl register <name> ${var_jitsi_domain} <password>
|
|
||||||
EOF
|
|
||||||
systemctl restart prosody jicofo jitsi-videobridge2
|
|
||||||
msg_ok "Configured Secure Domain"
|
|
||||||
fi
|
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
cleanup_lxc
|
cleanup_lxc
|
||||||
|
|||||||
@@ -1,131 +0,0 @@
|
|||||||
#!/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/journiv/journiv-app
|
|
||||||
|
|
||||||
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 \
|
|
||||||
libffi-dev \
|
|
||||||
libpq-dev \
|
|
||||||
libmagic1 \
|
|
||||||
libheif1 \
|
|
||||||
libde265-0 \
|
|
||||||
libpango-1.0-0 \
|
|
||||||
libpangoft2-1.0-0 \
|
|
||||||
redis-server
|
|
||||||
systemctl enable -q --now redis-server
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
setup_ffmpeg
|
|
||||||
PG_VERSION="17" setup_postgresql
|
|
||||||
PG_DB_NAME="journiv" PG_DB_USER="journiv" setup_postgresql_db
|
|
||||||
UV_PYTHON="3.12" setup_uv
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "journiv" "journiv/journiv-app" "tarball"
|
|
||||||
|
|
||||||
msg_info "Setting up Python Environment"
|
|
||||||
cd /opt/journiv
|
|
||||||
$STD uv sync --locked --no-editable --no-install-project
|
|
||||||
msg_ok "Set up Python Environment"
|
|
||||||
|
|
||||||
msg_info "Configuring Journiv"
|
|
||||||
mkdir -p /opt/journiv_data/{media,logs,exports,imports/temp}
|
|
||||||
cat <<EOF >/opt/journiv.env
|
|
||||||
ENVIRONMENT=production
|
|
||||||
SECRET_KEY=$(openssl rand -hex 32)
|
|
||||||
DB_DRIVER=postgres
|
|
||||||
DATABASE_URL=postgresql://journiv:${PG_DB_PASS}@localhost:5432/journiv
|
|
||||||
REDIS_URL=redis://127.0.0.1:6379/0
|
|
||||||
MEDIA_ROOT=/opt/journiv_data/media
|
|
||||||
LOG_DIR=/opt/journiv_data/logs
|
|
||||||
EXPORT_DIR=/opt/journiv_data/exports
|
|
||||||
IMPORT_TEMP_DIR=/opt/journiv_data/imports/temp
|
|
||||||
DOMAIN_NAME=${LOCAL_IP}
|
|
||||||
DOMAIN_SCHEME=http
|
|
||||||
PYTHONPATH=/opt/journiv
|
|
||||||
EOF
|
|
||||||
chmod 600 /opt/journiv.env
|
|
||||||
msg_ok "Configured Journiv"
|
|
||||||
|
|
||||||
msg_info "Initializing Database"
|
|
||||||
set -a
|
|
||||||
source /opt/journiv.env
|
|
||||||
set +a
|
|
||||||
$STD /opt/journiv/.venv/bin/python -c "from alembic.config import main; main(['upgrade', 'head'])"
|
|
||||||
SKIP_DATA_SEEDING=false $STD /opt/journiv/.venv/bin/python -c "from app.core.database import seed_initial_data; seed_initial_data()"
|
|
||||||
msg_ok "Initialized Database"
|
|
||||||
|
|
||||||
msg_info "Creating Services"
|
|
||||||
cat <<EOF >/etc/systemd/system/journiv.service
|
|
||||||
[Unit]
|
|
||||||
Description=Journiv
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target postgresql.service redis-server.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/journiv
|
|
||||||
EnvironmentFile=/opt/journiv.env
|
|
||||||
ExecStart=/opt/journiv/.venv/bin/python -m gunicorn app.main:app -w 2 -k uvicorn.workers.UvicornWorker --timeout 300 -b 0.0.0.0:8000
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/journiv-worker.service
|
|
||||||
[Unit]
|
|
||||||
Description=Journiv Celery Worker
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target journiv.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/journiv
|
|
||||||
EnvironmentFile=/opt/journiv.env
|
|
||||||
ExecStart=/opt/journiv/.venv/bin/python -m celery -A app.core.celery_app worker --loglevel=info
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/journiv-beat.service
|
|
||||||
[Unit]
|
|
||||||
Description=Journiv Celery Beat
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target journiv.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/journiv
|
|
||||||
EnvironmentFile=/opt/journiv.env
|
|
||||||
ExecStart=/opt/journiv/.venv/bin/python -m celery -A app.core.celery_app beat --loglevel=info --scheduler redbeat.RedBeatScheduler --pidfile=/run/journiv-beat.pid
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now journiv journiv-worker journiv-beat
|
|
||||||
msg_ok "Created Services"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -22,7 +22,7 @@ PG_DB_NAME="kaneo" PG_DB_USER="kaneo" setup_postgresql_db
|
|||||||
fetch_and_deploy_gh_release "kaneo" "usekaneo/kaneo" "tarball"
|
fetch_and_deploy_gh_release "kaneo" "usekaneo/kaneo" "tarball"
|
||||||
|
|
||||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/kaneo/package.json)
|
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"+]*\).*/\1/p' /opt/kaneo/package.json)
|
||||||
NODE_VERSION="24" NODE_MODULE="pnpm@${PNPM_VERSION:-10.32.1}" setup_nodejs
|
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION:-10.32.1}" setup_nodejs
|
||||||
|
|
||||||
msg_info "Configuring Kaneo"
|
msg_info "Configuring Kaneo"
|
||||||
cat <<EOF >/opt/kaneo/.env
|
cat <<EOF >/opt/kaneo/.env
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Jamie (jamiej)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/lemonade-sdk/lemonade
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
setup_deb822_repo \
|
|
||||||
"backports" \
|
|
||||||
"https://ftp-master.debian.org/keys/archive-key-13.asc" \
|
|
||||||
"http://deb.debian.org/debian" \
|
|
||||||
"trixie-backports" \
|
|
||||||
"main"
|
|
||||||
|
|
||||||
msg_info "Installing Lemonade Server dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
fonts-katex \
|
|
||||||
libcpp-httplib0.41 \
|
|
||||||
libmbedcrypto16 \
|
|
||||||
libwebsockets19t64
|
|
||||||
msg_ok "Installed Lemonade Server dependencies"
|
|
||||||
|
|
||||||
setup_hwaccel
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "lemonade-server" "lemonade-sdk/lemonade" "binary" "latest" "/tmp" "lemonade-server_*-debian13_$(arch_resolve).deb"
|
|
||||||
|
|
||||||
msg_info "Configuring Remote Access"
|
|
||||||
systemctl enable -q --now lemond
|
|
||||||
for _ in $(seq 1 60); do
|
|
||||||
lemonade status >/dev/null 2>&1 && break
|
|
||||||
sleep 2
|
|
||||||
done
|
|
||||||
$STD lemonade config set host=0.0.0.0
|
|
||||||
systemctl restart lemond
|
|
||||||
msg_ok "Configured Remote Access"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,83 +0,0 @@
|
|||||||
#!/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/lingarr-translate/lingarr
|
|
||||||
|
|
||||||
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="lingarr" PG_DB_USER="lingarr" setup_postgresql_db
|
|
||||||
NODE_VERSION="24" setup_nodejs
|
|
||||||
|
|
||||||
DOTNET_VERSION="10" DOTNET_TYPE="sdk" setup_dotnet
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "lingarr" "lingarr-translate/lingarr" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Lingarr (Patience)"
|
|
||||||
cd /opt/lingarr/Lingarr.Client
|
|
||||||
$STD npm ci
|
|
||||||
$STD npm run build
|
|
||||||
mkdir -p /opt/lingarr/Lingarr.Server/wwwroot
|
|
||||||
cp -r /opt/lingarr/Lingarr.Client/dist/* /opt/lingarr/Lingarr.Server/wwwroot/
|
|
||||||
cd /opt/lingarr
|
|
||||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
||||||
$STD dotnet publish ./Lingarr.Server/Lingarr.Server.csproj -c Release -o /opt/lingarr_app /p:UseAppHost=false /p:Version="$(cat ~/.lingarr)"
|
|
||||||
msg_ok "Built Lingarr"
|
|
||||||
|
|
||||||
msg_info "Configuring Lingarr"
|
|
||||||
mkdir -p /opt/lingarr_data/{config,plugins}
|
|
||||||
cat <<EOF >/opt/lingarr.env
|
|
||||||
ASPNETCORE_ENVIRONMENT=Production
|
|
||||||
ASPNETCORE_URLS=http://+:9876
|
|
||||||
ASPNETCORE_HTTP_PORTS=9876
|
|
||||||
|
|
||||||
DB_CONNECTION=postgresql
|
|
||||||
DB_HOST=127.0.0.1
|
|
||||||
DB_PORT=5432
|
|
||||||
DB_DATABASE=lingarr
|
|
||||||
DB_USERNAME=lingarr
|
|
||||||
DB_PASSWORD=${PG_DB_PASS}
|
|
||||||
|
|
||||||
PLUGINS_PATH=/opt/lingarr_data/plugins
|
|
||||||
DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
||||||
|
|
||||||
# Translation backend. Alternatives: openai, deepl, anthropic, gemini, localai
|
|
||||||
SERVICE_TYPE=libretranslate
|
|
||||||
LIBRE_TRANSLATE_URL=http://CHANGE_ME:5000
|
|
||||||
EOF
|
|
||||||
chmod 600 /opt/lingarr.env
|
|
||||||
msg_ok "Configured Lingarr"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/lingarr.service
|
|
||||||
[Unit]
|
|
||||||
Description=Lingarr
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target postgresql.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/lingarr_app
|
|
||||||
EnvironmentFile=/opt/lingarr.env
|
|
||||||
ExecStart=/usr/bin/dotnet /opt/lingarr_app/Lingarr.Server.dll
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now lingarr
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
#!/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://logseq.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 \
|
|
||||||
git \
|
|
||||||
nginx \
|
|
||||||
build-essential \
|
|
||||||
libcairo2-dev \
|
|
||||||
libpango1.0-dev \
|
|
||||||
libjpeg-dev \
|
|
||||||
libgif-dev \
|
|
||||||
librsvg2-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
NODE_VERSION="24" NODE_MODULE="corepack" setup_nodejs
|
|
||||||
JAVA_VERSION="21" setup_java
|
|
||||||
|
|
||||||
msg_info "Installing Clojure CLI"
|
|
||||||
cd /tmp
|
|
||||||
curl_download "linux-install.sh" "https://github.com/clojure/brew-install/releases/latest/download/linux-install.sh"
|
|
||||||
$STD bash linux-install.sh
|
|
||||||
rm -f linux-install.sh
|
|
||||||
msg_ok "Installed Clojure CLI"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "logseq" "logseq/logseq" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Logseq Web App (Patience)"
|
|
||||||
cd /opt/logseq
|
|
||||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
||||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
|
||||||
export JAVA_TOOL_OPTIONS="-Xmx4g"
|
|
||||||
$STD corepack enable
|
|
||||||
$STD pnpm install --config.network-timeout=240000
|
|
||||||
$STD pnpm release
|
|
||||||
msg_ok "Built Logseq Web App"
|
|
||||||
|
|
||||||
msg_info "Generating Self-Signed Certificate"
|
|
||||||
create_self_signed_cert "logseq"
|
|
||||||
msg_ok "Generated Self-Signed Certificate"
|
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
|
||||||
cat <<'EOF' >/etc/nginx/sites-available/logseq
|
|
||||||
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/logseq/logseq.crt;
|
|
||||||
ssl_certificate_key /etc/ssl/logseq/logseq.key;
|
|
||||||
|
|
||||||
root /opt/logseq/static;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
add_header Cross-Origin-Opener-Policy same-origin always;
|
|
||||||
add_header Cross-Origin-Embedder-Policy require-corp always;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
nginx_enable_site logseq
|
|
||||||
msg_ok "Configured Nginx"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,80 +0,0 @@
|
|||||||
#!/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/RiDDiX/home-assistant-matter-hub
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
NODE_VERSION="24" NODE_MODULE="pnpm@^10" setup_nodejs
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "matter-hub" "RiDDiX/home-assistant-matter-hub" "tarball"
|
|
||||||
|
|
||||||
msg_info "Building Matter Hub"
|
|
||||||
cd /opt/matter-hub
|
|
||||||
MATTER_HUB_VERSION=$(cat ~/.matter-hub)
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
$STD pnpm run release:version "$MATTER_HUB_VERSION"
|
|
||||||
APP_VERSION="$MATTER_HUB_VERSION" $STD pnpm build
|
|
||||||
msg_ok "Built Matter Hub"
|
|
||||||
|
|
||||||
msg_info "Installing Matter Hub"
|
|
||||||
mkdir -p /opt/matter-hub_app
|
|
||||||
cat <<EOF >/opt/matter-hub_app/package.json
|
|
||||||
{
|
|
||||||
"name": "hamh-wrapper",
|
|
||||||
"version": "0.0.0",
|
|
||||||
"private": true,
|
|
||||||
"dependencies": {
|
|
||||||
"home-assistant-matter-hub": "file:/opt/matter-hub/apps/home-assistant-matter-hub/package.tgz"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
cd /opt/matter-hub_app
|
|
||||||
$STD npm install --omit=dev --no-audit --no-fund
|
|
||||||
msg_ok "Installed Matter Hub"
|
|
||||||
|
|
||||||
msg_info "Configuring Matter Hub"
|
|
||||||
mkdir -p /opt/matter-hub_data
|
|
||||||
cat <<EOF >/opt/matter-hub.env
|
|
||||||
HAMH_HOME_ASSISTANT_URL=http://CHANGE_ME:8123/
|
|
||||||
HAMH_HOME_ASSISTANT_ACCESS_TOKEN=CHANGE_ME
|
|
||||||
HAMH_HTTP_PORT=8482
|
|
||||||
HAMH_LOG_LEVEL=info
|
|
||||||
APP_VERSION=${MATTER_HUB_VERSION}
|
|
||||||
EOF
|
|
||||||
chmod 600 /opt/matter-hub.env
|
|
||||||
msg_ok "Configured Matter Hub"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/matter-hub.service
|
|
||||||
[Unit]
|
|
||||||
Description=Home Assistant Matter Hub
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/matter-hub_data
|
|
||||||
EnvironmentFile=/opt/matter-hub.env
|
|
||||||
ExecStart=/opt/matter-hub_app/node_modules/.bin/home-assistant-matter-hub start --storage-location=/opt/matter-hub_data
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=10
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now matter-hub
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -28,31 +28,7 @@ fi
|
|||||||
|
|
||||||
if ! dpkg -l | grep -q 'libssl1.1'; then
|
if ! dpkg -l | grep -q 'libssl1.1'; then
|
||||||
msg_info "Installing libssl (if needed)"
|
msg_info "Installing libssl (if needed)"
|
||||||
# libssl1.1 is bullseye's last build, and the pinned filename rotted twice over:
|
curl_download "/tmp/libssl.deb" "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u8_$(arch_resolve).deb"
|
||||||
# the point release moves on its own schedule, and bullseye left
|
|
||||||
# security.debian.org when its LTS ended. Take the newest build from whichever
|
|
||||||
# pool still carries one instead of hardcoding a name.
|
|
||||||
LIBSSL_ARCH=$(arch_resolve)
|
|
||||||
LIBSSL_URL=""
|
|
||||||
LIBSSL_DEB=""
|
|
||||||
for POOL in \
|
|
||||||
"https://security.debian.org/debian-security/pool/updates/main/o/openssl" \
|
|
||||||
"https://archive.debian.org/debian-security/pool/updates/main/o/openssl" \
|
|
||||||
"https://archive.debian.org/debian/pool/main/o/openssl"; do
|
|
||||||
FOUND=$(curl -fsSL "$POOL/" | grep -oE "libssl1\.1_[^\"<>]+_${LIBSSL_ARCH}\.deb" | sort -V | tail -n1 || true)
|
|
||||||
[[ -z "$FOUND" ]] && continue
|
|
||||||
# Newest across every pool, not the first hit: the security archive still
|
|
||||||
# only carries buster, whose 1.1.1n is older than bullseye's 1.1.1w.
|
|
||||||
if [[ -z "$LIBSSL_DEB" || "$(printf '%s\n%s\n' "$LIBSSL_DEB" "$FOUND" | sort -V | tail -n1)" == "$FOUND" ]]; then
|
|
||||||
LIBSSL_DEB="$FOUND"
|
|
||||||
LIBSSL_URL="$POOL/$FOUND"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
if [[ -z "$LIBSSL_URL" ]]; then
|
|
||||||
msg_error "No libssl1.1 package for ${LIBSSL_ARCH} found in any Debian pool"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
curl_download "/tmp/libssl.deb" "$LIBSSL_URL"
|
|
||||||
$STD dpkg -i /tmp/libssl.deb
|
$STD dpkg -i /tmp/libssl.deb
|
||||||
rm -f /tmp/libssl.deb
|
rm -f /tmp/libssl.deb
|
||||||
msg_ok "Installed libssl1.1"
|
msg_ok "Installed libssl1.1"
|
||||||
|
|||||||
@@ -1,138 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: Hai Tran (epiHATR)
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://onetimesecret.com/ | Github: https://github.com/onetimesecret/onetimesecret
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
build-essential \
|
|
||||||
git \
|
|
||||||
libffi-dev \
|
|
||||||
libgmp-dev \
|
|
||||||
libpq-dev \
|
|
||||||
libreadline-dev \
|
|
||||||
libsodium23 \
|
|
||||||
libsqlite3-dev \
|
|
||||||
libssl-dev \
|
|
||||||
libxml2-dev \
|
|
||||||
libxslt1-dev \
|
|
||||||
libyaml-dev \
|
|
||||||
nginx \
|
|
||||||
pkg-config \
|
|
||||||
python3 \
|
|
||||||
redis-server \
|
|
||||||
zlib1g-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "onetimesecret" "onetimesecret/onetimesecret" "tarball"
|
|
||||||
|
|
||||||
RUBY_VERSION=$(tr -d ' \n' </opt/onetimesecret/.ruby-version 2>/dev/null)
|
|
||||||
RUBY_VERSION="${RUBY_VERSION:-3.4.10}" setup_ruby
|
|
||||||
PNPM_VERSION=$(sed -n 's/.*"packageManager": "pnpm@\([^"]*\)".*/\1/p' /opt/onetimesecret/package.json)
|
|
||||||
NODE_VERSION=$(tr -d ' \n' </opt/onetimesecret/.nvmrc 2>/dev/null)
|
|
||||||
NODE_VERSION="${NODE_VERSION:-25}" NODE_MODULE="pnpm@${PNPM_VERSION:-11.1.2}" setup_nodejs
|
|
||||||
HOST_VALUE="${OTS_HOST:-$LOCAL_IP}"
|
|
||||||
SSL_VALUE="${OTS_SSL:-false}"
|
|
||||||
case "${SSL_VALUE,,}" in
|
|
||||||
1 | true | yes | on) SSL_VALUE="true" ;;
|
|
||||||
0 | false | no | off | "") SSL_VALUE="false" ;;
|
|
||||||
*)
|
|
||||||
msg_error "Invalid OTS_SSL value '${OTS_SSL}' (use true/false)"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
msg_info "Configuring Application"
|
|
||||||
systemctl enable -q --now redis-server
|
|
||||||
cd /opt/onetimesecret
|
|
||||||
$STD bash bin/setup init
|
|
||||||
sed -i \
|
|
||||||
-e "s|^REDIS_URL=.*|REDIS_URL=redis://127.0.0.1:6379/0|" \
|
|
||||||
-e "s|^HOST=.*|HOST=${HOST_VALUE//&/\\&}|" \
|
|
||||||
-e "s|^SSL=.*|SSL=${SSL_VALUE}|" \
|
|
||||||
/opt/onetimesecret/.env
|
|
||||||
if grep -q '^RACK_ENV=' /opt/onetimesecret/.env; then
|
|
||||||
sed -i 's|^RACK_ENV=.*|RACK_ENV=production|' /opt/onetimesecret/.env
|
|
||||||
else
|
|
||||||
echo "RACK_ENV=production" >>/opt/onetimesecret/.env
|
|
||||||
fi
|
|
||||||
if grep -q '^AUTHENTICATION_MODE=' /opt/onetimesecret/.env; then
|
|
||||||
sed -i 's|^AUTHENTICATION_MODE=.*|AUTHENTICATION_MODE=simple|' /opt/onetimesecret/.env
|
|
||||||
else
|
|
||||||
echo "AUTHENTICATION_MODE=simple" >>/opt/onetimesecret/.env
|
|
||||||
fi
|
|
||||||
if ! grep -q '^PORT=' /opt/onetimesecret/.env; then
|
|
||||||
echo "PORT=3000" >>/opt/onetimesecret/.env
|
|
||||||
fi
|
|
||||||
chmod 600 /opt/onetimesecret/.env
|
|
||||||
mkdir -p /opt/onetimesecret/tmp/pids /opt/onetimesecret/log
|
|
||||||
msg_ok "Configured Application"
|
|
||||||
|
|
||||||
msg_info "Reconciling Application"
|
|
||||||
cd /opt/onetimesecret
|
|
||||||
$STD bash bin/setup reconcile
|
|
||||||
msg_ok "Reconciled Application"
|
|
||||||
|
|
||||||
msg_info "Building Frontend"
|
|
||||||
cd /opt/onetimesecret
|
|
||||||
$STD pnpm run build
|
|
||||||
msg_ok "Built Frontend"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<'EOF' >/etc/systemd/system/onetimesecret.service
|
|
||||||
[Unit]
|
|
||||||
Description=Onetime Secret Service
|
|
||||||
After=network.target redis-server.service
|
|
||||||
Requires=redis-server.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/onetimesecret
|
|
||||||
Environment=HOME=/root
|
|
||||||
Environment=PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
EnvironmentFile=/opt/onetimesecret/.env
|
|
||||||
ExecStart=/root/.rbenv/shims/bundle exec puma -C etc/puma.rb
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now onetimesecret
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
|
||||||
cat <<'EOF' >/etc/nginx/sites-available/onetimesecret
|
|
||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
nginx_enable_site onetimesecret
|
|
||||||
msg_ok "Configured Nginx"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -23,7 +23,6 @@ msg_ok "Installed Dependencies"
|
|||||||
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
NODE_VERSION="24" NODE_MODULE="pnpm" setup_nodejs
|
||||||
PG_VERSION="17" setup_postgresql
|
PG_VERSION="17" setup_postgresql
|
||||||
PG_DB_NAME="paperclip" PG_DB_USER="paperclip" setup_postgresql_db
|
PG_DB_NAME="paperclip" PG_DB_USER="paperclip" setup_postgresql_db
|
||||||
setup_rust
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "paperclip-ai" "paperclipai/paperclip" "tarball"
|
fetch_and_deploy_gh_release "paperclip-ai" "paperclipai/paperclip" "tarball"
|
||||||
|
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ Requires=redis.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/opt/paperless/src
|
WorkingDirectory=/opt/paperless/src
|
||||||
#ExecStartPre=uv run --no-sync -- python manage.py document_index reindex --if-needed --no-progress-bar
|
#ExecStartPre=uv run -- python manage.py document_index reindex --if-needed --no-progress-bar
|
||||||
ExecStart=uv run --no-sync -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"
|
ExecStart=uv run --no-sync -- granian --interface asginl --ws --loop uvloop "paperless.asgi:application"
|
||||||
Environment=GRANIAN_HOST=::
|
Environment=GRANIAN_HOST=::
|
||||||
Environment=GRANIAN_PORT=8000
|
Environment=GRANIAN_PORT=8000
|
||||||
|
|||||||
@@ -1,163 +0,0 @@
|
|||||||
#!/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://portabase.io
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
|
||||||
$STD apt install -y \
|
|
||||||
build-essential \
|
|
||||||
git \
|
|
||||||
nginx
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
NODE_VERSION="22" NODE_MODULE="pnpm@11.8.0" setup_nodejs
|
|
||||||
PG_VERSION="17" setup_postgresql
|
|
||||||
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"
|
|
||||||
|
|
||||||
msg_info "Configuring Portabase"
|
|
||||||
mkdir -p /opt/portabase-data/uploads/tmp
|
|
||||||
mv -f "/opt/tusd/tusd_linux_$(arch_resolve)/tusd" /opt/tusd/tusd
|
|
||||||
rm -rf "/opt/tusd/tusd_linux_$(arch_resolve)"
|
|
||||||
chmod +x /opt/tusd/tusd
|
|
||||||
PROJECT_SECRET=$(openssl rand -hex 32)
|
|
||||||
ADMIN_PASSWORD=$(openssl rand -base64 18 | tr -dc 'A-Za-z0-9' | head -c 16)
|
|
||||||
cat <<EOF >/opt/portabase/.env
|
|
||||||
LOG_LEVEL=info
|
|
||||||
DATABASE_URL=postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME}
|
|
||||||
PROJECT_NAME=Portabase
|
|
||||||
PROJECT_URL=http://${LOCAL_IP}:3000
|
|
||||||
PROJECT_SECRET=${PROJECT_SECRET}
|
|
||||||
TRUSTED_DOMAINS=http://${LOCAL_IP}:3000
|
|
||||||
PRIVATE_PATH=/opt/portabase-data
|
|
||||||
AUTH_DEFAULT_USER_NAME=Portabase Admin
|
|
||||||
AUTH_DEFAULT_USER=admin@example.com
|
|
||||||
AUTH_DEFAULT_PASSWORD=${ADMIN_PASSWORD}
|
|
||||||
AUTH_EMAIL_PASSWORD_ENABLED=true
|
|
||||||
AUTH_SIGNUP_ENABLED=true
|
|
||||||
RETENTION_CRON=0 7 * * *
|
|
||||||
TUSD_BEHIND_PROXY=true
|
|
||||||
TELEMETRY=false
|
|
||||||
EOF
|
|
||||||
cat <<EOF >~/portabase.creds
|
|
||||||
Portabase Admin
|
|
||||||
Username: admin@example.com
|
|
||||||
Password: ${ADMIN_PASSWORD}
|
|
||||||
EOF
|
|
||||||
msg_ok "Configured Portabase"
|
|
||||||
|
|
||||||
msg_info "Building Portabase"
|
|
||||||
cd /opt/portabase
|
|
||||||
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
||||||
export NEXT_TELEMETRY_DISABLED=1
|
|
||||||
$STD pnpm install --frozen-lockfile
|
|
||||||
$STD pnpm run build
|
|
||||||
cp -r /opt/portabase/.next/static /opt/portabase/.next/standalone/.next/static
|
|
||||||
cp -r /opt/portabase/public /opt/portabase/.next/standalone/public
|
|
||||||
mkdir -p /opt/portabase/.next/standalone/src/db
|
|
||||||
cp -r /opt/portabase/src/db/migrations /opt/portabase/.next/standalone/src/db/migrations
|
|
||||||
ln -sf /opt/portabase/.env /opt/portabase/.next/standalone/.env
|
|
||||||
msg_ok "Built Portabase"
|
|
||||||
|
|
||||||
msg_info "Creating Services"
|
|
||||||
cat <<EOF >/etc/systemd/system/portabase-tusd.service
|
|
||||||
[Unit]
|
|
||||||
Description=Portabase tusd Upload Server
|
|
||||||
After=network.target
|
|
||||||
Before=portabase.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/opt/tusd/tusd --base-path /tus/files/ --upload-dir /opt/portabase-data/uploads/tmp --hooks-http http://127.0.0.1:8887/api/tus/hooks --port 1080 --max-size 21474836480 --behind-proxy
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/portabase.service
|
|
||||||
[Unit]
|
|
||||||
Description=Portabase
|
|
||||||
After=network.target postgresql.service portabase-tusd.service
|
|
||||||
Wants=postgresql.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
WorkingDirectory=/opt/portabase/.next/standalone
|
|
||||||
Environment=NODE_ENV=production
|
|
||||||
Environment=PORT=8887
|
|
||||||
Environment=HOSTNAME=127.0.0.1
|
|
||||||
ExecStart=/usr/bin/node /opt/portabase/.next/standalone/server.js
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now portabase-tusd portabase
|
|
||||||
msg_ok "Created Services"
|
|
||||||
|
|
||||||
msg_info "Configuring Nginx"
|
|
||||||
cat <<'EOF' >/etc/nginx/sites-available/portabase
|
|
||||||
map $http_x_forwarded_proto $forwarded_proto {
|
|
||||||
default $scheme;
|
|
||||||
"~*^\s*(https?)\s*(?:,|$)" $1;
|
|
||||||
}
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 3000;
|
|
||||||
server_name _;
|
|
||||||
|
|
||||||
client_max_body_size 20G;
|
|
||||||
ignore_invalid_headers off;
|
|
||||||
|
|
||||||
location /tus/ {
|
|
||||||
proxy_pass http://127.0.0.1:1080/tus/;
|
|
||||||
proxy_pass_request_headers on;
|
|
||||||
proxy_request_buffering off;
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
|
||||||
proxy_set_header X-Forwarded-Proto $forwarded_proto;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
}
|
|
||||||
|
|
||||||
location = /api/tus/hooks {
|
|
||||||
deny all;
|
|
||||||
return 404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
proxy_pass http://127.0.0.1:8887;
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
proxy_set_header Host $http_host;
|
|
||||||
proxy_set_header X-Forwarded-Host $http_host;
|
|
||||||
proxy_set_header X-Forwarded-Proto $forwarded_proto;
|
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
nginx_enable_site portabase
|
|
||||||
msg_ok "Configured Nginx"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -46,7 +46,7 @@ map \$uri \$poznote_coop {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8040;
|
listen 8040;
|
||||||
root /var/www/html/public;
|
root /var/www/html;
|
||||||
index index.php index.html;
|
index index.php index.html;
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
@@ -122,12 +122,10 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/data/users/[0-9]+/backgrounds/ {
|
location ~ ^/data/users/[0-9]+/backgrounds/ {
|
||||||
root /var/www/html;
|
|
||||||
try_files \$uri =404;
|
try_files \$uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ {
|
location ~ ^/data/css/[A-Za-z0-9._-]+\.css$ {
|
||||||
root /var/www/html;
|
|
||||||
try_files \$uri =404;
|
try_files \$uri =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,226 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: renizmy
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/safebucket/safebucket
|
|
||||||
|
|
||||||
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 awscli
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
msg_info "Installing Garage"
|
|
||||||
useradd --system --no-create-home --shell /usr/sbin/nologin garage 2>/dev/null || true
|
|
||||||
GARAGE_VERSION=$(get_latest_gh_tag "deuxfleurs-org/garage" "v")
|
|
||||||
if [[ -z "$GARAGE_VERSION" ]]; then
|
|
||||||
msg_error "Could not determine latest stable Garage version"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
curl -fsSL "https://garagehq.deuxfleurs.fr/_releases/${GARAGE_VERSION}/$(arch_resolve "x86_64-unknown-linux-musl" "aarch64-unknown-linux-musl")/garage" -o /usr/local/bin/garage
|
|
||||||
chmod +x /usr/local/bin/garage
|
|
||||||
mkdir -p /opt/garage/{data,meta}
|
|
||||||
RPC_SECRET=$(openssl rand -hex 32)
|
|
||||||
ADMIN_TOKEN=$(openssl rand -base64 32)
|
|
||||||
cat <<EOF >/opt/garage/garage.toml
|
|
||||||
metadata_dir = "/opt/garage/meta"
|
|
||||||
data_dir = "/opt/garage/data"
|
|
||||||
db_engine = "lmdb"
|
|
||||||
replication_factor = 1
|
|
||||||
|
|
||||||
rpc_bind_addr = "[::]:3901"
|
|
||||||
rpc_public_addr = "127.0.0.1:3901"
|
|
||||||
rpc_secret = "${RPC_SECRET}"
|
|
||||||
|
|
||||||
[s3_api]
|
|
||||||
s3_region = "garage"
|
|
||||||
api_bind_addr = "[::]:3900"
|
|
||||||
root_domain = ".s3.garage.localhost"
|
|
||||||
|
|
||||||
[admin]
|
|
||||||
api_bind_addr = "[::]:3903"
|
|
||||||
admin_token = "${ADMIN_TOKEN}"
|
|
||||||
EOF
|
|
||||||
chmod 600 /opt/garage/garage.toml
|
|
||||||
chown -R garage:garage /opt/garage
|
|
||||||
cat <<EOF >/etc/systemd/system/garage.service
|
|
||||||
[Unit]
|
|
||||||
Description=Garage Object Storage
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=garage
|
|
||||||
Group=garage
|
|
||||||
WorkingDirectory=/opt/garage
|
|
||||||
ExecStart=/usr/local/bin/garage -c /opt/garage/garage.toml server
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
LimitNOFILE=65536
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now garage
|
|
||||||
msg_ok "Installed Garage"
|
|
||||||
|
|
||||||
msg_info "Configuring Garage Bucket"
|
|
||||||
RETRIES=0
|
|
||||||
until garage -c /opt/garage/garage.toml status &>/dev/null; do
|
|
||||||
RETRIES=$((RETRIES + 1))
|
|
||||||
if [[ $RETRIES -ge 60 ]]; then
|
|
||||||
msg_error "Garage did not become ready within 60 seconds"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
NODE_ID=$(garage -c /opt/garage/garage.toml status 2>/dev/null | awk '/^[0-9a-f]/{print $1; exit}')
|
|
||||||
if [[ -z "$NODE_ID" ]]; then
|
|
||||||
msg_error "Could not determine Garage node ID from cluster status"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
GARAGE_CAPACITY="${GARAGE_CAPACITY:-$(df -BG --output=avail /opt/garage | awk 'NR==2{gsub(/G/,"",$1); v=$1-1; print (v<1?1:v)"G"}')}"
|
|
||||||
$STD garage -c /opt/garage/garage.toml layout assign -z dc1 -c "${GARAGE_CAPACITY}" "${NODE_ID}"
|
|
||||||
$STD garage -c /opt/garage/garage.toml layout apply --version 1
|
|
||||||
GARAGE_KEY_INFO=$(garage -c /opt/garage/garage.toml key create safebucket-key)
|
|
||||||
GARAGE_ACCESS_KEY=$(echo "$GARAGE_KEY_INFO" | awk '/Key ID:/{print $3}')
|
|
||||||
GARAGE_SECRET_KEY=$(echo "$GARAGE_KEY_INFO" | awk '/Secret key:/{print $3}')
|
|
||||||
$STD garage -c /opt/garage/garage.toml bucket create safebucket
|
|
||||||
$STD garage -c /opt/garage/garage.toml bucket allow --read --write --owner safebucket --key safebucket-key
|
|
||||||
msg_ok "Configured Garage Bucket"
|
|
||||||
|
|
||||||
msg_info "Applying CORS Policy to Bucket"
|
|
||||||
export AWS_ACCESS_KEY_ID="${GARAGE_ACCESS_KEY}"
|
|
||||||
export AWS_SECRET_ACCESS_KEY="${GARAGE_SECRET_KEY}"
|
|
||||||
export AWS_DEFAULT_REGION="garage"
|
|
||||||
if aws s3api put-bucket-cors \
|
|
||||||
--bucket safebucket \
|
|
||||||
--endpoint-url "http://127.0.0.1:3900" \
|
|
||||||
--cors-configuration '{"CORSRules":[{"AllowedHeaders":["*"],"AllowedMethods":["GET","PUT","POST","DELETE","HEAD"],"AllowedOrigins":["http://'"${LOCAL_IP}"':8080"],"ExposeHeaders":["ETag"]}]}' &>/dev/null; then
|
|
||||||
msg_ok "Applied CORS Policy to Bucket"
|
|
||||||
else
|
|
||||||
msg_warn "Could not apply CORS policy automatically; direct browser uploads may fail until CORS is configured manually"
|
|
||||||
fi
|
|
||||||
unset AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "safebucket" "safebucket/safebucket" "singlefile" "latest" "/opt/safebucket" "safebucket-linux-$(arch_resolve)"
|
|
||||||
|
|
||||||
msg_info "Configuring Safebucket"
|
|
||||||
useradd --system --no-create-home --shell /usr/sbin/nologin safebucket 2>/dev/null || true
|
|
||||||
mkdir -p /opt/safebucket/data/{notifications,activity}
|
|
||||||
TOKEN_SECRET=$(openssl rand -base64 32)
|
|
||||||
MFA_KEY=$(openssl rand -base64 48 | tr -dc 'a-zA-Z0-9' | cut -c1-32)
|
|
||||||
ADMIN_PASSWORD=$(openssl rand -hex 12)
|
|
||||||
cat <<EOF >/opt/safebucket/config.yaml
|
|
||||||
app:
|
|
||||||
profile: default
|
|
||||||
log_level: info
|
|
||||||
api_url: http://${LOCAL_IP}:8080
|
|
||||||
web_url: http://${LOCAL_IP}:8080
|
|
||||||
allowed_origins:
|
|
||||||
- http://${LOCAL_IP}:8080
|
|
||||||
port: 8080
|
|
||||||
token_secret: "${TOKEN_SECRET}"
|
|
||||||
mfa_encryption_key: "${MFA_KEY}"
|
|
||||||
mfa_required: false
|
|
||||||
admin_email: admin@safebucket.io
|
|
||||||
admin_password: "${ADMIN_PASSWORD}"
|
|
||||||
trash_retention_days: 7
|
|
||||||
max_upload_size: 5368709120
|
|
||||||
trusted_proxies:
|
|
||||||
- 10.0.0.0/8
|
|
||||||
- 172.16.0.0/12
|
|
||||||
- 192.168.0.0/16
|
|
||||||
- 127.0.0.0/8
|
|
||||||
- ::1/128
|
|
||||||
- fc00::/7
|
|
||||||
static_files:
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
database:
|
|
||||||
type: sqlite
|
|
||||||
sqlite:
|
|
||||||
path: /opt/safebucket/data/safebucket.db
|
|
||||||
|
|
||||||
cache:
|
|
||||||
type: memory
|
|
||||||
|
|
||||||
storage:
|
|
||||||
type: s3
|
|
||||||
s3:
|
|
||||||
bucket_name: safebucket
|
|
||||||
endpoint: 127.0.0.1:3900
|
|
||||||
external_endpoint: http://${LOCAL_IP}:3900
|
|
||||||
access_key: ${GARAGE_ACCESS_KEY}
|
|
||||||
secret_key: ${GARAGE_SECRET_KEY}
|
|
||||||
region: garage
|
|
||||||
force_path_style: true
|
|
||||||
use_tls: false
|
|
||||||
|
|
||||||
events:
|
|
||||||
type: memory
|
|
||||||
queues:
|
|
||||||
notifications:
|
|
||||||
name: safebucket-notifications
|
|
||||||
object_deletion:
|
|
||||||
name: safebucket-object-deletion
|
|
||||||
bucket_events:
|
|
||||||
name: safebucket-bucket-events
|
|
||||||
|
|
||||||
notifier:
|
|
||||||
type: filesystem
|
|
||||||
filesystem:
|
|
||||||
directory: /opt/safebucket/data/notifications
|
|
||||||
|
|
||||||
activity:
|
|
||||||
type: filesystem
|
|
||||||
filesystem:
|
|
||||||
directory: /opt/safebucket/data/activity
|
|
||||||
|
|
||||||
auth:
|
|
||||||
providers:
|
|
||||||
local:
|
|
||||||
name: local
|
|
||||||
type: local
|
|
||||||
sharing:
|
|
||||||
allowed: true
|
|
||||||
domains: []
|
|
||||||
EOF
|
|
||||||
chmod 600 /opt/safebucket/config.yaml
|
|
||||||
chown -R safebucket:safebucket /opt/safebucket
|
|
||||||
msg_ok "Configured Safebucket"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/safebucket.service
|
|
||||||
[Unit]
|
|
||||||
Description=Safebucket File Sharing Platform
|
|
||||||
After=network-online.target garage.service
|
|
||||||
Wants=network-online.target
|
|
||||||
Requires=garage.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=safebucket
|
|
||||||
Group=safebucket
|
|
||||||
WorkingDirectory=/opt/safebucket
|
|
||||||
Environment=CONFIG_FILE_PATH=/opt/safebucket/config.yaml
|
|
||||||
ExecStart=/opt/safebucket/safebucket
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now safebucket
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
#!/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/stashapp/stash
|
|
||||||
|
|
||||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
|
||||||
color
|
|
||||||
verb_ip6
|
|
||||||
catch_errors
|
|
||||||
setting_up_container
|
|
||||||
network_check
|
|
||||||
update_os
|
|
||||||
|
|
||||||
setup_ffmpeg
|
|
||||||
setup_hwaccel
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "stash" "stashapp/stash" "singlefile" "latest" "/opt/stash" "$(arch_resolve stash-linux stash-linux-arm64v8)"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
mkdir -p /opt/stash_data
|
|
||||||
cat <<EOF >/etc/systemd/system/stash.service
|
|
||||||
[Unit]
|
|
||||||
Description=Stash
|
|
||||||
Wants=network-online.target
|
|
||||||
After=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
User=root
|
|
||||||
WorkingDirectory=/opt/stash
|
|
||||||
Environment=STASH_CONFIG_FILE=/opt/stash_data/config.yml
|
|
||||||
ExecStart=/opt/stash/stash
|
|
||||||
Restart=on-failure
|
|
||||||
RestartSec=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now stash
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
|
||||||
# Author: angusmaul
|
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
||||||
# Source: https://github.com/Whisparr/Whisparr-Eros
|
|
||||||
|
|
||||||
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 sqlite3 libicu-dev
|
|
||||||
msg_ok "Installed Dependencies"
|
|
||||||
|
|
||||||
fetch_and_deploy_gh_release "whisparr-eros" "Whisparr/Whisparr-Eros" "prebuild" "latest" "/opt/Whisparr-Eros" "Whisparr.eros.*.linux-$(arch_resolve "x64" "arm64").tar.gz"
|
|
||||||
|
|
||||||
msg_info "Configuring Whisparr-Eros"
|
|
||||||
rm -rf /opt/Whisparr-Eros/Whisparr.Update
|
|
||||||
chmod +x /opt/Whisparr-Eros/Whisparr
|
|
||||||
mkdir -p /var/lib/whisparr-eros/
|
|
||||||
chmod 775 /var/lib/whisparr-eros/ /opt/Whisparr-Eros/
|
|
||||||
msg_ok "Configured Whisparr-Eros"
|
|
||||||
|
|
||||||
msg_info "Creating Service"
|
|
||||||
cat <<EOF >/etc/systemd/system/whisparr-eros.service
|
|
||||||
[Unit]
|
|
||||||
Description=Whisparr-Eros Daemon
|
|
||||||
After=syslog.target network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
UMask=0002
|
|
||||||
Type=simple
|
|
||||||
ExecStart=/opt/Whisparr-Eros/Whisparr -nobrowser -data=/var/lib/whisparr-eros/
|
|
||||||
TimeoutStopSec=20
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
EOF
|
|
||||||
systemctl enable -q --now whisparr-eros
|
|
||||||
msg_ok "Created Service"
|
|
||||||
|
|
||||||
motd_ssh
|
|
||||||
customize
|
|
||||||
cleanup_lxc
|
|
||||||
@@ -15,11 +15,6 @@
|
|||||||
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
|
[[ -n "${_CORE_FUNC_LOADED:-}" ]] && return
|
||||||
_CORE_FUNC_LOADED=1
|
_CORE_FUNC_LOADED=1
|
||||||
|
|
||||||
if [[ -z "${HOME:-}" ]]; then
|
|
||||||
HOME="$(getent passwd "$(id -u)" 2>/dev/null | cut -d: -f6)"
|
|
||||||
export HOME="${HOME:-/root}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# SECTION 1: INITIALIZATION & SETUP
|
# SECTION 1: INITIALIZATION & SETUP
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
@@ -1,111 +0,0 @@
|
|||||||
#!/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/Finsys/dockhand
|
|
||||||
|
|
||||||
if command -v curl >/dev/null 2>&1; then
|
|
||||||
source <(curl -fsSL ${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func)
|
|
||||||
load_functions
|
|
||||||
elif command -v wget >/dev/null 2>&1; then
|
|
||||||
source <(wget -qO- ${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func)
|
|
||||||
load_functions
|
|
||||||
fi
|
|
||||||
source <(curl -fsSL ${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/lib/tools.func)
|
|
||||||
|
|
||||||
color
|
|
||||||
catch_errors
|
|
||||||
|
|
||||||
APP="Dockhand"
|
|
||||||
APP_TYPE="addon"
|
|
||||||
INSTALL_PATH="/opt/dockhand"
|
|
||||||
COMPOSE_FILE="${INSTALL_PATH}/docker-compose.yaml"
|
|
||||||
DEFAULT_PORT=3000
|
|
||||||
|
|
||||||
header_info "$APP"
|
|
||||||
|
|
||||||
IP=$(_get_current_ip)
|
|
||||||
|
|
||||||
function check_docker() {
|
|
||||||
if ! command -v docker >/dev/null 2>&1; then
|
|
||||||
msg_error "Docker is not installed. This addon requires an existing Docker host/LXC. Exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if ! docker compose version >/dev/null 2>&1; then
|
|
||||||
msg_error "Docker Compose plugin is not available. Install it before running this addon. Exiting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
msg_ok "Docker $(docker --version | cut -d' ' -f3 | tr -d ',') and Docker Compose are available"
|
|
||||||
}
|
|
||||||
|
|
||||||
function install_dockhand() {
|
|
||||||
local port="${1:-$DEFAULT_PORT}"
|
|
||||||
check_docker
|
|
||||||
|
|
||||||
msg_info "Creating Compose Project"
|
|
||||||
mkdir -p "$INSTALL_PATH"
|
|
||||||
cat <<EOF >"$COMPOSE_FILE"
|
|
||||||
services:
|
|
||||||
dockhand:
|
|
||||||
image: fnsys/dockhand:latest
|
|
||||||
container_name: dockhand
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- ${port}:3000
|
|
||||||
volumes:
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
- dockhand_data:/app/data
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
dockhand_data:
|
|
||||||
EOF
|
|
||||||
msg_ok "Created Compose Project"
|
|
||||||
|
|
||||||
msg_info "Starting ${APP}"
|
|
||||||
cd "$INSTALL_PATH"
|
|
||||||
$STD docker compose up -d
|
|
||||||
msg_ok "Started ${APP}"
|
|
||||||
|
|
||||||
msg_ok "${APP} is reachable at http://${IP}:${port}"
|
|
||||||
echo -e "${TAB}Open the URL and complete the first-run setup wizard to create the admin account."
|
|
||||||
}
|
|
||||||
|
|
||||||
function update_dockhand() {
|
|
||||||
msg_info "Pulling latest ${APP} image"
|
|
||||||
cd "$INSTALL_PATH"
|
|
||||||
$STD docker compose pull
|
|
||||||
msg_ok "Pulled latest image"
|
|
||||||
|
|
||||||
msg_info "Restarting ${APP}"
|
|
||||||
$STD docker compose up -d --remove-orphans
|
|
||||||
msg_ok "Restarted ${APP}"
|
|
||||||
|
|
||||||
msg_ok "${APP} updated successfully"
|
|
||||||
}
|
|
||||||
|
|
||||||
function uninstall_dockhand() {
|
|
||||||
msg_info "Removing ${APP}"
|
|
||||||
cd "$INSTALL_PATH"
|
|
||||||
$STD docker compose down --remove-orphans
|
|
||||||
cd /
|
|
||||||
rm -rf "$INSTALL_PATH"
|
|
||||||
msg_ok "${APP} uninstalled (the dockhand_data volume was kept; remove it with: docker volume rm dockhand_data)"
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ -f "$COMPOSE_FILE" ]]; then
|
|
||||||
read -r -p "Update (1), Uninstall (2), Cancel (3)? [1/2/3]: " action
|
|
||||||
action="${action//[[:space:]]/}"
|
|
||||||
case "$action" in
|
|
||||||
1) update_dockhand ;;
|
|
||||||
2) uninstall_dockhand ;;
|
|
||||||
3) msg_info "Cancelled" ;;
|
|
||||||
*) msg_error "Invalid input" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
read -r -p "Enter port number (default: ${DEFAULT_PORT}): " PORT_INPUT
|
|
||||||
PORT="${PORT_INPUT:-$DEFAULT_PORT}"
|
|
||||||
read -r -p "Install ${APP}? (y/n): " answer
|
|
||||||
answer="${answer//[[:space:]]/}"
|
|
||||||
[[ "${answer,,}" =~ ^(y|yes)$ ]] && install_dockhand "$PORT" || msg_info "Installation skipped"
|
|
||||||
fi
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
____ __ __ __
|
|
||||||
/ __ \____ _____/ /__/ /_ ____ _____ ____/ /
|
|
||||||
/ / / / __ \/ ___/ //_/ __ \/ __ `/ __ \/ __ /
|
|
||||||
/ /_/ / /_/ / /__/ ,< / / / / /_/ / / / / /_/ /
|
|
||||||
/_____/\____/\___/_/|_/_/ /_/\__,_/_/ /_/\__,_/
|
|
||||||
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
#!/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
|
|
||||||
|
|
||||||
function header_info {
|
|
||||||
clear
|
|
||||||
cat <<"EOF"
|
|
||||||
____ ______ __ ____ __ __
|
|
||||||
/ __ \_________ _ ______ ___ ____ _ __ / ____/_ _____ _____/ /_ / __ \___ / /__ / /____
|
|
||||||
/ /_/ / ___/ __ \| |/_/ __ `__ \/ __ \| |/_/ / / __/ / / / _ \/ ___/ __/ / / / / _ \/ / _ \/ __/ _ \
|
|
||||||
/ ____/ / / /_/ /> </ / / / / / /_/ /> < / /_/ / /_/ / __(__ ) /_ / /_/ / __/ / __/ /_/ __/
|
|
||||||
/_/ /_/ \____/_/|_/_/ /_/ /_/\____/_/|_| \____/\__,_/\___/____/\__/ /_____/\___/_/\___/\__/\___/
|
|
||||||
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
spinner() {
|
|
||||||
local pid=$1
|
|
||||||
local delay=0.1
|
|
||||||
local spinstr='|/-\'
|
|
||||||
while ps -p $pid >/dev/null; do
|
|
||||||
printf " [%c] " "$spinstr"
|
|
||||||
spinstr=${spinstr#?}${spinstr%"${spinstr#?}"}
|
|
||||||
sleep $delay
|
|
||||||
printf "\r"
|
|
||||||
done
|
|
||||||
printf " \r"
|
|
||||||
}
|
|
||||||
|
|
||||||
set -eEuo pipefail
|
|
||||||
YW=$(echo "\033[33m")
|
|
||||||
BL=$(echo "\033[36m")
|
|
||||||
RD=$(echo "\033[01;31m")
|
|
||||||
GN=$(echo "\033[1;92m")
|
|
||||||
CL=$(echo "\033[m")
|
|
||||||
TAB=" "
|
|
||||||
CM="${TAB}✔️${TAB}${CL}"
|
|
||||||
|
|
||||||
# Telemetry
|
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
|
|
||||||
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "guest-delete" "pve"
|
|
||||||
|
|
||||||
GUEST_LOG=$(mktemp)
|
|
||||||
trap 'rm -f "$GUEST_LOG"' EXIT
|
|
||||||
|
|
||||||
# pct and qm differ in both their subcommands and their list layout, so every
|
|
||||||
# guest carries its type from the menu through to the destroy call.
|
|
||||||
stop_guest() {
|
|
||||||
local type=$1 id=$2 pid
|
|
||||||
if [ "$type" == "ct" ]; then
|
|
||||||
pct stop "$id" >"$GUEST_LOG" 2>&1 &
|
|
||||||
else
|
|
||||||
qm stop "$id" >"$GUEST_LOG" 2>&1 &
|
|
||||||
fi
|
|
||||||
pid=$!
|
|
||||||
spinner "$pid"
|
|
||||||
wait "$pid" || true
|
|
||||||
}
|
|
||||||
|
|
||||||
destroy_guest() {
|
|
||||||
local type=$1 id=$2 pid
|
|
||||||
if [ "$type" == "ct" ]; then
|
|
||||||
pct destroy "$id" -f >"$GUEST_LOG" 2>&1 &
|
|
||||||
else
|
|
||||||
qm destroy "$id" --purge --destroy-unreferenced-disks >"$GUEST_LOG" 2>&1 &
|
|
||||||
fi
|
|
||||||
pid=$!
|
|
||||||
spinner "$pid"
|
|
||||||
wait "$pid"
|
|
||||||
}
|
|
||||||
|
|
||||||
header_info
|
|
||||||
echo "Loading..."
|
|
||||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE Guest Deletion" --yesno "This will delete LXC containers and/or VMs. Proceed?" 10 58
|
|
||||||
|
|
||||||
NODE=$(hostname)
|
|
||||||
containers=$(pct list 2>/dev/null | tail -n +2 || true)
|
|
||||||
vms=$(qm list 2>/dev/null | tail -n +2 || true)
|
|
||||||
|
|
||||||
if [ -z "$containers" ] && [ -z "$vms" ]; then
|
|
||||||
whiptail --title "Guest Delete" --msgbox "No LXC containers or VMs available!" 10 60
|
|
||||||
exit 234
|
|
||||||
fi
|
|
||||||
|
|
||||||
declare -A GUEST_TYPE=()
|
|
||||||
menu_items=()
|
|
||||||
FORMAT="%-4s %-20s %-10s"
|
|
||||||
|
|
||||||
if [ -n "$containers" ]; then
|
|
||||||
menu_items+=("ALL-CT" "$(printf "$FORMAT" "CT" "Delete ALL containers" "")" "OFF")
|
|
||||||
while read -r line; do
|
|
||||||
[ -z "$line" ] && continue
|
|
||||||
# pct list: VMID Status [Lock] Name -- Lock is usually blank, so take the
|
|
||||||
# name from the end of the row rather than a fixed column.
|
|
||||||
container_id=$(awk '{print $1}' <<<"$line")
|
|
||||||
container_status=$(awk '{print $2}' <<<"$line")
|
|
||||||
container_name=$(awk '{print $NF}' <<<"$line")
|
|
||||||
GUEST_TYPE[$container_id]="ct"
|
|
||||||
menu_items+=("$container_id" "$(printf "$FORMAT" "CT" "$container_name" "$container_status")" "OFF")
|
|
||||||
done <<<"$containers"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$vms" ]; then
|
|
||||||
menu_items+=("ALL-VM" "$(printf "$FORMAT" "VM" "Delete ALL VMs" "")" "OFF")
|
|
||||||
while read -r line; do
|
|
||||||
[ -z "$line" ] && continue
|
|
||||||
# qm list: VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID
|
|
||||||
vm_id=$(awk '{print $1}' <<<"$line")
|
|
||||||
vm_name=$(awk '{print $2}' <<<"$line")
|
|
||||||
vm_status=$(awk '{print $3}' <<<"$line")
|
|
||||||
GUEST_TYPE[$vm_id]="vm"
|
|
||||||
menu_items+=("$vm_id" "$(printf "$FORMAT" "VM" "$vm_name" "$vm_status")" "OFF")
|
|
||||||
done <<<"$vms"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CHOICES=$(whiptail --title "Guest Delete" \
|
|
||||||
--checklist "Select LXC containers and VMs to delete:" 25 70 13 \
|
|
||||||
"${menu_items[@]}" 3>&2 2>&1 1>&3 || true)
|
|
||||||
|
|
||||||
if [ -z "$CHOICES" ]; then
|
|
||||||
whiptail --title "Guest Delete" \
|
|
||||||
--msgbox "No guests selected!" 10 60
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
read -p "Delete guests manually or automatically? (Default: manual) m/a: " DELETE_MODE
|
|
||||||
DELETE_MODE=${DELETE_MODE:-m}
|
|
||||||
|
|
||||||
# Expand the ALL entries, keeping each ID once so selecting ALL alongside a
|
|
||||||
# single guest does not try to destroy that guest twice.
|
|
||||||
expanded_ids=""
|
|
||||||
for choice in $(echo "$CHOICES" | tr -d '"' | tr -s ' ' '\n'); do
|
|
||||||
case "$choice" in
|
|
||||||
ALL-CT) expanded_ids+=$'\n'$(awk '{print $1}' <<<"$containers") ;;
|
|
||||||
ALL-VM) expanded_ids+=$'\n'$(awk '{print $1}' <<<"$vms") ;;
|
|
||||||
*) expanded_ids+=$'\n'"$choice" ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
selected_ids=$(echo "$expanded_ids" | sed '/^$/d' | awk '!seen[$0]++')
|
|
||||||
|
|
||||||
for guest_id in $selected_ids; do
|
|
||||||
guest_type="${GUEST_TYPE[$guest_id]:-}"
|
|
||||||
if [ -z "$guest_type" ]; then
|
|
||||||
echo -e "${BL}[Info]${RD} Skipping unknown guest $guest_id...${CL}"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$guest_type" == "ct" ]; then
|
|
||||||
label="container $guest_id"
|
|
||||||
else
|
|
||||||
label="VM $guest_id"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "$DELETE_MODE" == "a" ]]; then
|
|
||||||
echo -e "${BL}[Info]${GN} Automatically deleting $label...${CL}"
|
|
||||||
else
|
|
||||||
read -p "Delete $label? (y/N): " CONFIRM
|
|
||||||
if [[ ! "$CONFIRM" =~ ^[Yy]$ ]]; then
|
|
||||||
echo -e "${BL}[Info]${RD} Skipping $label...${CL}"
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
echo -e "${BL}[Info]${GN} Deleting $label...${CL}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Stop only once the deletion is confirmed, so declining leaves a running
|
|
||||||
# guest running instead of powering it off on the way out.
|
|
||||||
if [ "$guest_type" == "ct" ]; then
|
|
||||||
status=$(pct status "$guest_id" 2>/dev/null || echo "unknown")
|
|
||||||
else
|
|
||||||
status=$(qm status "$guest_id" 2>/dev/null || echo "unknown")
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$status" == "status: running" ]; then
|
|
||||||
echo -e "${BL}[Info]${GN} Stopping $label...${CL}"
|
|
||||||
stop_guest "$guest_type" "$guest_id"
|
|
||||||
echo -e "${BL}[Info]${GN} ${label^} stopped.${CL}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if destroy_guest "$guest_type" "$guest_id"; then
|
|
||||||
echo -e "${CM}${GN}${label^} deleted.${CL}"
|
|
||||||
else
|
|
||||||
whiptail --title "Error" --msgbox "Failed to delete ${label}.\n\n$(tail -n 5 "$GUEST_LOG")" 15 70
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
header_info
|
|
||||||
echo -e "${GN}Deletion process completed.${CL}\n"
|
|
||||||
119
tools/pve/lxc-delete.sh
Normal file
119
tools/pve/lxc-delete.sh
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
function header_info {
|
||||||
|
clear
|
||||||
|
cat <<"EOF"
|
||||||
|
____ __ _ ________ ____ __ __
|
||||||
|
/ __ \_________ _ ______ ___ ____ _ __ / / | |/ / ____/ / __ \___ / /__ / /____
|
||||||
|
/ /_/ / ___/ __ \| |/_/ __ `__ \/ __ \| |/_/ / / | / / / / / / _ \/ / _ \/ __/ _ \
|
||||||
|
/ ____/ / / /_/ /> </ / / / / / /_/ /> < / /___/ / /___ / /_/ / __/ / __/ /_/ __/
|
||||||
|
/_/ /_/ \____/_/|_/_/ /_/ /_/\____/_/|_| /_____/_/|_\____/ /_____/\___/_/\___/\__/\___/
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
spinner() {
|
||||||
|
local pid=$1
|
||||||
|
local delay=0.1
|
||||||
|
local spinstr='|/-\'
|
||||||
|
while ps -p $pid >/dev/null; do
|
||||||
|
printf " [%c] " "$spinstr"
|
||||||
|
spinstr=${spinstr#?}${spinstr%"${spinstr#?}"}
|
||||||
|
sleep $delay
|
||||||
|
printf "\r"
|
||||||
|
done
|
||||||
|
printf " \r"
|
||||||
|
}
|
||||||
|
|
||||||
|
set -eEuo pipefail
|
||||||
|
YW=$(echo "\033[33m")
|
||||||
|
BL=$(echo "\033[36m")
|
||||||
|
RD=$(echo "\033[01;31m")
|
||||||
|
GN=$(echo "\033[1;92m")
|
||||||
|
CL=$(echo "\033[m")
|
||||||
|
TAB=" "
|
||||||
|
CM="${TAB}✔️${TAB}${CL}"
|
||||||
|
|
||||||
|
# Telemetry
|
||||||
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func) 2>/dev/null || true
|
||||||
|
declare -f init_tool_telemetry &>/dev/null && init_tool_telemetry "lxc-delete" "pve"
|
||||||
|
|
||||||
|
header_info
|
||||||
|
echo "Loading..."
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE LXC Deletion" --yesno "This will delete LXC containers. Proceed?" 10 58
|
||||||
|
|
||||||
|
NODE=$(hostname)
|
||||||
|
containers=$(pct list | tail -n +2 | awk '{print $0 " " $4}')
|
||||||
|
|
||||||
|
if [ -z "$containers" ]; then
|
||||||
|
whiptail --title "LXC Container Delete" --msgbox "No LXC containers available!" 10 60
|
||||||
|
exit 234
|
||||||
|
fi
|
||||||
|
|
||||||
|
menu_items=("ALL" "Delete ALL containers" "OFF") # Add as first option
|
||||||
|
FORMAT="%-10s %-15s %-10s"
|
||||||
|
|
||||||
|
while read -r container; do
|
||||||
|
container_id=$(echo $container | awk '{print $1}')
|
||||||
|
container_name=$(echo $container | awk '{print $2}')
|
||||||
|
container_status=$(echo $container | awk '{print $3}')
|
||||||
|
formatted_line=$(printf "$FORMAT" "$container_name" "$container_status")
|
||||||
|
menu_items+=("$container_id" "$formatted_line" "OFF")
|
||||||
|
done <<<"$containers"
|
||||||
|
|
||||||
|
CHOICES=$(whiptail --title "LXC Container Delete" \
|
||||||
|
--checklist "Select LXC containers to delete:" 25 60 13 \
|
||||||
|
"${menu_items[@]}" 3>&2 2>&1 1>&3)
|
||||||
|
|
||||||
|
if [ -z "$CHOICES" ]; then
|
||||||
|
whiptail --title "LXC Container Delete" \
|
||||||
|
--msgbox "No containers selected!" 10 60
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
read -p "Delete containers manually or automatically? (Default: manual) m/a: " DELETE_MODE
|
||||||
|
DELETE_MODE=${DELETE_MODE:-m}
|
||||||
|
|
||||||
|
selected_ids=$(echo "$CHOICES" | tr -d '"' | tr -s ' ' '\n')
|
||||||
|
|
||||||
|
# If "ALL" is selected, override with all container IDs
|
||||||
|
if echo "$selected_ids" | grep -q "^ALL$"; then
|
||||||
|
selected_ids=$(echo "$containers" | awk '{print $1}')
|
||||||
|
fi
|
||||||
|
|
||||||
|
for container_id in $selected_ids; do
|
||||||
|
status=$(pct status $container_id)
|
||||||
|
|
||||||
|
if [ "$status" == "status: running" ]; then
|
||||||
|
echo -e "${BL}[Info]${GN} Stopping container $container_id...${CL}"
|
||||||
|
pct stop $container_id &
|
||||||
|
sleep 5
|
||||||
|
echo -e "${BL}[Info]${GN} Container $container_id stopped.${CL}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$DELETE_MODE" == "a" ]]; then
|
||||||
|
echo -e "${BL}[Info]${GN} Automatically deleting container $container_id...${CL}"
|
||||||
|
pct destroy "$container_id" -f &
|
||||||
|
pid=$!
|
||||||
|
spinner $pid
|
||||||
|
[ $? -eq 0 ] && echo "Container $container_id deleted." || whiptail --title "Error" --msgbox "Failed to delete container $container_id." 10 60
|
||||||
|
else
|
||||||
|
read -p "Delete container $container_id? (y/N): " CONFIRM
|
||||||
|
if [[ "$CONFIRM" =~ ^[Yy]$ ]]; then
|
||||||
|
echo -e "${BL}[Info]${GN} Deleting container $container_id...${CL}"
|
||||||
|
pct destroy "$container_id" -f &
|
||||||
|
pid=$!
|
||||||
|
spinner $pid
|
||||||
|
[ $? -eq 0 ] && echo "Container $container_id deleted." || whiptail --title "Error" --msgbox "Failed to delete container $container_id." 10 60
|
||||||
|
else
|
||||||
|
echo -e "${BL}[Info]${RD} Skipping container $container_id...${CL}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
header_info
|
||||||
|
echo -e "${GN}Deletion process completed.${CL}\n"
|
||||||
@@ -178,24 +178,6 @@ function resolve_service_script() {
|
|||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# The retired Gitea mirror. The old entrypoint pulls ct/<app>.sh straight from
|
|
||||||
# it and never reaches the update helper that would repair itself, so rewrite it
|
|
||||||
# here. Only host and /raw/<kind>/ change; owner, repo and ref are kept.
|
|
||||||
function repair_update_url() {
|
|
||||||
local container="$1"
|
|
||||||
pct exec "$container" -- sh -c '
|
|
||||||
[ -f /usr/bin/update ] || exit 1
|
|
||||||
grep -q git.community-scripts.org /usr/bin/update || exit 1
|
|
||||||
sed -i \
|
|
||||||
-e "s|https://git[.]community-scripts[.]org/|https://raw.githubusercontent.com/|g" \
|
|
||||||
-e "s|/raw/branch/|/|g" -e "s|/raw/tag/|/|g" -e "s|/raw/commit/|/|g" \
|
|
||||||
/usr/bin/update
|
|
||||||
' >/dev/null 2>&1 || return 1
|
|
||||||
|
|
||||||
echo -e "${BL}[INFO]${CL} Repaired update URL (Gitea -> GitHub) in container $container"
|
|
||||||
log_write "Container $container: rewrote the retired Gitea base in /usr/bin/update"
|
|
||||||
}
|
|
||||||
|
|
||||||
function detect_service() {
|
function detect_service() {
|
||||||
local container="$1"
|
local container="$1"
|
||||||
local tmpdir update_file
|
local tmpdir update_file
|
||||||
@@ -507,9 +489,6 @@ for container in $CHOICE; do
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#0.5) Rewrite a retired Gitea base before anything reads it.
|
|
||||||
repair_update_url "$container"
|
|
||||||
|
|
||||||
#1) Detect service using the service name in the update command
|
#1) Detect service using the service name in the update command
|
||||||
detect_service $container
|
detect_service $container
|
||||||
|
|
||||||
|
|||||||
@@ -675,3 +675,4 @@ if [ "$START_VM" == "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
|
echo "More Info at https://github.com/community-scripts/ProxmoxVE/discussions/836"
|
||||||
|
|||||||
@@ -612,3 +612,4 @@ if [ "$START_VM" == "yes" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
|
echo "More Info at https://github.com/community-scripts/ProxmoxVE/discussions/836"
|
||||||
|
|||||||
465
vm/docker-vm.sh
465
vm/docker-vm.sh
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
# Copyright (c) 2021-2026 community-scripts ORG
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: thost96 (thost96) | michelroegl-brunner | MickLesk
|
# Author: thost96 (thost96) | michelroegl-brunner | MickLesk
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Docker VM - Creates a Docker-ready Virtual Machine
|
# Docker VM - Creates a Docker-ready Virtual Machine
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
COMMUNITY_SCRIPTS_URL="${COMMUNITY_SCRIPTS_URL:-https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main}"
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/api.func)
|
||||||
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/pve/vm-core.func")
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/vm-core.func)
|
||||||
load_functions
|
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/cloud-init.func) || true
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# SCRIPT VARIABLES
|
# SCRIPT VARIABLES
|
||||||
@@ -32,6 +32,8 @@ OS_VERSION=""
|
|||||||
THIN="discard=on,ssd=1,"
|
THIN="discard=on,ssd=1,"
|
||||||
var_arm64="yes"
|
var_arm64="yes"
|
||||||
|
|
||||||
|
load_functions
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# ERROR HANDLING & CLEANUP
|
# ERROR HANDLING & CLEANUP
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
@@ -42,70 +44,73 @@ trap 'post_update_to_api "failed" "130"' SIGINT
|
|||||||
trap 'post_update_to_api "failed" "143"' SIGTERM
|
trap 'post_update_to_api "failed" "143"' SIGTERM
|
||||||
trap 'post_update_to_api "failed" "129"; exit 129' SIGHUP
|
trap 'post_update_to_api "failed" "129"; exit 129' SIGHUP
|
||||||
|
|
||||||
|
function error_handler() {
|
||||||
|
local exit_code="$?"
|
||||||
|
local line_number="$1"
|
||||||
|
local command="$2"
|
||||||
|
local error_message="${RD}[ERROR]${CL} in line ${RD}$line_number${CL}: exit code ${RD}$exit_code${CL}: while executing command ${YW}$command${CL}"
|
||||||
|
post_update_to_api "failed" "${exit_code}"
|
||||||
|
echo -e "\n$error_message\n"
|
||||||
|
cleanup_vmid
|
||||||
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# OS SELECTION FUNCTIONS
|
# OS SELECTION FUNCTIONS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
function select_os() {
|
function select_os() {
|
||||||
if [[ "${VM_UNATTENDED:-0}" == "1" ]]; then
|
if OS_CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SELECT OS" --radiolist \
|
||||||
OS_CHOICE="${VM_OS_VERSION:-debian13}"
|
"Choose Operating System for Docker VM" 14 68 4 \
|
||||||
elif ! OS_CHOICE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "SELECT OS" --radiolist \
|
|
||||||
"Choose Operating System for Docker VM" 15 68 5 \
|
|
||||||
"debian13" "Debian 13 (Trixie) - Latest" ON \
|
"debian13" "Debian 13 (Trixie) - Latest" ON \
|
||||||
"debian12" "Debian 12 (Bookworm) - Stable" OFF \
|
"debian12" "Debian 12 (Bookworm) - Stable" OFF \
|
||||||
"ubuntu2604" "Ubuntu 26.04 LTS (Resolute)" OFF \
|
|
||||||
"ubuntu2404" "Ubuntu 24.04 LTS (Noble)" OFF \
|
"ubuntu2404" "Ubuntu 24.04 LTS (Noble)" OFF \
|
||||||
"ubuntu2204" "Ubuntu 22.04 LTS (Jammy)" OFF \
|
"ubuntu2204" "Ubuntu 22.04 LTS (Jammy)" OFF \
|
||||||
3>&1 1>&2 2>&3); then
|
3>&1 1>&2 2>&3); then
|
||||||
|
case $OS_CHOICE in
|
||||||
|
debian13)
|
||||||
|
OS_TYPE="debian"
|
||||||
|
OS_VERSION="13"
|
||||||
|
OS_CODENAME="trixie"
|
||||||
|
OS_DISPLAY="Debian 13 (Trixie)"
|
||||||
|
;;
|
||||||
|
debian12)
|
||||||
|
OS_TYPE="debian"
|
||||||
|
OS_VERSION="12"
|
||||||
|
OS_CODENAME="bookworm"
|
||||||
|
OS_DISPLAY="Debian 12 (Bookworm)"
|
||||||
|
;;
|
||||||
|
ubuntu2404)
|
||||||
|
OS_TYPE="ubuntu"
|
||||||
|
OS_VERSION="24.04"
|
||||||
|
OS_CODENAME="noble"
|
||||||
|
OS_DISPLAY="Ubuntu 24.04 LTS"
|
||||||
|
;;
|
||||||
|
ubuntu2204)
|
||||||
|
OS_TYPE="ubuntu"
|
||||||
|
OS_VERSION="22.04"
|
||||||
|
OS_CODENAME="jammy"
|
||||||
|
OS_DISPLAY="Ubuntu 22.04 LTS"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
echo -e "${OS}${BOLD}${DGN}Operating System: ${BGN}${OS_DISPLAY}${CL}"
|
||||||
|
else
|
||||||
exit_script
|
exit_script
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $OS_CHOICE in
|
|
||||||
debian13)
|
|
||||||
OS_TYPE="debian"
|
|
||||||
OS_VERSION="13"
|
|
||||||
OS_CODENAME="trixie"
|
|
||||||
OS_DISPLAY="Debian 13 (Trixie)"
|
|
||||||
;;
|
|
||||||
debian12)
|
|
||||||
OS_TYPE="debian"
|
|
||||||
OS_VERSION="12"
|
|
||||||
OS_CODENAME="bookworm"
|
|
||||||
OS_DISPLAY="Debian 12 (Bookworm)"
|
|
||||||
;;
|
|
||||||
ubuntu2604)
|
|
||||||
OS_TYPE="ubuntu"
|
|
||||||
OS_VERSION="26.04"
|
|
||||||
OS_CODENAME="resolute"
|
|
||||||
OS_DISPLAY="Ubuntu 26.04 LTS"
|
|
||||||
;;
|
|
||||||
ubuntu2404)
|
|
||||||
OS_TYPE="ubuntu"
|
|
||||||
OS_VERSION="24.04"
|
|
||||||
OS_CODENAME="noble"
|
|
||||||
OS_DISPLAY="Ubuntu 24.04 LTS"
|
|
||||||
;;
|
|
||||||
ubuntu2204)
|
|
||||||
OS_TYPE="ubuntu"
|
|
||||||
OS_VERSION="22.04"
|
|
||||||
OS_CODENAME="jammy"
|
|
||||||
OS_DISPLAY="Ubuntu 22.04 LTS"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
msg_error "Unsupported OS '${OS_CHOICE}' (expected debian13, debian12, ubuntu2604, ubuntu2404 or ubuntu2204)"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
echo -e "${OS}${BOLD}${DGN}Operating System: ${BGN}${OS_DISPLAY}${CL}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function select_cloud_init() {
|
function select_cloud_init() {
|
||||||
vm_prompt_cloud_init "root"
|
if [ "$OS_TYPE" = "ubuntu" ]; then
|
||||||
|
|
||||||
# Ubuntu ships only cloud images; without cloud-init there is no way in.
|
|
||||||
if [ "$OS_TYPE" = "ubuntu" ] && [ "$USE_CLOUD_INIT" != "yes" ]; then
|
|
||||||
USE_CLOUD_INIT="yes"
|
USE_CLOUD_INIT="yes"
|
||||||
export CLOUDINIT_ENABLE="yes"
|
echo -e "${CLOUD:-${TAB}☁️${TAB}${CL}}${BOLD}${DGN}Cloud-Init: ${BGN}yes (Ubuntu requires Cloud-Init)${CL}"
|
||||||
msg_warn "Ubuntu requires Cloud-Init - enabling it anyway"
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "CLOUD-INIT" \
|
||||||
|
--yesno "Enable Cloud-Init for VM configuration?\n\nCloud-Init allows automatic configuration of:\n- User accounts and passwords\n- SSH keys\n- Network settings (DHCP/Static)\n- DNS configuration\n\nYou can also configure these settings later in Proxmox UI.\n\nNote: Debian without Cloud-Init will use nocloud image with console auto-login." 18 68); then
|
||||||
|
USE_CLOUD_INIT="yes"
|
||||||
|
echo -e "${CLOUD:-${TAB}☁️${TAB}${CL}}${BOLD}${DGN}Cloud-Init: ${BGN}yes${CL}"
|
||||||
|
else
|
||||||
|
USE_CLOUD_INIT="no"
|
||||||
|
echo -e "${CLOUD:-${TAB}☁️${TAB}${CL}}${BOLD}${DGN}Cloud-Init: ${BGN}no${CL}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,14 +134,16 @@ function get_image_url() {
|
|||||||
# SETTINGS FUNCTIONS
|
# SETTINGS FUNCTIONS
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
function default_settings() {
|
function default_settings() {
|
||||||
vm_apply_machine_type "q35"
|
|
||||||
select_os
|
select_os
|
||||||
select_cloud_init
|
select_cloud_init
|
||||||
|
|
||||||
VMID=$(get_valid_nextid)
|
VMID=$(get_valid_nextid)
|
||||||
|
FORMAT=""
|
||||||
if [ "$ARCH" = "arm64" ]; then
|
if [ "$ARCH" = "arm64" ]; then
|
||||||
|
MACHINE=""
|
||||||
CPU_TYPE=""
|
CPU_TYPE=""
|
||||||
else
|
else
|
||||||
|
MACHINE=" -machine q35"
|
||||||
CPU_TYPE=" -cpu host"
|
CPU_TYPE=" -cpu host"
|
||||||
fi
|
fi
|
||||||
DISK_CACHE=""
|
DISK_CACHE=""
|
||||||
@@ -151,29 +158,252 @@ function default_settings() {
|
|||||||
START_VM="yes"
|
START_VM="yes"
|
||||||
METHOD="default"
|
METHOD="default"
|
||||||
|
|
||||||
vm_echo_default_settings
|
echo -e "${CONTAINERID}${BOLD}${DGN}Virtual Machine ID: ${BGN}${VMID}${CL}"
|
||||||
|
if [ "$ARCH" = "arm64" ]; then
|
||||||
|
echo -e "${CONTAINERTYPE}${BOLD}${DGN}Machine Type: ${BGN}virt (ARM64)${CL}"
|
||||||
|
else
|
||||||
|
echo -e "${CONTAINERTYPE}${BOLD}${DGN}Machine Type: ${BGN}Q35 (Modern)${CL}"
|
||||||
|
fi
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Size: ${BGN}${DISK_SIZE}${CL}"
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Cache: ${BGN}None${CL}"
|
||||||
|
echo -e "${HOSTNAME}${BOLD}${DGN}Hostname: ${BGN}${HN}${CL}"
|
||||||
|
echo -e "${OS}${BOLD}${DGN}CPU Model: ${BGN}$([ "$ARCH" = "arm64" ] && echo "Default" || echo "Host")${CL}"
|
||||||
|
echo -e "${CPUCORE}${BOLD}${DGN}CPU Cores: ${BGN}${CORE_COUNT}${CL}"
|
||||||
|
echo -e "${RAMSIZE}${BOLD}${DGN}RAM Size: ${BGN}${RAM_SIZE}${CL}"
|
||||||
|
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}${BRG}${CL}"
|
||||||
|
echo -e "${MACADDRESS}${BOLD}${DGN}MAC Address: ${BGN}${MAC}${CL}"
|
||||||
|
echo -e "${VLANTAG}${BOLD}${DGN}VLAN: ${BGN}Default${CL}"
|
||||||
|
echo -e "${DEFAULT}${BOLD}${DGN}Interface MTU Size: ${BGN}Default${CL}"
|
||||||
|
echo -e "${GATEWAY}${BOLD}${DGN}Start VM when completed: ${BGN}yes${CL}"
|
||||||
|
echo -e "${CREATING}${BOLD}${DGN}Creating a Docker VM using the above settings${CL}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function advanced_settings() {
|
function advanced_settings() {
|
||||||
METHOD="advanced"
|
|
||||||
select_os
|
select_os
|
||||||
select_cloud_init
|
select_cloud_init
|
||||||
vm_prompt_vmid "${VMID:-$(get_valid_nextid)}"
|
|
||||||
vm_prompt_machine_type "q35"
|
|
||||||
vm_prompt_disk_size "10G"
|
|
||||||
vm_prompt_disk_cache "none"
|
|
||||||
vm_prompt_hostname "docker"
|
|
||||||
vm_prompt_cpu_model "host"
|
|
||||||
vm_prompt_cpu_cores "2"
|
|
||||||
vm_prompt_ram "4096"
|
|
||||||
vm_prompt_bridge "vmbr0"
|
|
||||||
vm_prompt_mac "$GEN_MAC"
|
|
||||||
vm_prompt_vlan
|
|
||||||
vm_prompt_mtu
|
|
||||||
vm_prompt_verbose "no"
|
|
||||||
vm_prompt_start_vm "yes"
|
|
||||||
|
|
||||||
if vm_confirm_advanced_settings "Ready to create a Docker VM?"; then
|
# SSH Key selection for Cloud-Init VMs
|
||||||
|
if [ "$USE_CLOUD_INIT" = "yes" ]; then
|
||||||
|
configure_cloudinit_ssh_keys || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
METHOD="advanced"
|
||||||
|
[ -z "${VMID:-}" ] && VMID=$(get_valid_nextid)
|
||||||
|
|
||||||
|
# VM ID
|
||||||
|
while true; do
|
||||||
|
if VMID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Virtual Machine ID" 8 58 $VMID --title "VIRTUAL MACHINE ID" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$VMID" ]; then
|
||||||
|
VMID=$(get_valid_nextid)
|
||||||
|
fi
|
||||||
|
if pct status "$VMID" &>/dev/null || qm status "$VMID" &>/dev/null; then
|
||||||
|
echo -e "${CROSS}${RD} ID $VMID is already in use${CL}"
|
||||||
|
sleep 2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
echo -e "${CONTAINERID}${BOLD}${DGN}Virtual Machine ID: ${BGN}$VMID${CL}"
|
||||||
|
break
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Machine Type
|
||||||
|
if [ "$ARCH" = "arm64" ]; then
|
||||||
|
FORMAT=""
|
||||||
|
MACHINE=""
|
||||||
|
echo -e "${CONTAINERTYPE}${BOLD}${DGN}Machine Type: ${BGN}virt${CL}"
|
||||||
|
elif MACH=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "MACHINE TYPE" --radiolist --cancel-button Exit-Script "Choose Type" 10 58 2 \
|
||||||
|
"q35" "Q35 (Modern, PCIe)" ON \
|
||||||
|
"i440fx" "i440fx (Legacy, PCI)" OFF \
|
||||||
|
3>&1 1>&2 2>&3); then
|
||||||
|
if [ $MACH = q35 ]; then
|
||||||
|
echo -e "${CONTAINERTYPE}${BOLD}${DGN}Machine Type: ${BGN}Q35 (Modern)${CL}"
|
||||||
|
FORMAT=""
|
||||||
|
MACHINE=" -machine q35"
|
||||||
|
else
|
||||||
|
echo -e "${CONTAINERTYPE}${BOLD}${DGN}Machine Type: ${BGN}i440fx (Legacy)${CL}"
|
||||||
|
FORMAT=",efitype=4m"
|
||||||
|
MACHINE=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Disk Size
|
||||||
|
if DISK_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Disk Size in GiB (e.g., 10, 20)" 8 58 "$DISK_SIZE" --title "DISK SIZE" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
DISK_SIZE=$(echo "$DISK_SIZE" | tr -d ' ')
|
||||||
|
if [[ "$DISK_SIZE" =~ ^[0-9]+$ ]]; then
|
||||||
|
DISK_SIZE="${DISK_SIZE}G"
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Size: ${BGN}$DISK_SIZE${CL}"
|
||||||
|
elif [[ "$DISK_SIZE" =~ ^[0-9]+G$ ]]; then
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Size: ${BGN}$DISK_SIZE${CL}"
|
||||||
|
else
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${RD}Invalid Disk Size. Please use a number (e.g., 10 or 10G).${CL}"
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Disk Cache
|
||||||
|
if DISK_CACHE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "DISK CACHE" --radiolist "Choose" --cancel-button Exit-Script 10 58 2 \
|
||||||
|
"0" "None (Default)" ON \
|
||||||
|
"1" "Write Through" OFF \
|
||||||
|
3>&1 1>&2 2>&3); then
|
||||||
|
if [ $DISK_CACHE = "1" ]; then
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Cache: ${BGN}Write Through${CL}"
|
||||||
|
DISK_CACHE="cache=writethrough,"
|
||||||
|
else
|
||||||
|
echo -e "${DISKSIZE}${BOLD}${DGN}Disk Cache: ${BGN}None${CL}"
|
||||||
|
DISK_CACHE=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Hostname
|
||||||
|
if VM_NAME=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Hostname" 8 58 docker --title "HOSTNAME" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z $VM_NAME ]; then
|
||||||
|
HN="docker"
|
||||||
|
else
|
||||||
|
HN=$(echo "${VM_NAME,,}" | tr -cs 'a-z0-9-' '-' | sed 's/^-//;s/-$//')
|
||||||
|
if [ "$HN" != "${VM_NAME,,}" ]; then
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "HOSTNAME ADJUSTED" --msgbox "Invalid characters detected. Hostname has been adjusted to:\n\n $HN" 10 58
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
echo -e "${HOSTNAME}${BOLD}${DGN}Hostname: ${BGN}$HN${CL}"
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# CPU Model
|
||||||
|
if [ "$ARCH" = "arm64" ]; then
|
||||||
|
CPU_TYPE=""
|
||||||
|
echo -e "${OS}${BOLD}${DGN}CPU Model: ${BGN}Default${CL}"
|
||||||
|
elif CPU_TYPE1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CPU MODEL" --radiolist "Choose" --cancel-button Exit-Script 10 58 2 \
|
||||||
|
"1" "Host (Recommended)" ON \
|
||||||
|
"0" "KVM64" OFF \
|
||||||
|
3>&1 1>&2 2>&3); then
|
||||||
|
if [ $CPU_TYPE1 = "1" ]; then
|
||||||
|
echo -e "${OS}${BOLD}${DGN}CPU Model: ${BGN}Host${CL}"
|
||||||
|
CPU_TYPE=" -cpu host"
|
||||||
|
else
|
||||||
|
echo -e "${OS}${BOLD}${DGN}CPU Model: ${BGN}KVM64${CL}"
|
||||||
|
CPU_TYPE=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# CPU Cores
|
||||||
|
while true; do
|
||||||
|
if CORE_COUNT=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate CPU Cores" 8 58 2 --title "CORE COUNT" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$CORE_COUNT" ]; then CORE_COUNT="2"; fi
|
||||||
|
if [[ "$CORE_COUNT" =~ ^[1-9][0-9]*$ ]]; then
|
||||||
|
echo -e "${CPUCORE}${BOLD}${DGN}CPU Cores: ${BGN}$CORE_COUNT${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "INVALID INPUT" --msgbox "CPU Cores must be a positive integer (e.g., 2)." 8 58
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# RAM Size
|
||||||
|
while true; do
|
||||||
|
if RAM_SIZE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Allocate RAM in MiB" 8 58 4096 --title "RAM" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$RAM_SIZE" ]; then RAM_SIZE="4096"; fi
|
||||||
|
if [[ "$RAM_SIZE" =~ ^[1-9][0-9]*$ ]]; then
|
||||||
|
echo -e "${RAMSIZE}${BOLD}${DGN}RAM Size: ${BGN}$RAM_SIZE${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "INVALID INPUT" --msgbox "RAM Size must be a positive integer in MiB (e.g., 4096)." 8 58
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Bridge
|
||||||
|
if BRG=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set a Bridge" 8 58 vmbr0 --title "BRIDGE" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z $BRG ]; then
|
||||||
|
BRG="vmbr0"
|
||||||
|
fi
|
||||||
|
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
|
||||||
|
# MAC Address
|
||||||
|
while true; do
|
||||||
|
if MAC1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set a MAC Address" 8 58 $GEN_MAC --title "MAC ADDRESS" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$MAC1" ]; then
|
||||||
|
MAC="$GEN_MAC"
|
||||||
|
echo -e "${MACADDRESS}${BOLD}${DGN}MAC Address: ${BGN}$MAC${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if [[ "$MAC1" =~ ^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$ ]]; then
|
||||||
|
MAC="$MAC1"
|
||||||
|
echo -e "${MACADDRESS}${BOLD}${DGN}MAC Address: ${BGN}$MAC${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "INVALID INPUT" --msgbox "Invalid MAC address format. Use XX:XX:XX:XX:XX:XX (e.g., AA:BB:CC:DD:EE:FF)." 8 58
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# VLAN
|
||||||
|
while true; do
|
||||||
|
if VLAN1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set a Vlan (leave blank for default)" 8 58 --title "VLAN" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$VLAN1" ]; then
|
||||||
|
VLAN1="Default"
|
||||||
|
VLAN=""
|
||||||
|
echo -e "${VLANTAG}${BOLD}${DGN}VLAN: ${BGN}$VLAN1${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if [[ "$VLAN1" =~ ^[0-9]+$ ]] && [ "$VLAN1" -ge 1 ] && [ "$VLAN1" -le 4094 ]; then
|
||||||
|
VLAN=",tag=$VLAN1"
|
||||||
|
echo -e "${VLANTAG}${BOLD}${DGN}VLAN: ${BGN}$VLAN1${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "INVALID INPUT" --msgbox "VLAN must be a number between 1 and 4094, or leave blank for default." 8 58
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# MTU
|
||||||
|
while true; do
|
||||||
|
if MTU1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Interface MTU Size (leave blank for default)" 8 58 --title "MTU SIZE" --cancel-button Exit-Script 3>&1 1>&2 2>&3); then
|
||||||
|
if [ -z "$MTU1" ]; then
|
||||||
|
MTU1="Default"
|
||||||
|
MTU=""
|
||||||
|
echo -e "${DEFAULT}${BOLD}${DGN}Interface MTU Size: ${BGN}$MTU1${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
if [[ "$MTU1" =~ ^[0-9]+$ ]] && [ "$MTU1" -ge 576 ] && [ "$MTU1" -le 65520 ]; then
|
||||||
|
MTU=",mtu=$MTU1"
|
||||||
|
echo -e "${DEFAULT}${BOLD}${DGN}Interface MTU Size: ${BGN}$MTU1${CL}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
whiptail --backtitle "Proxmox VE Helper Scripts" --title "INVALID INPUT" --msgbox "MTU Size must be a number between 576 and 65520, or leave blank for default." 8 58
|
||||||
|
else
|
||||||
|
exit_script
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Start VM
|
||||||
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "START VIRTUAL MACHINE" --yesno "Start VM when completed?" 10 58); then
|
||||||
|
echo -e "${GATEWAY}${BOLD}${DGN}Start VM when completed: ${BGN}yes${CL}"
|
||||||
|
START_VM="yes"
|
||||||
|
else
|
||||||
|
echo -e "${GATEWAY}${BOLD}${DGN}Start VM when completed: ${BGN}no${CL}"
|
||||||
|
START_VM="no"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Confirm
|
||||||
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "ADVANCED SETTINGS COMPLETE" --yesno "Ready to create a Docker VM?" --no-button Do-Over 10 58); then
|
||||||
echo -e "${CREATING}${BOLD}${DGN}Creating a Docker VM using the above advanced settings${CL}"
|
echo -e "${CREATING}${BOLD}${DGN}Creating a Docker VM using the above advanced settings${CL}"
|
||||||
else
|
else
|
||||||
header_info
|
header_info
|
||||||
@@ -182,27 +412,81 @@ function advanced_settings() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function start_script() {
|
||||||
|
if (whiptail --backtitle "Proxmox VE Helper Scripts" --title "SETTINGS" --yesno "Use Default Settings?" --no-button Advanced 10 58); then
|
||||||
|
header_info
|
||||||
|
echo -e "${DEFAULT}${BOLD}${BL}Using Default Settings${CL}"
|
||||||
|
default_settings
|
||||||
|
else
|
||||||
|
header_info
|
||||||
|
echo -e "${ADVANCED}${BOLD}${RD}Using Advanced Settings${CL}"
|
||||||
|
advanced_settings
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# MAIN EXECUTION
|
# MAIN EXECUTION
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
header_info
|
header_info
|
||||||
|
|
||||||
vm_preflight
|
check_root
|
||||||
|
arch_check
|
||||||
|
pve_check
|
||||||
|
|
||||||
vm_start_script "Use Default Settings?" 10 58
|
if whiptail --backtitle "Proxmox VE Helper Scripts" --title "Docker VM" --yesno "This will create a New Docker VM. Proceed?" 10 58; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
header_info && echo -e "${CROSS}${RD}User exited script${CL}\n" && exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
start_script
|
||||||
post_to_api_vm
|
post_to_api_vm
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# STORAGE SELECTION
|
# STORAGE SELECTION
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
vm_select_storage "$HN"
|
msg_info "Validating Storage"
|
||||||
|
while read -r line; do
|
||||||
|
TAG=$(echo $line | awk '{print $1}')
|
||||||
|
TYPE=$(echo $line | awk '{printf "%-10s", $2}')
|
||||||
|
FREE=$(echo $line | numfmt --field 4-6 --from-unit=K --to=iec --format %.2f | awk '{printf( "%9sB", $6)}')
|
||||||
|
ITEM=" Type: $TYPE Free: $FREE "
|
||||||
|
OFFSET=2
|
||||||
|
if [[ $((${#ITEM} + $OFFSET)) -gt ${MSG_MAX_LENGTH:-} ]]; then
|
||||||
|
MSG_MAX_LENGTH=$((${#ITEM} + $OFFSET))
|
||||||
|
fi
|
||||||
|
STORAGE_MENU+=("$TAG" "$ITEM" "OFF")
|
||||||
|
done < <(pvesm status -content images | awk 'NR>1')
|
||||||
|
|
||||||
|
VALID=$(pvesm status -content images | awk 'NR>1')
|
||||||
|
if [ -z "$VALID" ]; then
|
||||||
|
msg_error "Unable to detect a valid storage location."
|
||||||
|
exit
|
||||||
|
elif [ $((${#STORAGE_MENU[@]} / 3)) -eq 1 ]; then
|
||||||
|
STORAGE=${STORAGE_MENU[0]}
|
||||||
|
else
|
||||||
|
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID >/dev/null; then kill $SPINNER_PID >/dev/null; fi
|
||||||
|
printf "\e[?25h"
|
||||||
|
while [ -z "${STORAGE:+x}" ]; do
|
||||||
|
STORAGE=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Storage Pools" --radiolist \
|
||||||
|
"Which storage pool would you like to use for ${HN}?\nTo make a selection, use the Spacebar.\n" \
|
||||||
|
16 $(($MSG_MAX_LENGTH + 23)) 6 \
|
||||||
|
"${STORAGE_MENU[@]}" 3>&1 1>&2 2>&3)
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
||||||
|
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# PREREQUISITES
|
# PREREQUISITES
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
vm_ensure_virt_customize
|
if ! command -v virt-customize &>/dev/null; then
|
||||||
$STD apt-get -qq install lsb-release dhcpcd-base -y 2>/dev/null || true
|
msg_info "Installing libguestfs-tools"
|
||||||
|
apt-get -qq update >/dev/null
|
||||||
|
apt-get -qq install libguestfs-tools lsb-release -y >/dev/null
|
||||||
|
apt-get -qq install dhcpcd-base -y >/dev/null 2>&1 || true
|
||||||
|
msg_ok "Installed libguestfs-tools"
|
||||||
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# IMAGE DOWNLOAD
|
# IMAGE DOWNLOAD
|
||||||
@@ -214,8 +498,13 @@ CACHE_FILE="$CACHE_DIR/$(basename "$URL")"
|
|||||||
mkdir -p "$CACHE_DIR"
|
mkdir -p "$CACHE_DIR"
|
||||||
msg_ok "${CL}${BL}${URL}${CL}"
|
msg_ok "${CL}${BL}${URL}${CL}"
|
||||||
|
|
||||||
MIN_IMAGE_BYTES=$((100 * 1024 * 1024))
|
if [[ ! -s "$CACHE_FILE" ]]; then
|
||||||
vm_fetch_image "$URL" "$CACHE_FILE" --cache --min-bytes "$MIN_IMAGE_BYTES" || exit 115
|
curl -f#SL -o "$CACHE_FILE" "$URL"
|
||||||
|
echo -en "\e[1A\e[0K"
|
||||||
|
msg_ok "Downloaded ${CL}${BL}$(basename "$CACHE_FILE")${CL}"
|
||||||
|
else
|
||||||
|
msg_ok "Using cached image ${CL}${BL}$(basename "$CACHE_FILE")${CL}"
|
||||||
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# STORAGE TYPE DETECTION
|
# STORAGE TYPE DETECTION
|
||||||
@@ -250,13 +539,6 @@ msg_info "Preparing ${OS_DISPLAY} image with Docker"
|
|||||||
WORK_FILE=$(mktemp --suffix=.qcow2)
|
WORK_FILE=$(mktemp --suffix=.qcow2)
|
||||||
cp "$CACHE_FILE" "$WORK_FILE"
|
cp "$CACHE_FILE" "$WORK_FILE"
|
||||||
|
|
||||||
# qm resize only grows the block device. Without cloud-init nothing grows the
|
|
||||||
# guest partition, so expand the working copy offline first.
|
|
||||||
if [ "${USE_CLOUD_INIT:-no}" != "yes" ]; then
|
|
||||||
msg_info "Expanding the root filesystem to ${DISK_SIZE}"
|
|
||||||
vm_expand_image "$WORK_FILE" "$DISK_SIZE" || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
export LIBGUESTFS_BACKEND_SETTINGS=dns=8.8.8.8,1.1.1.1
|
export LIBGUESTFS_BACKEND_SETTINGS=dns=8.8.8.8,1.1.1.1
|
||||||
|
|
||||||
DOCKER_PREINSTALLED="no"
|
DOCKER_PREINSTALLED="no"
|
||||||
@@ -295,7 +577,9 @@ fi
|
|||||||
|
|
||||||
msg_info "Finalizing image (hostname, SSH config)"
|
msg_info "Finalizing image (hostname, SSH config)"
|
||||||
# Set hostname and prepare for unique machine-id
|
# Set hostname and prepare for unique machine-id
|
||||||
vm_prepare_cloud_image "$WORK_FILE" "$HN" || true
|
virt-customize -q -a "$WORK_FILE" --hostname "${HN}" >/dev/null 2>&1 || true
|
||||||
|
virt-customize -q -a "$WORK_FILE" --run-command "truncate -s 0 /etc/machine-id" >/dev/null 2>&1 || true
|
||||||
|
virt-customize -q -a "$WORK_FILE" --run-command "rm -f /var/lib/dbus/machine-id" >/dev/null 2>&1 || true
|
||||||
|
|
||||||
# Configure SSH for Cloud-Init
|
# Configure SSH for Cloud-Init
|
||||||
if [ "$USE_CLOUD_INIT" = "yes" ]; then
|
if [ "$USE_CLOUD_INIT" = "yes" ]; then
|
||||||
@@ -432,17 +716,16 @@ msg_ok "Attached EFI and root disk"
|
|||||||
set_description
|
set_description
|
||||||
|
|
||||||
# Cloud-Init configuration
|
# Cloud-Init configuration
|
||||||
msg_info "Configuring Cloud-Init"
|
if [ "$USE_CLOUD_INIT" = "yes" ]; then
|
||||||
if vm_provision "$VMID"; then
|
msg_info "Configuring Cloud-Init"
|
||||||
|
setup_cloud_init "$VMID" "$STORAGE" "$HN" "yes"
|
||||||
msg_ok "Cloud-Init configured"
|
msg_ok "Cloud-Init configured"
|
||||||
else
|
|
||||||
msg_warn "VM created, but not provisioned"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start VM
|
# Start VM
|
||||||
if [ "$START_VM" == "yes" ]; then
|
if [ "$START_VM" == "yes" ]; then
|
||||||
msg_info "Starting Docker VM"
|
msg_info "Starting Docker VM"
|
||||||
$STD qm start $VMID
|
qm start $VMID >/dev/null 2>&1
|
||||||
msg_ok "Started Docker VM"
|
msg_ok "Started Docker VM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user