Compare commits

..

63 Commits

Author SHA1 Message Date
community-scripts-pr-app[bot]
27b79a23b6 Update CHANGELOG.md (#6750)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-11 00:15:58 +00:00
community-scripts-pr-app[bot]
49fbe38981 Update versions.json (#6749)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-11 02:15:35 +02:00
Chris
0cd7985f8a Pulse: update config path in JSON (#6743) 2025-08-10 23:20:57 +02:00
community-scripts-pr-app[bot]
428fae66c3 Update CHANGELOG.md (#6741)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 17:43:14 +00:00
Chris
18c57600c6 Pulse: fix binary path (#6740)
- recent updates have changed the path
2025-08-10 19:42:47 +02:00
community-scripts-pr-app[bot]
68d2d3c52c Update versions.json (#6737)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 14:05:15 +02:00
community-scripts-pr-app[bot]
76f9232c3a Update CHANGELOG.md (#6735)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 11:38:12 +00:00
Florian Kefferpütz
4258d44a7d Fix/thinpool detection as it allows to delete active thinpool with different name than "data" (#6730)
* Fix: exclude all thin-pools dynamically instead of only 'data'

* Fix: dynamically exclude all thin pools (not just 'data') from orphan check

* Fix: dynamically exclude all thin pools (not just 'data') from orphan check
2025-08-10 13:37:49 +02:00
community-scripts-pr-app[bot]
c60f04e229 Update CHANGELOG.md (#6732)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 07:58:30 +00:00
Chris
6b93869e52 Karakeep: chromium fix (#6729)
- also removed unneeded dependency git
2025-08-10 09:58:11 +02:00
community-scripts-pr-app[bot]
c3cfdc1efa Update CHANGELOG.md (#6726)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 00:16:24 +00:00
community-scripts-pr-app[bot]
33678fde1b Update versions.json (#6725)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-10 02:16:04 +02:00
community-scripts-pr-app[bot]
3dfdfeb2fa Update CHANGELOG.md (#6721)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 20:58:22 +00:00
CanbiZ
305d3603ef Paperless-AI: increase HDD Space to 20G (#6716)
* Paperless-AI: increase HDD Space to 20G

* Paperless-AI: increase HDD Space to 20G
2025-08-09 22:57:59 +02:00
community-scripts-pr-app[bot]
00138323b9 Update CHANGELOG.md (#6713)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 13:10:03 +00:00
Tobias
1d50632019 vaultwarden: increase disk space (#6712)
* vaultwarden: fix: disk

* vaultwarden: fix: frontent hdd display
2025-08-09 15:09:44 +02:00
community-scripts-pr-app[bot]
8883ba6b60 Update versions.json (#6711)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 14:05:13 +02:00
community-scripts-pr-app[bot]
7b06f611ad Update CHANGELOG.md (#6708)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 08:19:11 +00:00
community-scripts-pr-app[bot]
412919670c Update CHANGELOG.md (#6707)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 08:18:46 +00:00
Xerovoxx98
77ac07efd7 Fix: Bazarr requirements.txt file not parse-able by UV (#6701) 2025-08-09 10:18:36 +02:00
Thomas
55def0d441 Improve backup of adventurelog folder (#6653) 2025-08-09 10:18:23 +02:00
community-scripts-pr-app[bot]
70a01abbd8 Update CHANGELOG.md (#6706)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 08:04:14 +00:00
CanbiZ
d5b0209453 Refactor: Tianji (#6662) 2025-08-09 10:03:56 +02:00
community-scripts-pr-app[bot]
755da8bdc3 Update CHANGELOG.md (#6705)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 08:03:21 +00:00
Slaviša Arežina
9228cd06e3 Fixes (#6702) 2025-08-09 10:03:01 +02:00
Slaviša Arežina
49579e8558 Update docmost.json (#6703) 2025-08-09 10:02:38 +02:00
community-scripts-pr-app[bot]
030a977209 Update CHANGELOG.md (#6696)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 00:13:20 +00:00
community-scripts-pr-app[bot]
b8176dc7b3 Update versions.json (#6695)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-09 02:12:58 +02:00
community-scripts-pr-app[bot]
cd0625cba6 Update CHANGELOG.md (#6692)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 20:53:23 +00:00
community-scripts-pr-app[bot]
73e131ecf8 Update CHANGELOG.md (#6691)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 20:38:26 +00:00
CanbiZ
a0d6082b95 Refactor: Bazarr (#6663) 2025-08-08 22:38:07 +02:00
community-scripts-pr-app[bot]
70ccaf6835 Update CHANGELOG.md (#6690)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 20:36:34 +00:00
CanbiZ
05b58decc2 Refactor: Kometa (#6673)
* Remove: HomeAssistant-Core [deprecated]

* Refactor: Kometa

* sometimes git sucks
2025-08-08 22:36:05 +02:00
community-scripts-pr-app[bot]
ff1b7cc81d Update .app files (#6687) 2025-08-08 22:35:39 +02:00
community-scripts-pr-app[bot]
a2bbc2174a Update CHANGELOG.md (#6689)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 20:35:18 +00:00
Slaviša Arežina
a8a44a4d51 Update unifi-install.sh (#6680) 2025-08-08 22:34:58 +02:00
community-scripts-pr-app[bot]
ed620e8258 Update CHANGELOG.md (#6688)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 20:34:53 +00:00
Slaviša Arežina
1fc667088c Update homebox.sh (#6677) 2025-08-08 22:34:29 +02:00
CanbiZ
d89055a5cd Remove: HomeAssistant-Core [deprecated] (#6671) 2025-08-08 22:34:03 +02:00
community-scripts-pr-app[bot]
4ecd019e15 Update CHANGELOG.md (#6685)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 19:20:51 +00:00
community-scripts-pr-app[bot]
e3a31aa47e Update CHANGELOG.md (#6684)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 19:20:41 +00:00
CanbiZ
ed936528d2 Refactor: ArchiveBox (#6670) 2025-08-08 21:20:24 +02:00
community-scripts-pr-app[bot]
6f24de7d63 Update CHANGELOG.md (#6683)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 19:20:15 +00:00
Chris
54de40ed53 Immich: unpin libvips revision (#6669) 2025-08-08 21:19:57 +02:00
community-scripts-pr-app[bot]
872cd289ff Update CHANGELOG.md (#6682)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 19:19:49 +00:00
CanbiZ
9c37ac385c Meilisearch: fix wrong path switch (#6668) 2025-08-08 21:19:27 +02:00
CanbiZ
575ad61c93 website: mark docker as updatable (#6664) 2025-08-08 21:18:51 +02:00
community-scripts-pr-app[bot]
1773cc5507 Update CHANGELOG.md (#6681)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 17:39:30 +00:00
Maciej Kobus
11b19fdeab Allow 9.x PVE version in add-iptag.sh (#6679) 2025-08-08 19:39:10 +02:00
community-scripts-pr-app[bot]
5e6081fbea Update CHANGELOG.md (#6676)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 13:42:35 +00:00
Slaviša Arežina
e2a310dd3a Refactor: Alpine IT-Tools (#6579)
* Refactor

* Update

* Update deps
2025-08-08 15:42:09 +02:00
community-scripts-pr-app[bot]
d934d1b51b Update versions.json (#6672)
Co-authored-by: GitHub Actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 14:05:43 +02:00
community-scripts-pr-app[bot]
6e3c08142d Update CHANGELOG.md (#6665)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 09:38:01 +00:00
CanbiZ
a41497f90a Refactor: FSTrim (Filesystem Trim) (#6660) 2025-08-08 11:37:36 +02:00
community-scripts-pr-app[bot]
c54025f8de Update CHANGELOG.md (#6659)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 08:28:30 +00:00
CanbiZ
a1eb53841d MariaDB: fix "feedback" whiptail (#6657) 2025-08-08 10:28:05 +02:00
community-scripts-pr-app[bot]
6c4c3ffa39 Update CHANGELOG.md (#6656)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 06:23:54 +00:00
community-scripts-pr-app[bot]
78f695f397 Update date in json (#6655)
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
2025-08-08 06:23:34 +00:00
push-app-to-main[bot]
4b0d24ed2e Palmr (#6642)
* 'Add new script'

* Update palmr.sh

* Update palmr-install.sh

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
2025-08-08 08:23:14 +02:00
community-scripts-pr-app[bot]
705d66e7c6 Update CHANGELOG.md (#6654)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 06:13:49 +00:00
push-app-to-main[bot]
c4703527dc HortusFox (#6641)
* 'Add new script'

* increase ressources

* verbose

* inprove json

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
2025-08-08 08:13:24 +02:00
community-scripts-pr-app[bot]
9b607c60b4 Update CHANGELOG.md (#6652)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-08-08 05:17:21 +00:00
Chris
4717852019 Karakeep: workaround/fix for #6593 (#6648) 2025-08-08 07:17:03 +02:00
48 changed files with 1074 additions and 790 deletions

View File

@@ -10,8 +10,66 @@
> [!CAUTION] > [!CAUTION]
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes. Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
## 2025-08-11
## 2025-08-10
### 🚀 Updated Scripts
- Fix/thinpool detection as it allows to delete active thinpool with different name than "data" [@onethree7](https://github.com/onethree7) ([#6730](https://github.com/community-scripts/ProxmoxVE/pull/6730))
- #### 🐞 Bug Fixes
- Pulse: fix binary path [@vhsdream](https://github.com/vhsdream) ([#6740](https://github.com/community-scripts/ProxmoxVE/pull/6740))
- Karakeep: chromium fix [@vhsdream](https://github.com/vhsdream) ([#6729](https://github.com/community-scripts/ProxmoxVE/pull/6729))
## 2025-08-09
### 🚀 Updated Scripts
- Paperless-AI: increase HDD Space to 20G [@MickLesk](https://github.com/MickLesk) ([#6716](https://github.com/community-scripts/ProxmoxVE/pull/6716))
- #### 🐞 Bug Fixes
- vaultwarden: increase disk space [@CrazyWolf13](https://github.com/CrazyWolf13) ([#6712](https://github.com/community-scripts/ProxmoxVE/pull/6712))
- Fix: Bazarr requirements.txt file not parse-able by UV [@Xerovoxx98](https://github.com/Xerovoxx98) ([#6701](https://github.com/community-scripts/ProxmoxVE/pull/6701))
- Improve backup of adventurelog folder [@ThomasDetemmerman](https://github.com/ThomasDetemmerman) ([#6653](https://github.com/community-scripts/ProxmoxVE/pull/6653))
- HomeBox: Fixes for update procedure [@tremor021](https://github.com/tremor021) ([#6702](https://github.com/community-scripts/ProxmoxVE/pull/6702))
- #### 🔧 Refactor
- Refactor: Tianji [@MickLesk](https://github.com/MickLesk) ([#6662](https://github.com/community-scripts/ProxmoxVE/pull/6662))
## 2025-08-08 ## 2025-08-08
### 🆕 New Scripts
- Palmr ([#6642](https://github.com/community-scripts/ProxmoxVE/pull/6642))
- HortusFox ([#6641](https://github.com/community-scripts/ProxmoxVE/pull/6641))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Unifi: Update libssl dependency [@tremor021](https://github.com/tremor021) ([#6680](https://github.com/community-scripts/ProxmoxVE/pull/6680))
- HomeBox: Fix checking for existing install [@tremor021](https://github.com/tremor021) ([#6677](https://github.com/community-scripts/ProxmoxVE/pull/6677))
- Immich: unpin libvips revision [@vhsdream](https://github.com/vhsdream) ([#6669](https://github.com/community-scripts/ProxmoxVE/pull/6669))
- Meilisearch: fix wrong path switch [@MickLesk](https://github.com/MickLesk) ([#6668](https://github.com/community-scripts/ProxmoxVE/pull/6668))
- MariaDB: fix "feedback" (statistical informations) whiptail [@MickLesk](https://github.com/MickLesk) ([#6657](https://github.com/community-scripts/ProxmoxVE/pull/6657))
- Karakeep: workaround/fix for #6593 [@vhsdream](https://github.com/vhsdream) ([#6648](https://github.com/community-scripts/ProxmoxVE/pull/6648))
- #### ✨ New Features
- Feature: FSTrim (Filesystem Trim) - Log / LVM Check / ZFS [@MickLesk](https://github.com/MickLesk) ([#6660](https://github.com/community-scripts/ProxmoxVE/pull/6660))
- IP Tag: Allow installation on PVE 9.x [@webhdx](https://github.com/webhdx) ([#6679](https://github.com/community-scripts/ProxmoxVE/pull/6679))
- #### 🔧 Refactor
- Refactor: Alpine IT-Tools [@tremor021](https://github.com/tremor021) ([#6579](https://github.com/community-scripts/ProxmoxVE/pull/6579))
- Refactor: ArchiveBox [@MickLesk](https://github.com/MickLesk) ([#6670](https://github.com/community-scripts/ProxmoxVE/pull/6670))
- Refactor: Bazarr [@MickLesk](https://github.com/MickLesk) ([#6663](https://github.com/community-scripts/ProxmoxVE/pull/6663))
- Refactor: Kometa [@MickLesk](https://github.com/MickLesk) ([#6673](https://github.com/community-scripts/ProxmoxVE/pull/6673))
## 2025-08-07 ## 2025-08-07
### 🚀 Updated Scripts ### 🚀 Updated Scripts

View File

@@ -36,10 +36,7 @@ function update_script() {
msg_ok "Services Stopped" msg_ok "Services Stopped"
msg_info "Backup Old Installation" msg_info "Backup Old Installation"
mkdir -p /opt/adventurelog-backup cp -r /opt/adventurelog /opt/adventurelog-backup
cp /opt/adventurelog/backend/server/.env /opt/adventurelog-backup/backend/server/.env
cp -r /opt/adventurelog/backend/server/media /opt/adventurelog-backup/backend/server/media
cp /opt/adventurelog/frontend/.env /opt/adventurelog-backup/frontend/.env
msg_ok "Backup done" msg_ok "Backup done"
fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog" fetch_and_deploy_gh_release "adventurelog" "seanmorley15/adventurelog"

View File

@@ -27,16 +27,15 @@ function update_script() {
exit 1 exit 1
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/CorentinTh/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4) RELEASE=$(curl -fsSL https://api.github.com/repos/sharevb/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4)
if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ] || [ ! -f /opt/${APP}_version.txt ]; then if [ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ] || [ ! -f /opt/${APP}_version.txt ]; then
DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip"
msg_info "Updating ${APP} LXC" msg_info "Updating ${APP} LXC"
curl -fsSL -o it-tools.zip "$DOWNLOAD_URL" curl -fsSL "https://github.com/sharevb/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip" -o it-tools.zip
mkdir -p /usr/share/nginx/html mkdir -p /usr/share/nginx/html
rm -rf /usr/share/nginx/html/* rm -rf /usr/share/nginx/html/*
$STD unzip it-tools.zip -d /tmp/it-tools $STD unzip it-tools.zip -d /tmp
cp -r /tmp/it-tools/dist/* /usr/share/nginx/html cp -r /tmp/dist/* /usr/share/nginx/html
rm -rf /tmp/it-tools rm -rf /tmp/dist
rm -f it-tools.zip rm -f it-tools.zip
msg_ok "Updated Successfully" msg_ok "Updated Successfully"
else else

View File

@@ -20,29 +20,38 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/archivebox ]]; then if [[ ! -d /opt/archivebox ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Stopping ${APP}"
systemctl stop archivebox
msg_ok "Stopped ${APP}"
msg_info "Updating ${APP}"
cd /opt/archivebox/data
pip install --upgrade --ignore-installed archivebox
sudo -u archivebox archivebox init
msg_ok "Updated ${APP}"
msg_info "Starting ${APP}"
systemctl start archivebox
msg_ok "Started ${APP}"
msg_ok "Updated Successfully"
exit exit
fi
NODE_VERSION="22" setup_nodejs
PYTHON_VERSION="3.13" setup_uv
msg_info "Stopping ArchiveBox"
systemctl stop archivebox
msg_ok "Stopped ArchiveBox"
msg_info "Upgrading Playwright"
$STD uv pip install playwright --system
$STD playwright install-deps chromium
msg_ok "Upgraded Playwright"
msg_info "Updating ArchiveBox"
cd /opt/archivebox/data
uv --system pip install --upgrade --ignore-installed archivebox
sudo -u archivebox archivebox init
msg_ok "Updated ArchiveBox"
msg_info "Starting ArchiveBox"
systemctl start archivebox
msg_ok "Started ArchiveBox"
msg_ok "Updated Successfully"
exit
} }
start start
@@ -52,4 +61,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 "${TAB}${GATEWAY}${BGN}http://${IP}:8000/admin/login${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8000/admin/login${CL}"

View File

@@ -20,20 +20,37 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /var/lib/bazarr/ ]]; then if [[ ! -d /var/lib/bazarr/ ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating $APP LXC"
$STD apt-get update
$STD apt-get -y upgrade
msg_ok "Updated $APP LXC"
exit exit
} fi
if ! command -v jq &>/dev/null; then
$STD apt-get install -y jq
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/morpheus65535/bazarr/releases/latest | jq -r '.tag_name' | sed 's/^v//')
if [[ "${RELEASE}" != "$(cat ~/.bazarr 2>/dev/null)" ]] || [[ ! -f ~/.bazarr ]]; then
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "bazarr" "morpheus65535/bazarr" "prebuild" "latest" "/opt/bazarr" "bazarr.zip"
msg_info "Setup Bazarr"
mkdir -p /var/lib/bazarr/
chmod 775 /opt/bazarr /var/lib/bazarr/
sed -i.bak 's/--only-binary=Pillow//g' /opt/bazarr/requirements.txt
$STD uv pip install -r /opt/bazarr/requirements.txt --system
msg_ok "Setup Bazarr"
msg_ok "Update Successful"
else
msg_ok "No update required. ${APP} is already at v${RELEASE}"
fi
exit
}
start start
build_container build_container
description description
@@ -41,4 +58,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 "${TAB}${GATEWAY}${BGN}http://${IP}:6767${CL}" echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6767${CL}"

View File

@@ -1,6 +0,0 @@
__ __ ___ _ __ __ ______
/ / / /___ ____ ___ ___ / | __________(_)____/ /_____ _____ / /_ / ____/___ ________
/ /_/ / __ \/ __ `__ \/ _ \ / /| | / ___/ ___/ / ___/ __/ __ `/ __ \/ __/_____/ / / __ \/ ___/ _ \
/ __ / /_/ / / / / / / __/ / ___ |(__ |__ ) (__ ) /_/ /_/ / / / / /_/_____/ /___/ /_/ / / / __/
/_/ /_/\____/_/ /_/ /_/\___/ /_/ |_/____/____/_/____/\__/\__,_/_/ /_/\__/ \____/\____/_/ \___/

6
ct/headers/hortusfox Normal file
View File

@@ -0,0 +1,6 @@
__ __ __ ______
/ / / /___ _____/ /___ _______/ ____/___ _ __
/ /_/ / __ \/ ___/ __/ / / / ___/ /_ / __ \| |/_/
/ __ / /_/ / / / /_/ /_/ (__ ) __/ / /_/ /> <
/_/ /_/\____/_/ \__/\__,_/____/_/ \____/_/|_|

6
ct/headers/palmr Normal file
View File

@@ -0,0 +1,6 @@
____ __
/ __ \____ _/ /___ ___ _____
/ /_/ / __ `/ / __ `__ \/ ___/
/ ____/ /_/ / / / / / / / /
/_/ \__,_/_/_/ /_/ /_/_/

View File

@@ -1,165 +0,0 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: tteck (tteckster) | Co-Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.home-assistant.io/
APP="Home Assistant-Core"
var_tags="${var_tags:-automation;smarthome}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-10}"
var_os="${var_os:-ubuntu}"
var_version="${var_version:-24.10}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
if ! lsb_release -d | grep -q "Ubuntu 24.10"; then
msg_error "Wrong OS detected. This script only supports Ubuntu 24.10."
msg_error "Read Guide: https://github.com/community-scripts/ProxmoxVE/discussions/1549"
exit 1
fi
check_container_storage
check_container_resources
if [[ ! -d /srv/homeassistant ]]; then
msg_error "No ${APP} Installation Found!"
exit 1
fi
setup_uv
IP=$(hostname -I | awk '{print $1}')
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "UPDATE" --radiolist --cancel-button Exit-Script "Spacebar = Select" 11 58 4 \
"1" "Update Core" ON \
"2" "Install HACS" OFF \
"3" "Install FileBrowser" OFF \
3>&1 1>&2 2>&3)
if [ "$UPD" == "1" ]; then
if (whiptail --backtitle "Proxmox VE Helper Scripts" --defaultno --title "SELECT BRANCH" --yesno "Use Beta Branch?" 10 58); then
clear
header_info
echo -e "${GN}Updating to Beta Version${CL}"
BR="--pre"
else
clear
header_info
echo -e "${GN}Updating to Stable Version${CL}"
BR=""
fi
msg_info "Stopping Home Assistant"
systemctl stop homeassistant
msg_ok "Stopped Home Assistant"
if [[ -d /srv/homeassistant/bin ]]; then
msg_info "Migrating to .venv-based structure"
$STD source /srv/homeassistant/bin/activate
PY_VER=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
$STD deactivate
mv /srv/homeassistant "/srv/homeassistant_backup_$PY_VER"
mkdir -p /srv/homeassistant
cd /srv/homeassistant
$STD uv python install 3.13
UV_PYTHON=$(uv python list | awk '/3\.13\.[0-9]+.*\/root\/.local/ {print $2; exit}')
if [[ -z "$UV_PYTHON" ]]; then
msg_error "No local Python 3.13 found via uv"
exit 1
fi
$STD uv venv .venv --python "$UV_PYTHON"
$STD source .venv/bin/activate
$STD uv pip install homeassistant mysqlclient psycopg2-binary isal webrtcvad wheel
mkdir -p /root/.homeassistant
msg_ok "Migration complete"
else
source /srv/homeassistant/.venv/bin/activate
fi
msg_info "Updating Home Assistant"
$STD uv pip install $BR --upgrade homeassistant
msg_ok "Updated Home Assistant"
msg_info "Starting Home Assistant"
if [[ -f /etc/systemd/system/homeassistant.service ]] && grep -q "/srv/homeassistant/bin/python3" /etc/systemd/system/homeassistant.service; then
sed -i 's|ExecStart=/srv/homeassistant/bin/python3|ExecStart=/srv/homeassistant/.venv/bin/python3|' /etc/systemd/system/homeassistant.service
sed -i 's|PATH=/srv/homeassistant/bin|PATH=/srv/homeassistant/.venv/bin|' /etc/systemd/system/homeassistant.service
$STD systemctl daemon-reload
fi
systemctl start homeassistant
sleep 5
msg_ok "Started Home Assistant"
msg_ok "Update Successful"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8123${CL}"
exit
fi
if [ "$UPD" == "2" ]; then
msg_info "Installing Home Assistant Community Store (HACS)"
$STD apt update
cd /root/.homeassistant
$STD bash <(curl -fsSL https://get.hacs.xyz)
msg_ok "Installed Home Assistant Community Store (HACS)"
echo -e "\n Reboot Home Assistant and clear browser cache then Add HACS integration.\n"
exit
fi
if [ "$UPD" == "3" ]; then
set +Eeuo pipefail
read -r -p "${TAB3}Would you like to use No Authentication? <y/N> " prompt
msg_info "Installing FileBrowser"
RELEASE=$(curl -fsSL https://api.github.com/repos/filebrowser/filebrowser/releases/latest | grep -o '"tag_name": ".*"' | sed 's/"//g' | sed 's/tag_name: //g')
$STD curl -fsSL https://github.com/filebrowser/filebrowser/releases/download/$RELEASE/linux-amd64-filebrowser.tar.gz | tar -xzv -C /usr/local/bin
if [[ "${prompt,,}" =~ ^(y|yes)$ ]]; then
$STD filebrowser config init -a '0.0.0.0'
$STD filebrowser config set -a '0.0.0.0'
$STD filebrowser config set --auth.method=noauth
$STD filebrowser users add ID 1 --perm.admin
else
$STD filebrowser config init -a '0.0.0.0'
$STD filebrowser config set -a '0.0.0.0'
$STD filebrowser users add admin helper-scripts.com --perm.admin
fi
msg_ok "Installed FileBrowser"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/filebrowser.service
[Unit]
Description=Filebrowser
After=network-online.target
[Service]
User=root
WorkingDirectory=/root/
ExecStart=/usr/local/bin/filebrowser -r /root/.homeassistant
[Install]
WantedBy=default.target
EOF
systemctl enable --now -q filebrowser.service
msg_ok "Created Service"
msg_ok "Completed Successfully!\n"
echo -e "FileBrowser should be reachable by going to the following URL.
${BL}http://$IP:8080${CL} admin|helper-scripts.com\n"
exit
fi
}
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}:8123${CL}"

View File

@@ -22,13 +22,14 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/homebox ]]; then if [[ ! -f /etc/systemd/system/homebox.service ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
if [[ -x /opt/homebox ]]; then if [[ -x /opt/homebox ]]; then
sed -i 's|/opt\b|/opt/homebox|g' /etc/systemd/system/homebox.service sed -i 's|/opt\b|/opt/homebox|g' /etc/systemd/system/homebox.service
sed -i 's|^ExecStart=/opt/homebox$|ExecStart=/opt/homebox/homebox|' /etc/systemd/system/homebox.service sed -i 's|^ExecStart=/opt/homebox$|ExecStart=/opt/homebox/homebox|' /etc/systemd/system/homebox.service
systemctl daemon-reload
fi fi
RELEASE=$(curl -fsSL https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -fsSL https://api.github.com/repos/sysadminsmedia/homebox/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
@@ -37,9 +38,11 @@ function update_script() {
systemctl stop homebox systemctl stop homebox
msg_ok "${APP} Stopped" msg_ok "${APP} Stopped"
[ -x /opt/homebox ] && rm -f /opt/homebox
fetch_and_deploy_gh_release "homebox" "sysadminsmedia/homebox" "prebuild" "latest" "/opt/homebox" "homebox_Linux_x86_64.tar.gz" fetch_and_deploy_gh_release "homebox" "sysadminsmedia/homebox" "prebuild" "latest" "/opt/homebox" "homebox_Linux_x86_64.tar.gz"
chmod +x /opt/homebox/homebox chmod +x /opt/homebox/homebox
[ -f /opt/.env ] && mv /opt/.env /opt/homebox/.env [ -f /opt/.env ] && mv /opt/.env /opt/homebox/.env
[ -d /opt/.data ] && mv /opt/.data /opt/homebox/.data
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
systemctl start homebox systemctl start homebox

73
ct/hortusfox.sh Normal file
View File

@@ -0,0 +1,73 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/danielbrendel/hortusfox-web
APP="HortusFox"
var_tags="${var_tags:-plants}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-5}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
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/hortusfox ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/danielbrendel/hortusfox-web/releases/latest | jq -r .tag_name | sed 's/^v//')
if [[ ! -f ~/.hortusfox ]] || [[ "${RELEASE}" != "$(cat ~/.hortusfox)" ]]; then
msg_info "Stopping Service"
systemctl stop apache2
msg_ok "Stopped Service"
msg_info "Backing up current HortusFox installation"
cd /opt
mv /opt/hortusfox/ /opt/hortusfox-backup
msg_ok "Backed up current HortusFox installation"
fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web"
msg_info "Updating HortusFox"
cd /opt/hortusfox
mv /opt/hortusfox-backup/.env /opt/hortusfox/.env
$STD composer install --no-dev --optimize-autoloader
$STD php asatru migrate --no-interaction
$STD php asatru plants:attributes
$STD php asatru calendar:classes
msg_ok "Updated HortusFox"
msg_info "Starting Service"
systemctl start apache2
msg_ok "Started Service"
msg_info "Cleaning up"
rm -r /opt/hortusfox-backup
msg_ok "Cleaned"
msg_ok "Updated Successfully"
else
msg_ok "No update required. ${APP} is already at v${RELEASE}"
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}${CL}"

View File

@@ -315,8 +315,7 @@ function compile_imagemagick() {
function compile_libvips() { function compile_libvips() {
SOURCE=$SOURCE_DIR/libvips SOURCE=$SOURCE_DIR/libvips
# : "${LIBVIPS_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/libvips.json)}" : "${LIBVIPS_REVISION:=$(jq -cr '.revision' "$BASE_DIR"/server/sources/libvips.json)}"
: "${LIBVIPS_REVISION:=8fa37a64547e392d3808eed8d72adab7e02b3d00}"
if [[ "${update:-}" ]] || [[ "$LIBVIPS_REVISION" != "$(grep 'libvips' ~/.immich_library_revisions | awk '{print $2}')" ]]; then if [[ "${update:-}" ]] || [[ "$LIBVIPS_REVISION" != "$(grep 'libvips' ~/.immich_library_revisions | awk '{print $2}')" ]]; then
msg_info "Recompiling libvips" msg_info "Recompiling libvips"
if [[ -d "$SOURCE" ]]; then rm -rf "$SOURCE"; fi if [[ -d "$SOURCE" ]]; then rm -rf "$SOURCE"; fi

View File

@@ -78,7 +78,7 @@ function update_script() {
cd /opt/karakeep/apps/cli cd /opt/karakeep/apps/cli
$STD pnpm install --frozen-lockfile $STD pnpm install --frozen-lockfile
$STD pnpm build $STD pnpm build
DATA_DIR="$(sed -n '/^DATA_DIR/p' /etc/karakeep/karakeep.env | awk -F= '{print $2}')" DATA_DIR="$(sed -n '/^DATA_DIR/p' /etc/karakeep/karakeep.env | awk -F= '{print $2}' | tr -d '="=')"
export DATA_DIR="${DATA_DIR:-/opt/karakeep_data}" export DATA_DIR="${DATA_DIR:-/opt/karakeep_data}"
cd /opt/karakeep/packages/db cd /opt/karakeep/packages/db
$STD pnpm migrate $STD pnpm migrate

View File

@@ -20,51 +20,46 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -f "/opt/kometa/kometa.py" ]]; then if [[ ! -d "/opt/kometa" ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/Kometa-Team/Kometa/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ "${RELEASE}" != "$(cat /opt/kometa_version.txt)" ]] || [[ ! -f /opt/kometa_version.txt ]]; then
msg_info "Updating $APP"
msg_info "Stopping $APP"
systemctl stop kometa
msg_ok "Stopped $APP"
msg_info "Updating $APP to ${RELEASE}"
cd /tmp
temp_file=$(mktemp)
RELEASE=$(curl -fsSL https://api.github.com/repos/Kometa-Team/Kometa/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSL "https://github.com/Kometa-Team/Kometa/archive/refs/tags/v${RELEASE}.tar.gz" -o ""$temp_file""
tar -xzf "$temp_file"
cp /opt/kometa/config/config.yml /opt
rm -rf /opt/kometa
mv Kometa-${RELEASE} /opt/kometa
cd /opt/kometa
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
$STD pip install -r requirements.txt --ignore-installed
mkdir -p config/assets
cp /opt/config.yml config/config.yml
echo "${RELEASE}" >/opt/kometa_version.txt
msg_ok "Updated $APP to ${RELEASE}"
msg_info "Starting $APP"
systemctl start kometa
msg_ok "Started $APP"
msg_info "Cleaning Up"
rm -f $temp_file
msg_ok "Cleanup Completed"
msg_ok "Update Successful"
else
msg_ok "No update required. ${APP} is already at ${RELEASE}"
fi
exit exit
fi
if ! command -v jq &>/dev/null; then
$STD apt-get install -y jq
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/Kometa-Team/Kometa/releases/latest | jq -r '.tag_name | sub("^v";"")')
if [[ "${RELEASE}" != "$(cat ~/.kometa 2>/dev/null)" ]] || [[ ! -f ~/.kometa ]]; then
msg_info "Stopping Service"
systemctl stop kometa
msg_ok "Stopped Service"
msg_info "Backing up data"
cp /opt/kometa/config/config.yml /opt
msg_ok "Backup completed"
PYTHON_VERSION="3.12" setup_uv
$STD uv python update-shell
fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa"
msg_info "Updating Kometa"
$STD uv pip install -r requirements.txt --system
mkdir -p config/assets
cp /opt/config.yml config/config.yml
msg_ok "Updated Kometa"
msg_info "Starting Service"
systemctl start kometa
msg_ok "Started Service"
msg_ok "Update Successful"
else
msg_ok "No update required. ${APP} is already at v${RELEASE}"
fi
exit
} }
start start
@@ -74,4 +69,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 the LXC at following IP address:${CL}" echo -e "${INFO}${YW} Access the LXC at following IP address:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}${IP}${CL}" echo -e "${TAB}${GATEWAY}${BGN}${IP}${CL}"

View File

@@ -24,10 +24,6 @@ function update_script() {
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/meilisearch ]]; then
msg_error "No Meilisearch Installation Found!"
exit
fi
UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Meilisearch Update" --radiolist --cancel-button Exit-Script "Spacebar = Select" 10 58 2 \ UPD=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "Meilisearch Update" --radiolist --cancel-button Exit-Script "Spacebar = Select" 10 58 2 \
"1" "Update Meilisearch" ON \ "1" "Update Meilisearch" ON \
"2" "Update Meilisearch-UI" OFF \ "2" "Update Meilisearch-UI" OFF \

80
ct/palmr.sh Normal file
View File

@@ -0,0 +1,80 @@
#!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2025 community-scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kyantech/Palmr
APP="Palmr"
var_tags="${var_tags:-files}"
var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-6}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
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/palmr_data ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/kyantech/palmr/releases/latest | jq '.tag_name' | sed 's/^v//')
if [[ "${RELEASE}" != "$(cat ~/.palmr 2>/dev/null)" ]] || [[ ! -f ~/.palmr ]]; then
msg_info "Stopping Services"
systemctl stop palmr-frontend palmr-backend
msg_ok "Stopped Services"
cp /opt/palmr/apps/server/.env /opt/palmr.env
rm -rf /opt/palmr
fetch_and_deploy_gh_release "Palmr" "kyantech/Palmr" "tarball" "latest" "/opt/palmr"
PNPM="$(jq -r '.packageManager' /opt/palmr/package.json)"
NODE_VERSION="20" NODE_MODULE="$PNPM" setup_nodejs
msg_info "Updating ${APP}"
cd /opt/palmr/apps/server
mv /opt/palmr.env /opt/palmr/apps/server/.env
$STD pnpm install
$STD pnpm dlx prisma generate
$STD pnpm dlx prisma migrate deploy
$STD pnpm dlx prisma db push
$STD pnpm build
cd /opt/palmr/apps/web
export NODE_ENV=production
export NEXT_TELEMETRY_DISABLED=1
mv ./.env.example ./.env
$STD pnpm install
$STD pnpm build
chown -R palmr:palmr /opt/palmr_data /opt/palmr
msg_ok "Updated $APP"
msg_info "Starting Services"
systemctl start palmr-backend palmr-frontend
msg_ok "Started Services"
msg_ok "Updated Successfully"
else
msg_ok "Already up to date"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:3000${CL}"

View File

@@ -9,7 +9,7 @@ APP="Paperless-AI"
var_tags="${var_tags:-ai;document}" var_tags="${var_tags:-ai;document}"
var_cpu="${var_cpu:-2}" var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}" var_ram="${var_ram:-2048}"
var_disk="${var_disk:-12}" var_disk="${var_disk:-20}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-12}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"

View File

@@ -41,6 +41,11 @@ function update_script() {
fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "*-linux-amd64.tar.gz" fetch_and_deploy_gh_release "pulse" "rcourtman/Pulse" "prebuild" "latest" "/opt/pulse" "*-linux-amd64.tar.gz"
chown -R pulse:pulse /etc/pulse /opt/pulse chown -R pulse:pulse /etc/pulse /opt/pulse
sed -i 's|pulse/pulse|pulse/bin/pulse|' /etc/systemd/system/pulse.service
systemctl daemon-reload
if [[ -f /opt/pulse/pulse ]]; then
rm -rf /opt/pulse/{pulse,frontend-modern}
fi
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
systemctl start pulse systemctl start pulse

View File

@@ -29,33 +29,26 @@ function update_script() {
if ! command -v jq &>/dev/null; then if ! command -v jq &>/dev/null; then
$STD apt-get install -y jq $STD apt-get install -y jq
fi fi
if ! command -v node >/dev/null || [[ "$(/usr/bin/env node -v | grep -oP '^v\K[0-9]+')" != "22" ]]; then
msg_info "Installing Node.js 22"
$STD apt-get purge -y nodejs
rm -f /etc/apt/sources.list.d/nodesource.list
rm -f /etc/apt/keyrings/nodesource.gpg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
$STD apt-get update
$STD apt-get install -y nodejs
$STD npm install -g pnpm@9.7.1
msg_ok "Node.js 22 installed"
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/msgbyte/tianji/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
msg_info "Stopping ${APP} Service"
systemctl stop tianji
msg_ok "Stopped ${APP} Service"
msg_info "Updating ${APP} to v${RELEASE}" RELEASE=$(curl -fsSL https://api.github.com/repos/msgbyte/tianji/releases/latest | jq -r '.tag_name' | sed 's/^v//')
cd /opt if [[ "${RELEASE}" != "$(cat ~/.tianji 2>/dev/null)" ]] || [[ ! -f ~/.tianji ]]; then
setup_uv
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
msg_info "Stopping Service"
systemctl stop tianji
msg_ok "Stopped Service"
msg_info "Backing up data"
cp /opt/tianji/src/server/.env /opt/.env cp /opt/tianji/src/server/.env /opt/.env
mv /opt/tianji /opt/tianji_bak mv /opt/tianji /opt/tianji_bak
curl -fsSL "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip" -o $(basename "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip") msg_ok "Backed up data"
$STD unzip v${RELEASE}.zip
mv tianji-${RELEASE} /opt/tianji fetch_and_deploy_gh_release "tianji" "msgbyte/tianji"
cd tianji
msg_info "Updating ${APP}"
cd /opt/tianji
export NODE_OPTIONS="--max_old_space_size=4096" export NODE_OPTIONS="--max_old_space_size=4096"
$STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile $STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile
$STD pnpm build:static $STD pnpm build:static
@@ -66,15 +59,17 @@ function update_script() {
mv /opt/.env /opt/tianji/src/server/.env mv /opt/.env /opt/tianji/src/server/.env
cd src/server cd src/server
$STD pnpm db:migrate:apply $STD pnpm db:migrate:apply
echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}"
msg_ok "Updated ${APP} to v${RELEASE}"
msg_info "Updating AppRise"
$STD uv pip install apprise cryptography --system
msg_ok "Updated AppRise"
msg_info "Starting ${APP}" msg_info "Starting ${APP}"
systemctl start tianji systemctl start tianji
msg_ok "Started ${APP}" msg_ok "Started ${APP}"
msg_info "Cleaning up" msg_info "Cleaning up"
rm -R /opt/v${RELEASE}.zip
rm -rf /opt/tianji_bak rm -rf /opt/tianji_bak
rm -rf /opt/tianji/src/client rm -rf /opt/tianji/src/client
rm -rf /opt/tianji/website rm -rf /opt/tianji/website

View File

@@ -9,7 +9,7 @@ APP="Vaultwarden"
var_tags="${var_tags:-password-manager}" var_tags="${var_tags:-password-manager}"
var_cpu="${var_cpu:-4}" var_cpu="${var_cpu:-4}"
var_ram="${var_ram:-6144}" var_ram="${var_ram:-6144}"
var_disk="${var_disk:-6}" var_disk="${var_disk:-20}"
var_os="${var_os:-debian}" var_os="${var_os:-debian}"
var_version="${var_version:-12}" var_version="${var_version:-12}"
var_unprivileged="${var_unprivileged:-1}" var_unprivileged="${var_unprivileged:-1}"

View File

@@ -10,7 +10,7 @@
"privileged": false, "privileged": false,
"interface_port": 80, "interface_port": 80,
"documentation": null, "documentation": null,
"website": "https://it-tools.tech/", "website": "https://sharevb-it-tools.vercel.app/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/it-tools.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/it-tools.webp",
"config_path": "", "config_path": "",
"description": "IT-Tools is a web-based suite of utilities designed to streamline and simplify various IT tasks, providing tools for developers and system administrators to manage their workflows efficiently.", "description": "IT-Tools is a web-based suite of utilities designed to streamline and simplify various IT tasks, providing tools for developers and system administrators to manage their workflows efficiently.",

View File

@@ -6,7 +6,7 @@
], ],
"date_created": "2024-05-02", "date_created": "2024-05-02",
"type": "ct", "type": "ct",
"updateable": false, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": 6767, "interface_port": 6767,
"documentation": "https://wiki.bazarr.media/", "documentation": "https://wiki.bazarr.media/",

View File

@@ -6,7 +6,7 @@
], ],
"date_created": "2024-05-02", "date_created": "2024-05-02",
"type": "ct", "type": "ct",
"updateable": false, "updateable": true,
"privileged": false, "privileged": false,
"interface_port": null, "interface_port": null,
"documentation": null, "documentation": null,

View File

@@ -13,7 +13,7 @@
"website": "https://docmost.com/", "website": "https://docmost.com/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/docmost.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/docmost.webp",
"config_path": "/opt/docmost/.env", "config_path": "/opt/docmost/.env",
"description": "Open-source collaborative wiki and documentation software Create, collaborate, and share knowledge seamlessly with Docmost. Ideal for managing your wiki, knowledge-base, documentation and a lot more.", "description": "Open-source collaborative wiki and documentation software. Create, collaborate, and share knowledge seamlessly with Docmost. Ideal for managing your wiki, knowledge-base, documentation and a lot more.",
"install_methods": [ "install_methods": [
{ {
"type": "default", "type": "default",

View File

@@ -1,52 +0,0 @@
{
"name": "Home Assistant Core",
"slug": "homeassistant-core",
"categories": [
16
],
"date_created": "2025-01-17",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 8123,
"documentation": "https://www.home-assistant.io/docs/",
"website": "https://www.home-assistant.io/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/home-assistant.webp",
"config_path": "/root/.homeassistant",
"description": "A standalone installation of Home Assistant Core refers to a setup where the Home Assistant Core software is installed directly on a device or operating system, without the use of Docker containers. This provides a simpler, but less flexible and scalable solution, as the software is tightly coupled with the underlying system.",
"install_methods": [
{
"type": "default",
"script": "ct/homeassistant-core.sh",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 10,
"os": "ubuntu",
"version": "24.10"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "If the LXC is created Privileged, the script will automatically set up USB passthrough.",
"type": "warning"
},
{
"text": "Requires PVE 8.2.2 with kernel 6.8.4-3-pve or newer",
"type": "warning"
},
{
"text": "Deprecation-Warning: This Core-based setup will be deprecated by August 2025. Use Home Assistant OS is strongly recommended to ensure long-term stability and updates.",
"type": "warning"
},
{
"text": "config path: `/root/.homeassistant`",
"type": "info"
}
]
}

View File

@@ -0,0 +1,40 @@
{
"name": "HortusFox",
"slug": "hortusfox",
"categories": [
24
],
"type": "ct",
"updateable": true,
"privileged": false,
"date_created": "2025-08-08",
"config_path": "/opt/hortusfox/.env",
"interface_port": 80,
"documentation": "https://github.com/danielbrendel/hortusfox-web",
"website": "https://www.hortusfox.com/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/hortusfox.webp",
"description": "HortusFox is a collaborative plant management system for plant enthusiasts. Manage, document and track your entire plant collection self-hosted and privacy-friendly.",
"install_methods": [
{
"type": "default",
"script": "ct/hortusfox.sh",
"resources": {
"cpu": 2,
"ram": 2048,
"hdd": 5,
"os": "Debian",
"version": "12"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "Login Credentials : `cat ~/hortusfox.creds`",
"type": "info"
}
]
}

View File

@@ -0,0 +1,44 @@
{
"name": "Palmr",
"slug": "palmr",
"categories": [
11
],
"date_created": "2025-08-08",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 3000,
"documentation": "https://palmr.kyantech.com.br/docs/3.1-beta",
"config_path": "/opt/palmr/apps/server/.env, /opt/palmr/apps/web/.env",
"website": "https://palmr.kyantech.com.br/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/palmr.webp",
"description": "Palmr is a fast and secure platform for sharing files, built with performance and privacy in mind.",
"install_methods": [
{
"type": "default",
"script": "ct/palmr.sh",
"resources": {
"cpu": 4,
"ram": 4096,
"hdd": 6,
"os": "Debian",
"version": "12"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "To use a bind mount for storage, create symlinks to your mount for both `uploads` and `temp-uploads` in `/opt/palmr_data`",
"type": "info"
},
{
"text": "To use Palmr with a reverse proxy, uncomment `SECURE_SITE` in `/opt/palmr/apps/server/.env`",
"type": "info"
}
]
}

View File

@@ -21,7 +21,7 @@
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 2048,
"hdd": 12, "hdd": 20,
"os": "debian", "os": "debian",
"version": "12" "version": "12"
} }

View File

@@ -12,7 +12,7 @@
"documentation": null, "documentation": null,
"website": "https://github.com/rcourtman/Pulse", "website": "https://github.com/rcourtman/Pulse",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/pulse.webp", "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/pulse.webp",
"config_path": "/opt/pulse/.env", "config_path": "/etc/pulse",
"description": "A lightweight monitoring application for Proxmox VE that displays real-time status for VMs and containers via a simple web interface.", "description": "A lightweight monitoring application for Proxmox VE that displays real-time status for VMs and containers via a simple web interface.",
"install_methods": [ "install_methods": [
{ {

View File

@@ -21,7 +21,7 @@
"resources": { "resources": {
"cpu": 4, "cpu": 4,
"ram": 6144, "ram": 6144,
"hdd": 6, "hdd": 20,
"os": "debian", "os": "debian",
"version": "12" "version": "12"
} }

View File

@@ -1,4 +1,219 @@
[ [
{
"name": "Luligu/matterbridge",
"version": "3.2.1",
"date": "2025-08-10T23:48:06Z"
},
{
"name": "advplyr/audiobookshelf",
"version": "v2.28.0",
"date": "2025-08-10T23:09:55Z"
},
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.9",
"date": "2025-08-10T20:17:50Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.1.7",
"date": "2025-08-10T20:10:13Z"
},
{
"name": "fallenbagel/jellyseerr",
"version": "preview-dns-cache-manager",
"date": "2025-08-10T19:53:44Z"
},
{
"name": "pocket-id/pocket-id",
"version": "v1.7.0",
"date": "2025-08-10T18:10:25Z"
},
{
"name": "booklore-app/booklore",
"version": "v0.36.1",
"date": "2025-08-10T18:02:35Z"
},
{
"name": "evcc-io/evcc",
"version": "0.207.2",
"date": "2025-08-10T14:40:21Z"
},
{
"name": "blakeblackshear/frigate",
"version": "v0.14.1",
"date": "2024-08-29T22:32:51Z"
},
{
"name": "ioBroker/ioBroker",
"version": "1012-08-09",
"date": "2025-08-10T13:50:58Z"
},
{
"name": "open-webui/open-webui",
"version": "v0.6.21",
"date": "2025-08-10T13:40:10Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.2.21",
"date": "2025-07-17T04:46:25Z"
},
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3-beta.10",
"date": "2025-07-15T06:07:03Z"
},
{
"name": "diced/zipline",
"version": "v4.2.3",
"date": "2025-08-10T05:53:43Z"
},
{
"name": "Jackett/Jackett",
"version": "v0.22.2256",
"date": "2025-08-10T05:51:14Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v3.6.2",
"date": "2025-07-17T12:08:03Z"
},
{
"name": "outline/outline",
"version": "v0.86.1",
"date": "2025-08-09T22:05:10Z"
},
{
"name": "runtipi/runtipi",
"version": "nightly",
"date": "2025-08-09T21:57:09Z"
},
{
"name": "wizarrrr/wizarr",
"version": "2025.8.2",
"date": "2025-08-09T18:11:46Z"
},
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v1.2.0",
"date": "2025-08-09T14:30:52Z"
},
{
"name": "Dolibarr/dolibarr",
"version": "22.0.0",
"date": "2025-08-09T12:48:17Z"
},
{
"name": "authelia/authelia",
"version": "v4.39.6",
"date": "2025-08-09T08:11:44Z"
},
{
"name": "semaphoreui/semaphore",
"version": "v2.16.2",
"date": "2025-08-09T07:49:02Z"
},
{
"name": "pocketbase/pocketbase",
"version": "v0.29.2",
"date": "2025-08-09T07:28:08Z"
},
{
"name": "gethomepage/homepage",
"version": "v1.4.4",
"date": "2025-08-09T02:35:14Z"
},
{
"name": "duplicati/duplicati",
"version": "v2.1.1.100-2.1.1.100_canary_2025-08-08",
"date": "2025-08-08T22:04:15Z"
},
{
"name": "mongodb/mongo",
"version": "r6.0.26-rc0",
"date": "2025-08-08T22:06:18Z"
},
{
"name": "kimai/kimai",
"version": "2.38.0",
"date": "2025-08-08T21:47:19Z"
},
{
"name": "homarr-labs/homarr",
"version": "v1.32.0",
"date": "2025-08-08T19:17:28Z"
},
{
"name": "HabitRPG/habitica",
"version": "v5.38.2",
"date": "2025-08-08T19:09:53Z"
},
{
"name": "Brandawg93/PeaNUT",
"version": "v5.11.0",
"date": "2025-08-08T17:52:12Z"
},
{
"name": "bunkerity/bunkerweb",
"version": "v1.6.3",
"date": "2025-08-08T17:41:35Z"
},
{
"name": "keycloak/keycloak",
"version": "26.2.7",
"date": "2025-08-07T08:19:29Z"
},
{
"name": "n8n-io/n8n",
"version": "n8n@1.105.4",
"date": "2025-08-07T13:58:23Z"
},
{
"name": "docker/compose",
"version": "v2.39.2",
"date": "2025-08-08T16:06:06Z"
},
{
"name": "cloudflare/cloudflared",
"version": "2025.8.0",
"date": "2025-08-08T15:50:42Z"
},
{
"name": "zitadel/zitadel",
"version": "v3.3.3",
"date": "2025-08-08T14:29:30Z"
},
{
"name": "nzbgetcom/nzbget",
"version": "v25.2",
"date": "2025-07-04T08:21:42Z"
},
{
"name": "wazuh/wazuh",
"version": "coverity-w32-4.13.0",
"date": "2025-07-30T08:30:15Z"
},
{
"name": "emqx/emqx",
"version": "e6.0.0-M2.202508-beta.1",
"date": "2025-08-08T10:29:09Z"
},
{
"name": "fuma-nama/fumadocs",
"version": "fumadocs-openapi@9.1.10",
"date": "2025-08-08T07:29:07Z"
},
{
"name": "mattermost/mattermost",
"version": "server/public/v0.1.16",
"date": "2025-07-28T22:46:46Z"
},
{
"name": "apache/tika",
"version": "3.2.2",
"date": "2025-08-08T03:40:40Z"
},
{ {
"name": "MariaDB/server", "name": "MariaDB/server",
"version": "mariadb-12.0.2", "version": "mariadb-12.0.2",
@@ -9,36 +224,11 @@
"version": "v0.11.4", "version": "v0.11.4",
"date": "2025-08-07T21:23:55Z" "date": "2025-08-07T21:23:55Z"
}, },
{
"name": "fallenbagel/jellyseerr",
"version": "preview-seerr",
"date": "2025-08-07T21:00:53Z"
},
{
"name": "semaphoreui/semaphore",
"version": "v2.16.1",
"date": "2025-08-07T20:54:27Z"
},
{ {
"name": "MediaBrowser/Emby.Releases", "name": "MediaBrowser/Emby.Releases",
"version": "4.9.1.2", "version": "4.9.1.2",
"date": "2025-06-26T22:08:00Z" "date": "2025-06-26T22:08:00Z"
}, },
{
"name": "firefly-iii/firefly-iii",
"version": "v6.2.21",
"date": "2025-07-17T04:46:25Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.0.12",
"date": "2025-08-07T16:14:05Z"
},
{
"name": "mongodb/mongo",
"version": "r7.0.23",
"date": "2025-08-07T17:25:30Z"
},
{ {
"name": "tailscale/tailscale", "name": "tailscale/tailscale",
"version": "v1.86.4", "version": "v1.86.4",
@@ -49,11 +239,6 @@
"version": "jenkins-2.522", "version": "jenkins-2.522",
"date": "2025-08-05T15:33:22Z" "date": "2025-08-05T15:33:22Z"
}, },
{
"name": "bunkerity/bunkerweb",
"version": "v1.6.3",
"date": "2025-08-07T16:17:27Z"
},
{ {
"name": "rabbitmq/rabbitmq-server", "name": "rabbitmq/rabbitmq-server",
"version": "v4.1.3", "version": "v4.1.3",
@@ -79,21 +264,6 @@
"version": "v5.6.1", "version": "v5.6.1",
"date": "2025-08-07T14:46:03Z" "date": "2025-08-07T14:46:03Z"
}, },
{
"name": "n8n-io/n8n",
"version": "n8n@1.105.4",
"date": "2025-08-07T13:58:23Z"
},
{
"name": "fuma-nama/fumadocs",
"version": "fumadocs-mdx@11.7.4",
"date": "2025-08-07T13:56:33Z"
},
{
"name": "blakeblackshear/frigate",
"version": "v0.14.1",
"date": "2024-08-29T22:32:51Z"
},
{ {
"name": "syncthing/syncthing", "name": "syncthing/syncthing",
"version": "v1.30.0", "version": "v1.30.0",
@@ -104,46 +274,21 @@
"version": "10.0.19", "version": "10.0.19",
"date": "2025-07-16T09:45:14Z" "date": "2025-07-16T09:45:14Z"
}, },
{
"name": "mattermost/mattermost",
"version": "server/public/v0.1.16",
"date": "2025-07-28T22:46:46Z"
},
{
"name": "keycloak/keycloak",
"version": "26.2.7",
"date": "2025-08-07T08:19:29Z"
},
{ {
"name": "crowdsecurity/crowdsec", "name": "crowdsecurity/crowdsec",
"version": "v1.6.11", "version": "v1.6.11",
"date": "2025-07-22T12:11:38Z" "date": "2025-07-22T12:11:38Z"
}, },
{
"name": "Jackett/Jackett",
"version": "v0.22.2235",
"date": "2025-08-07T05:48:41Z"
},
{ {
"name": "cloudreve/cloudreve", "name": "cloudreve/cloudreve",
"version": "4.4.1", "version": "4.4.1",
"date": "2025-08-07T04:25:37Z" "date": "2025-08-07T04:25:37Z"
}, },
{
"name": "steveiliop56/tinyauth",
"version": "v3.6.2",
"date": "2025-07-17T12:08:03Z"
},
{ {
"name": "influxdata/influxdb", "name": "influxdata/influxdb",
"version": "v1.12.2rc2", "version": "v1.12.2rc2",
"date": "2025-08-06T23:12:18Z" "date": "2025-08-06T23:12:18Z"
}, },
{
"name": "booklore-app/booklore",
"version": "v0.35.1",
"date": "2025-08-06T21:30:17Z"
},
{ {
"name": "Athou/commafeed", "name": "Athou/commafeed",
"version": "5.11.0", "version": "5.11.0",
@@ -169,11 +314,6 @@
"version": "v4.4.6", "version": "v4.4.6",
"date": "2025-08-06T17:48:36Z" "date": "2025-08-06T17:48:36Z"
}, },
{
"name": "apache/tika",
"version": "3.2.2-rc1",
"date": "2025-08-06T16:59:43Z"
},
{ {
"name": "Graylog2/graylog2-server", "name": "Graylog2/graylog2-server",
"version": "6.1.14", "version": "6.1.14",
@@ -194,16 +334,6 @@
"version": "v1.28.3", "version": "v1.28.3",
"date": "2025-08-06T12:32:02Z" "date": "2025-08-06T12:32:02Z"
}, },
{
"name": "outline/outline",
"version": "v0.86.0",
"date": "2025-08-06T12:20:31Z"
},
{
"name": "nzbgetcom/nzbget",
"version": "v25.2",
"date": "2025-07-04T08:21:42Z"
},
{ {
"name": "openobserve/openobserve", "name": "openobserve/openobserve",
"version": "v0.15.0-rc5", "version": "v0.15.0-rc5",
@@ -224,16 +354,6 @@
"version": "v1.65.0", "version": "v1.65.0",
"date": "2025-08-05T21:12:35Z" "date": "2025-08-05T21:12:35Z"
}, },
{
"name": "HabitRPG/habitica",
"version": "v5.38.1",
"date": "2025-08-05T19:33:40Z"
},
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.7.1",
"date": "2025-08-05T17:30:05Z"
},
{ {
"name": "WordPress/WordPress", "name": "WordPress/WordPress",
"version": "4.7.30", "version": "4.7.30",
@@ -259,11 +379,6 @@
"version": "4.5.2", "version": "4.5.2",
"date": "2025-07-09T19:08:28Z" "date": "2025-07-09T19:08:28Z"
}, },
{
"name": "zitadel/zitadel",
"version": "v2.71.14",
"date": "2025-08-05T09:48:52Z"
},
{ {
"name": "binwiederhier/ntfy", "name": "binwiederhier/ntfy",
"version": "v2.14.0", "version": "v2.14.0",
@@ -289,21 +404,6 @@
"version": "v1.24.4", "version": "v1.24.4",
"date": "2025-08-04T18:58:27Z" "date": "2025-08-04T18:58:27Z"
}, },
{
"name": "runtipi/runtipi",
"version": "nightly",
"date": "2025-08-04T18:08:42Z"
},
{
"name": "Dolibarr/dolibarr",
"version": "22.0.0",
"date": "2025-08-04T16:23:05Z"
},
{
"name": "wizarrrr/wizarr",
"version": "2025.8.1",
"date": "2025-08-04T15:23:03Z"
},
{ {
"name": "VictoriaMetrics/VictoriaMetrics", "name": "VictoriaMetrics/VictoriaMetrics",
"version": "pmm-6401-v1.123.0", "version": "pmm-6401-v1.123.0",
@@ -334,11 +434,6 @@
"version": "v1.14.0", "version": "v1.14.0",
"date": "2025-08-04T10:55:20Z" "date": "2025-08-04T10:55:20Z"
}, },
{
"name": "evcc-io/evcc",
"version": "0.207.1",
"date": "2025-08-04T06:56:14Z"
},
{ {
"name": "henrygd/beszel", "name": "henrygd/beszel",
"version": "v0.12.3", "version": "v0.12.3",
@@ -369,11 +464,6 @@
"version": "mcp/v0.26.0", "version": "mcp/v0.26.0",
"date": "2025-08-03T16:21:47Z" "date": "2025-08-03T16:21:47Z"
}, },
{
"name": "gethomepage/homepage",
"version": "v1.4.3",
"date": "2025-08-03T15:19:16Z"
},
{ {
"name": "Lidarr/Lidarr", "name": "Lidarr/Lidarr",
"version": "v2.12.4.4658", "version": "v2.12.4.4658",
@@ -384,11 +474,6 @@
"version": "v5.26.2.10099", "version": "v5.26.2.10099",
"date": "2025-06-11T20:10:39Z" "date": "2025-06-11T20:10:39Z"
}, },
{
"name": "advplyr/audiobookshelf",
"version": "v2.27.0",
"date": "2025-08-02T23:35:37Z"
},
{ {
"name": "TwiN/gatus", "name": "TwiN/gatus",
"version": "v5.21.0", "version": "v5.21.0",
@@ -414,21 +499,11 @@
"version": "v4.2.5", "version": "v4.2.5",
"date": "2025-08-02T08:58:21Z" "date": "2025-08-02T08:58:21Z"
}, },
{
"name": "pocketbase/pocketbase",
"version": "v0.29.1",
"date": "2025-08-02T05:51:37Z"
},
{ {
"name": "docmost/docmost", "name": "docmost/docmost",
"version": "v0.22.2", "version": "v0.22.2",
"date": "2025-08-01T23:27:06Z" "date": "2025-08-01T23:27:06Z"
}, },
{
"name": "homarr-labs/homarr",
"version": "v1.31.0",
"date": "2025-08-01T19:18:16Z"
},
{ {
"name": "Koenkk/zigbee2mqtt", "name": "Koenkk/zigbee2mqtt",
"version": "2.6.0", "version": "2.6.0",
@@ -439,11 +514,6 @@
"version": "v1.137.3", "version": "v1.137.3",
"date": "2025-08-01T15:06:36Z" "date": "2025-08-01T15:06:36Z"
}, },
{
"name": "Luligu/matterbridge",
"version": "3.2.0",
"date": "2025-08-01T14:49:29Z"
},
{ {
"name": "documenso/documenso", "name": "documenso/documenso",
"version": "v1.12.2-rc.3", "version": "v1.12.2-rc.3",
@@ -484,11 +554,6 @@
"version": "2.0.1", "version": "2.0.1",
"date": "2025-07-31T17:29:38Z" "date": "2025-07-31T17:29:38Z"
}, },
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v1.1.1",
"date": "2025-07-31T12:16:54Z"
},
{ {
"name": "coder/code-server", "name": "coder/code-server",
"version": "v4.102.3", "version": "v4.102.3",
@@ -534,16 +599,6 @@
"version": "7.4.1", "version": "7.4.1",
"date": "2025-07-30T08:43:04Z" "date": "2025-07-30T08:43:04Z"
}, },
{
"name": "wazuh/wazuh",
"version": "coverity-w32-4.13.0",
"date": "2025-07-30T08:30:15Z"
},
{
"name": "morpheus65535/bazarr",
"version": "v1.5.3-beta.10",
"date": "2025-07-15T06:07:03Z"
},
{ {
"name": "OliveTin/OliveTin", "name": "OliveTin/OliveTin",
"version": "2025.7.29", "version": "2025.7.29",
@@ -564,11 +619,6 @@
"version": "4.1.0", "version": "4.1.0",
"date": "2025-07-29T15:15:26Z" "date": "2025-07-29T15:15:26Z"
}, },
{
"name": "diced/zipline",
"version": "v4.2.1",
"date": "2025-07-28T19:25:48Z"
},
{ {
"name": "navidrome/navidrome", "name": "navidrome/navidrome",
"version": "v0.58.0", "version": "v0.58.0",
@@ -599,11 +649,6 @@
"version": "2.1.3", "version": "2.1.3",
"date": "2025-07-26T14:19:00Z" "date": "2025-07-26T14:19:00Z"
}, },
{
"name": "emqx/emqx",
"version": "e6.0.0-M2.202508-alpha.1",
"date": "2025-07-25T16:01:00Z"
},
{ {
"name": "heiher/hev-socks5-server", "name": "heiher/hev-socks5-server",
"version": "2.9.0", "version": "2.9.0",
@@ -614,16 +659,6 @@
"version": "v12.0.1", "version": "v12.0.1",
"date": "2025-07-25T11:54:30Z" "date": "2025-07-25T11:54:30Z"
}, },
{
"name": "Brandawg93/PeaNUT",
"version": "v5.10.0",
"date": "2025-07-24T23:33:09Z"
},
{
"name": "docker/compose",
"version": "v2.39.1",
"date": "2025-07-24T17:02:01Z"
},
{ {
"name": "grokability/snipe-it", "name": "grokability/snipe-it",
"version": "v8.2.1", "version": "v8.2.1",
@@ -694,11 +729,6 @@
"version": "5.0.0", "version": "5.0.0",
"date": "2025-07-21T07:16:58Z" "date": "2025-07-21T07:16:58Z"
}, },
{
"name": "pocket-id/pocket-id",
"version": "v1.6.4",
"date": "2025-07-21T05:53:30Z"
},
{ {
"name": "linkwarden/linkwarden", "name": "linkwarden/linkwarden",
"version": "v2.11.5", "version": "v2.11.5",
@@ -714,16 +744,6 @@
"version": "v1.0.0-beta15", "version": "v1.0.0-beta15",
"date": "2025-07-19T19:46:52Z" "date": "2025-07-19T19:46:52Z"
}, },
{
"name": "open-webui/open-webui",
"version": "v0.6.18",
"date": "2025-07-19T19:26:14Z"
},
{
"name": "duplicati/duplicati",
"version": "v2.1.1.0-2.1.1.0_experimental_2025-07-17",
"date": "2025-07-17T20:11:33Z"
},
{ {
"name": "wavelog/wavelog", "name": "wavelog/wavelog",
"version": "2.0.7", "version": "2.0.7",
@@ -784,11 +804,6 @@
"version": "1.3.11", "version": "1.3.11",
"date": "2025-07-13T13:33:48Z" "date": "2025-07-13T13:33:48Z"
}, },
{
"name": "authelia/authelia",
"version": "v4.39.5",
"date": "2025-07-13T06:12:47Z"
},
{ {
"name": "Ombi-app/Ombi", "name": "Ombi-app/Ombi",
"version": "v4.47.1", "version": "v4.47.1",
@@ -859,16 +874,6 @@
"version": "v0.8.7", "version": "v0.8.7",
"date": "2025-07-05T20:08:58Z" "date": "2025-07-05T20:08:58Z"
}, },
{
"name": "kimai/kimai",
"version": "2.37.0",
"date": "2025-07-04T14:49:43Z"
},
{
"name": "cloudflare/cloudflared",
"version": "2025.7.0",
"date": "2025-07-03T17:08:15Z"
},
{ {
"name": "qbittorrent/qBittorrent", "name": "qbittorrent/qBittorrent",
"version": "release-5.1.2", "version": "release-5.1.2",
@@ -1014,11 +1019,6 @@
"version": "v1.5.8", "version": "v1.5.8",
"date": "2025-06-07T11:39:10Z" "date": "2025-06-07T11:39:10Z"
}, },
{
"name": "ioBroker/ioBroker",
"version": "2025-05-31",
"date": "2025-06-06T14:50:56Z"
},
{ {
"name": "juanfont/headscale", "name": "juanfont/headscale",
"version": "v0.26.1", "version": "v0.26.1",

View File

@@ -14,17 +14,17 @@ network_check
update_os update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apk add nginx $STD apk add --no-cache \
nginx \
python3
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing IT-Tools" msg_info "Installing IT-Tools"
RELEASE=$(curl -fsSL https://api.github.com/repos/CorentinTh/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4) RELEASE=$(curl -fsSL https://api.github.com/repos/sharevb/it-tools/releases/latest | grep '"tag_name":' | cut -d '"' -f4)
DOWNLOAD_URL="https://github.com/CorentinTh/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip" curl -fsSL "https://github.com/sharevb/it-tools/releases/download/${RELEASE}/it-tools-${RELEASE#v}.zip" -o it-tools.zip
curl -fsSL -o it-tools.zip "$DOWNLOAD_URL"
mkdir -p /usr/share/nginx/html mkdir -p /usr/share/nginx/html
$STD unzip it-tools.zip -d /tmp/it-tools $STD unzip it-tools.zip -d /tmp/
cp -r /tmp/it-tools/dist/* /usr/share/nginx/html mv /tmp/dist/* /usr/share/nginx/html
cat <<'EOF' >/etc/nginx/http.d/default.conf cat <<'EOF' >/etc/nginx/http.d/default.conf
server { server {
listen 80; listen 80;
@@ -39,14 +39,14 @@ server {
EOF EOF
$STD rc-update add nginx default $STD rc-update add nginx default
$STD rc-service nginx start $STD rc-service nginx start
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
msg_ok "Installed IT-Tools" msg_ok "Installed IT-Tools"
motd_ssh motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf /tmp/it-tools rm -rf /tmp/dist
rm -f it-tools.zip rm -f it-tools.zip
$STD apk cache clean $STD apk cache clean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -27,16 +27,16 @@ msg_ok "Installed Dependencies"
msg_info "Installing Python Dependencies" msg_info "Installing Python Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
python3-pip \
python3-ldap \ python3-ldap \
python3-msgpack \ python3-msgpack \
python3-regex python3-regex
msg_ok "Installed Python Dependencies" msg_ok "Installed Python Dependencies"
NODE_VERSION="22" setup_nodejs NODE_VERSION="22" setup_nodejs
PYTHON_VERSION="3.13" setup_uv
msg_info "Installing Playwright" msg_info "Installing Playwright"
$STD pip install playwright $STD uv pip install playwright --system
$STD playwright install-deps chromium $STD playwright install-deps chromium
msg_ok "Installed Playwright" msg_ok "Installed Playwright"
@@ -45,7 +45,7 @@ mkdir -p /opt/archivebox/{data,.npm,.cache,.local}
$STD adduser --system --shell /bin/bash --gecos 'Archive Box User' --group --disabled-password --home /home/archivebox archivebox $STD adduser --system --shell /bin/bash --gecos 'Archive Box User' --group --disabled-password --home /home/archivebox archivebox
chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local} chown -R archivebox:archivebox /opt/archivebox/{data,.npm,.cache,.local}
chmod -R 755 /opt/archivebox/data chmod -R 755 /opt/archivebox/data
$STD pip install archivebox $STD uv pip install archivebox --system
cd /opt/archivebox/data cd /opt/archivebox/data
expect <<EOF expect <<EOF
set timeout -1 set timeout -1

View File

@@ -16,17 +16,17 @@ update_os
msg_info "Setup Python3" msg_info "Setup Python3"
$STD apt-get install -y \ $STD apt-get install -y \
python3 \ python3 \
python3-dev \ python3-dev
python3-pip
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
msg_ok "Setup Python3" msg_ok "Setup Python3"
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "bazarr" "morpheus65535/bazarr" "prebuild" "latest" "/opt/bazarr" "bazarr.zip"
msg_info "Installing Bazarr" msg_info "Installing Bazarr"
mkdir -p /var/lib/bazarr/ mkdir -p /var/lib/bazarr/
curl -fsSL "https://github.com/morpheus65535/bazarr/releases/latest/download/bazarr.zip" -o "bazarr.zip"
$STD unzip bazarr -d /opt/bazarr
chmod 775 /opt/bazarr /var/lib/bazarr/ chmod 775 /opt/bazarr /var/lib/bazarr/
$STD python3 -m pip install -q -r /opt/bazarr/requirements.txt sed -i.bak 's/--only-binary=Pillow//g' /opt/bazarr/requirements.txt
$STD uv pip install -r /opt/bazarr/requirements.txt --system
msg_ok "Installed Bazarr" msg_ok "Installed Bazarr"
msg_info "Creating Service" msg_info "Creating Service"
@@ -56,7 +56,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -rf bazarr.zip
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -1,105 +0,0 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.home-assistant.io/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y \
git \
ca-certificates \
bluez \
libtiff6 \
tzdata \
libffi-dev \
libssl-dev \
libjpeg-dev \
zlib1g-dev \
autoconf \
build-essential \
libopenjp2-7 \
libturbojpeg0-dev \
ffmpeg \
liblapack3 \
liblapack-dev \
dbus-broker \
libpcap-dev \
libavdevice-dev \
libavformat-dev \
libavcodec-dev \
libavutil-dev \
libavfilter-dev \
libmariadb-dev-compat \
libatlas-base-dev \
software-properties-common \
libmariadb-dev \
pkg-config
msg_ok "Installed Dependencies"
setup_uv
msg_info "Setup Python3"
$STD apt-get install -y \
python3.13 \
python3.13-dev \
python3.13-venv
msg_ok "Setup Python3"
msg_info "Preparing Python 3.13 for uv"
$STD uv python install 3.13
UV_PYTHON=$(uv python list | awk '/3\.13\.[0-9]+.*\/root\/.local/ {print $2; exit}')
if [[ -z "$UV_PYTHON" ]]; then
msg_error "No local Python 3.13 found via uv"
exit 1
fi
msg_ok "Prepared Python 3.13"
msg_info "Setting up Home Assistant-Core environment"
rm -rf /srv/homeassistant
mkdir -p /srv/homeassistant
cd /srv/homeassistant
$STD uv venv .venv --python "$UV_PYTHON"
source .venv/bin/activate
msg_ok "Created virtual environment"
msg_info "Installing Home Assistant-Core"
$STD uv pip install homeassistant mysqlclient psycopg2-binary isal webrtcvad wheel
mkdir -p /root/.homeassistant
msg_ok "Installed Home Assistant-Core"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/homeassistant.service
[Unit]
Description=Home Assistant
After=network-online.target
[Service]
Type=simple
WorkingDirectory=/root/.homeassistant
Environment="PATH=/srv/homeassistant/.venv/bin:/usr/local/bin:/usr/bin"
ExecStart=/srv/homeassistant/.venv/bin/python3 -m homeassistant --config /root/.homeassistant
Restart=always
RestartForceExitStatus=100
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now homeassistant
msg_ok "Created Service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@@ -0,0 +1,103 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2025 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/danielbrendel/hortusfox-web
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Dependencies"
$STD apt-get install -y apache2
msg_ok "Installed Dependencies"
PHP_MODULE="exif,mysql" PHP_APACHE="YES" PHP_FPM="NO" PHP_VERSION="8.3" setup_php
setup_mariadb
setup_composer
msg_info "Setting up database"
DB_NAME=hortusfox
DB_USER=hortusfox
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
$STD mariadb -u root -e "CREATE DATABASE $DB_NAME;"
$STD mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASS';"
$STD mariadb -u root -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
{
echo "HortusFox Database Credentials"
echo "Database: $DB_NAME"
echo "Username: $DB_USER"
echo "Password: $DB_PASS"
} >>~/hortusfox.creds
msg_ok "Set up database"
fetch_and_deploy_gh_release "hortusfox" "danielbrendel/hortusfox-web"
msg_info "Configuring .env"
cp /opt/hortusfox/.env.example /opt/hortusfox/.env
sed -i "s|^DB_HOST=.*|DB_HOST=localhost|" /opt/hortusfox/.env
sed -i "s|^DB_USER=.*|DB_USER=$DB_USER|" /opt/hortusfox/.env
sed -i "s|^DB_PASSWORD=.*|DB_PASSWORD=$DB_PASS|" /opt/hortusfox/.env
sed -i "s|^DB_DATABASE=.*|DB_DATABASE=$DB_NAME|" /opt/hortusfox/.env
sed -i "s|^DB_ENABLE=.*|DB_ENABLE=true|" /opt/hortusfox/.env
sed -i "s|^APP_TIMEZONE=.*|APP_TIMEZONE=Europe/Berlin|" /opt/hortusfox/.env
msg_ok ".env configured"
msg_info "Installing Composer dependencies"
cd /opt/hortusfox
$STD composer install --no-dev --optimize-autoloader
msg_ok "Composer dependencies installed"
msg_info "Running DB migration"
$STD php asatru migrate:fresh
msg_ok "Migration finished"
msg_info "Setting up HortusFox"
$STD mariadb -u root -D $DB_NAME -e "INSERT IGNORE INTO AppModel (workspace, language, created_at) VALUES ('Default Workspace', 'en', NOW());"
$STD php asatru plants:attributes
$STD php asatru calendar:classes
ADMIN_EMAIL="admin@example.com"
ADMIN_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)"
ADMIN_HASH=$(php -r "echo password_hash('$ADMIN_PASS', PASSWORD_BCRYPT);")
$STD mariadb -u root -D $DB_NAME -e "INSERT IGNORE INTO UserModel (name, email, password, admin) VALUES ('Admin', '$ADMIN_EMAIL', '$ADMIN_HASH', 1);"
{
echo ""
echo "HortusFox-Admin-Creds:"
echo "E-Mail: $ADMIN_EMAIL"
echo "Passwort: $ADMIN_PASS"
} >>~/hortusfox.creds
$STD mariadb -u root -D $DB_NAME -e "INSERT IGNORE INTO LocationsModel (name, active, created_at) VALUES ('Home', 1, NOW());"
msg_ok "Set up HortusFox"
msg_info "Configuring Apache vHost"
cat <<EOF >/etc/apache2/sites-available/hortusfox.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /opt/hortusfox/public
<Directory /opt/hortusfox/public>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog \${APACHE_LOG_DIR}/hortusfox_error.log
CustomLog \${APACHE_LOG_DIR}/hortusfox_access.log combined
</VirtualHost>
EOF
$STD a2dissite 000-default
$STD a2ensite hortusfox
$STD a2enmod rewrite
systemctl restart apache2
msg_ok "Apache configured"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@@ -254,8 +254,7 @@ $STD make clean
cd "$STAGING_DIR" cd "$STAGING_DIR"
SOURCE=$SOURCE_DIR/libvips SOURCE=$SOURCE_DIR/libvips
# : "${LIBVIPS_REVISION:=$(jq -cr '.revision' $BASE_DIR/server/sources/libvips.json)}" : "${LIBVIPS_REVISION:=$(jq -cr '.revision' $BASE_DIR/server/sources/libvips.json)}"
: "${LIBVIPS_REVISION:=8fa37a64547e392d3808eed8d72adab7e02b3d00}"
$STD git clone https://github.com/libvips/libvips.git "$SOURCE" $STD git clone https://github.com/libvips/libvips.git "$SOURCE"
cd "$SOURCE" cd "$SOURCE"
$STD git reset --hard "$LIBVIPS_REVISION" $STD git reset --hard "$LIBVIPS_REVISION"

View File

@@ -16,10 +16,8 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
build-essential \ build-essential \
git \
ca-certificates \ ca-certificates \
chromium/stable \ chromium \
chromium-common/stable \
graphicsmagick \ graphicsmagick \
ghostscript ghostscript
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@@ -69,7 +67,7 @@ cat <<EOF >/etc/karakeep/karakeep.env
SERVER_VERSION="$(cat ~/.karakeep)" SERVER_VERSION="$(cat ~/.karakeep)"
NEXTAUTH_SECRET="$karakeep_SECRET" NEXTAUTH_SECRET="$karakeep_SECRET"
NEXTAUTH_URL="http://localhost:3000" NEXTAUTH_URL="http://localhost:3000"
DATA_DIR="$DATA_DIR" DATA_DIR=${DATA_DIR}
MEILI_ADDR="http://127.0.0.1:7700" MEILI_ADDR="http://127.0.0.1:7700"
MEILI_MASTER_KEY="$MASTER_KEY" MEILI_MASTER_KEY="$MASTER_KEY"
BROWSER_WEB_URL="http://127.0.0.1:9222" BROWSER_WEB_URL="http://127.0.0.1:9222"

View File

@@ -13,25 +13,18 @@ setting_up_container
network_check network_check
update_os update_os
msg_info "Setup Python 3" PYTHON_VERSION="3.12" setup_uv
$STD apt-get install python3-pip -y $STD uv python update-shell
rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED fetch_and_deploy_gh_release "kometa" "Kometa-Team/Kometa"
msg_ok "Setup Python 3"
msg_info "Setup Kometa" msg_info "Setup Kometa"
temp_file=$(mktemp)
RELEASE=$(curl -fsSL https://api.github.com/repos/Kometa-Team/Kometa/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSL "https://github.com/Kometa-Team/Kometa/archive/refs/tags/v${RELEASE}.tar.gz" -o """$temp_file"""
tar -xzf "$temp_file"
mv Kometa-"${RELEASE}" /opt/kometa
cd /opt/kometa cd /opt/kometa
$STD pip install -r requirements.txt --ignore-installed $STD uv pip install -r requirements.txt --system
mkdir -p config/assets mkdir -p config/assets
cp config/config.yml.template config/config.yml cp config/config.yml.template config/config.yml
echo "${RELEASE}" >/opt/kometa_version.txt
msg_ok "Setup Kometa" msg_ok "Setup Kometa"
read -p "${TAB3}nter your TMDb API key: " TMDBKEY read -p "${TAB3}Enter your TMDb API key: " TMDBKEY
read -p "${TAB3}Enter your Plex URL: " PLEXURL read -p "${TAB3}Enter your Plex URL: " PLEXURL
read -p "${TAB3}Enter your Plex token: " PLEXTOKEN read -p "${TAB3}Enter your Plex token: " PLEXTOKEN
sed -i -e "s#url: http://192.168.1.12:32400#url: $PLEXURL #g" /opt/kometa/config/config.yml sed -i -e "s#url: http://192.168.1.12:32400#url: $PLEXURL #g" /opt/kometa/config/config.yml
@@ -54,14 +47,13 @@ RestartSec=30
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
systemctl enable --now -q kometa systemctl enable -q --now kometa
msg_ok "Created Service" msg_ok "Created Service"
motd_ssh motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -f "$temp_file"
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@@ -16,7 +16,6 @@ update_os
fetch_and_deploy_gh_release "meilisearch" "meilisearch/meilisearch" "binary" fetch_and_deploy_gh_release "meilisearch" "meilisearch/meilisearch" "binary"
msg_info "Configuring ${APPLICATION}" msg_info "Configuring ${APPLICATION}"
cd /opt/meilisearch
curl -fsSL https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -o /etc/meilisearch.toml curl -fsSL https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml -o /etc/meilisearch.toml
MASTER_KEY=$(openssl rand -base64 12) MASTER_KEY=$(openssl rand -base64 12)
LOCAL_IP="$(hostname -I | awk '{print $1}')" LOCAL_IP="$(hostname -I | awk '{print $1}')"

92
install/palmr-install.sh Normal file
View File

@@ -0,0 +1,92 @@
#!/usr/bin/env bash
# Copyright (c) 2025 Community Scripts ORG
# Author: vhsdream
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kyantech/Palmr
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "Palmr" "kyantech/Palmr" "tarball" "latest" "/opt/palmr"
PNPM="$(jq -r '.packageManager' /opt/palmr/package.json)" NODE_VERSION="20" NODE_MODULE="$PNPM" setup_nodejs
msg_info "Configuring palmr backend"
PALMR_DIR="/opt/palmr_data"
mkdir -p "$PALMR_DIR"
PALMR_DB="${PALMR_DIR}/palmr.db"
PALMR_KEY="$(openssl rand -hex 32)"
cd /opt/palmr/apps/server
sed -e 's/_ENCRYPTION=true/_ENCRYPTION=false/' \
-e '/^# ENC/s/# //' \
-e "s/ENCRYPTION_KEY=.*$/ENCRYPTION_KEY=$PALMR_KEY/" \
-e "s|file:.*$|file:$PALMR_DB\"|" \
-e '/db"$/a\# Uncomment below when using reverse proxy\
# SECURE_SITE=true' \
.env.example >./.env
$STD pnpm install
$STD pnpm dlx prisma generate
$STD pnpm dlx prisma migrate deploy
$STD pnpm dlx prisma db push
$STD pnpm db:seed
$STD pnpm build
msg_ok "Configured palmr backend"
msg_info "Configuring palmr frontend"
cd /opt/palmr/apps/web
mv ./.env.example ./.env
export NODE_ENV=production
export NEXT_TELEMETRY_DISABLED=1
$STD pnpm install
$STD pnpm build
msg_ok "Configured palmr frontend"
msg_info "Creating service"
useradd -d "$PALMR_DIR" -M -s /usr/sbin/nologin -U palmr
chown -R palmr:palmr "$PALMR_DIR" /opt/palmr
cat <<EOF >/etc/systemd/system/palmr-backend.service
[Unit]
Description=palmr Backend Service
After=network.target
[Service]
Type=simple
User=palmr
Group=palmr
WorkingDirectory=/opt/palmr_data
ExecStart=/usr/bin/node /opt/palmr/apps/server/dist/server.js
[Install]
WantedBy=multi-user.target
EOF
cat <<EOF >/etc/systemd/system/palmr-frontend.service
[Unit]
Description=palmr Frontend Service
After=network.target palmr-backend.service
[Service]
Type=simple
User=palmr
Group=palmr
WorkingDirectory=/opt/palmr/apps/web
ExecStart=/usr/bin/pnpm start
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now palmr-backend palmr-frontend
msg_ok "Created service"
motd_ssh
customize
msg_info "Cleaning up"
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@@ -44,7 +44,7 @@ Type=simple
User=pulse User=pulse
Group=pulse Group=pulse
WorkingDirectory=/opt/pulse WorkingDirectory=/opt/pulse
ExecStart=/opt/pulse/pulse ExecStart=/opt/pulse/bin/pulse
Restart=always Restart=always
RestartSec=3 RestartSec=3
StandardOutput=journal StandardOutput=journal

View File

@@ -21,9 +21,7 @@ $STD apt-get install -y \
g++ \ g++ \
build-essential \ build-essential \
git \ git \
make \ ca-certificates
ca-certificates \
jq
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" setup_nodejs
@@ -39,27 +37,25 @@ $STD sudo -u postgres psql -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASS';"
$STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;" $STD sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;"
$STD sudo -u postgres psql -c "ALTER DATABASE $DB_NAME OWNER TO $DB_USER;" $STD sudo -u postgres psql -c "ALTER DATABASE $DB_NAME OWNER TO $DB_USER;"
$STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;" $STD sudo -u postgres psql -c "ALTER USER $DB_USER WITH SUPERUSER;"
echo "" >>~/tianji.creds {
echo -e "Tianji Database User: $DB_USER" >>~/tianji.creds echo ""
echo -e "Tianji Database Password: $DB_PASS" >>~/tianji.creds echo "Database User: $DB_USER"
echo -e "Tianji Database Name: $DB_NAME" >>~/tianji.creds echo "Database Password: $DB_PASS"
echo -e "Tianji Secret: $TIANJI_SECRET" >>~/tianji.creds echo "Database Name: $DB_NAME"
echo "Tianji Secret: $TIANJI_SECRET"
} >>~/tianji.creds
msg_ok "Set up PostgreSQL" msg_ok "Set up PostgreSQL"
msg_info "Installing Tianji (Extreme Patience)" fetch_and_deploy_gh_release "tianji" "msgbyte/tianji"
cd /opt
RELEASE=$(curl -fsSL https://api.github.com/repos/msgbyte/tianji/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') msg_info "Setup Tianji"
curl -fsSL "https://github.com/msgbyte/tianji/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip" cd /opt/tianji
$STD unzip v${RELEASE}.zip
mv tianji-${RELEASE} /opt/tianji
cd tianji
$STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile $STD pnpm install --filter @tianji/client... --config.dedupe-peer-dependents=false --frozen-lockfile
$STD pnpm build:static $STD pnpm build:static
$STD pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false $STD pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false
mkdir -p ./src/server/public mkdir -p ./src/server/public
cp -r ./geo ./src/server/public cp -r ./geo ./src/server/public
$STD pnpm build:server $STD pnpm build:server
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
cat <<EOF >/opt/tianji/src/server/.env cat <<EOF >/opt/tianji/src/server/.env
DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?schema=public" DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME?schema=public"
OPENAI_API_KEY="" OPENAI_API_KEY=""
@@ -67,7 +63,11 @@ JWT_SECRET="$TIANJI_SECRET"
EOF EOF
cd /opt/tianji/src/server cd /opt/tianji/src/server
$STD pnpm db:migrate:apply $STD pnpm db:migrate:apply
msg_ok "Installed Tianji" msg_ok "Setup Tianji"
msg_info "Setup AppRise"
$STD uv pip install apprise cryptography --system
msg_ok "Setup AppRise"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/tianji.service cat <<EOF >/etc/systemd/system/tianji.service
@@ -93,7 +93,6 @@ motd_ssh
customize customize
msg_info "Cleaning up" msg_info "Cleaning up"
rm -R /opt/v${RELEASE}.zip
rm -rf /opt/tianji/src/client rm -rf /opt/tianji/src/client
rm -rf /opt/tianji/website rm -rf /opt/tianji/website
rm -rf /opt/tianji/reporter rm -rf /opt/tianji/reporter

View File

@@ -28,8 +28,8 @@ if ! grep -q -m1 'avx[^ ]*' /proc/cpuinfo; then
msg_ok "No AVX Support Detected" msg_ok "No AVX Support Detected"
msg_info "Installing MongoDB 4.4" msg_info "Installing MongoDB 4.4"
if ! dpkg -l | grep -q "libssl1.1"; then if ! dpkg -l | grep -q "libssl1.1"; then
curl -fsSL "http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb10u6_amd64.deb" -o "libssl1.1_1.1.1n-0+deb10u6_amd64.deb" curl -fsSL "https://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1w-0+deb11u3_amd64.deb" -o "libssl1.1_1.1.1w-0+deb11u3_amd64.deb"
$STD dpkg -i libssl1.1_1.1.1n-0+deb10u6_amd64.deb $STD dpkg -i libssl1.1_1.1.1w-0+deb11u3_amd64.deb
fi fi
curl -fsSL "https://www.mongodb.org/static/pgp/server-4.4.asc" | gpg --dearmor >/usr/share/keyrings/mongodb-server-4.4.gpg curl -fsSL "https://www.mongodb.org/static/pgp/server-4.4.asc" | gpg --dearmor >/usr/share/keyrings/mongodb-server-4.4.gpg
echo "deb [signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list echo "deb [signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg] https://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" >/etc/apt/sources.list.d/mongodb-org-4.4.list

View File

@@ -250,7 +250,7 @@ setup_mariadb() {
fi fi
msg_info "Setting up MariaDB $MARIADB_VERSION" msg_info "Setting up MariaDB $MARIADB_VERSION"
# grab dynamic latest LTS version # Grab dynamic latest LTS version
if [[ "$MARIADB_VERSION" == "latest" ]]; then if [[ "$MARIADB_VERSION" == "latest" ]]; then
MARIADB_VERSION=$(curl -fsSL http://mirror.mariadb.org/repo/ | MARIADB_VERSION=$(curl -fsSL http://mirror.mariadb.org/repo/ |
grep -Eo '[0-9]+\.[0-9]+\.[0-9]+/' | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+/' |
@@ -293,7 +293,17 @@ setup_mariadb() {
>/etc/apt/sources.list.d/mariadb.list >/etc/apt/sources.list.d/mariadb.list
$STD apt-get update $STD apt-get update
$STD apt-get install -y mariadb-server mariadb-client
local MARIADB_MAJOR_MINOR
MARIADB_MAJOR_MINOR=$(echo "$MARIADB_VERSION" | awk -F. '{print $1"."$2}')
if [[ -n "$MARIADB_MAJOR_MINOR" ]]; then
echo "mariadb-server-$MARIADB_MAJOR_MINOR mariadb-server/feedback boolean false" | debconf-set-selections
else
for ver in 12.1 12.0 11.4 11.3 11.2 11.1 11.0 10.11 10.6 10.5 10.4 10.3; do
echo "mariadb-server-$ver mariadb-server/feedback boolean false" | debconf-set-selections
done
fi
DEBIAN_FRONTEND=noninteractive $STD apt-get install -y mariadb-server mariadb-client
msg_ok "Setup MariaDB $MARIADB_VERSION" msg_ok "Setup MariaDB $MARIADB_VERSION"
} }

View File

@@ -1275,9 +1275,9 @@ while true; do
esac esac
done done
if ! pveversion | grep -Eq "pve-manager/8\.[0-4](\.[0-9]+)*"; then if ! pveversion | grep -Eq "pve-manager/(8\.[0-4]|9\.[0-9]+)(\.[0-9]+)*"; then
msg_error "This version of Proxmox Virtual Environment is not supported" msg_error "This version of Proxmox Virtual Environment is not supported"
msg_error "⚠️ Requires Proxmox Virtual Environment Version 8.0 or later." msg_error "⚠️ Requires Proxmox Virtual Environment Version 8.08.4 or 9.x."
msg_error "Exiting..." msg_error "Exiting..."
sleep 2 sleep 2
exit exit

View File

@@ -21,18 +21,25 @@ function find_orphaned_lvm {
echo -e "\n🔍 Scanning for orphaned LVM volumes...\n" echo -e "\n🔍 Scanning for orphaned LVM volumes...\n"
orphaned_volumes=() orphaned_volumes=()
while read -r lv vg size; do while read -r lv vg size seg_type; do
# Exclude system-critical LVs and Ceph OSDs # Exclude system-critical LVs and Ceph OSDs
if [[ "$lv" == "data" || "$lv" == "root" || "$lv" == "swap" || "$lv" =~ ^osd-block- ]]; then if [[ "$lv" == "data" || "$lv" == "root" || "$lv" == "swap" || "$lv" =~ ^osd-block- ]]; then
continue continue
fi fi
# Exclude thin pools (any name)
if [[ "$seg_type" == "thin-pool" ]]; then
continue
fi
container_id=$(echo "$lv" | grep -oE "[0-9]+" | head -1) container_id=$(echo "$lv" | grep -oE "[0-9]+" | head -1)
# Check if the ID exists as a VM or LXC container # Check if the ID exists as a VM or LXC container
if [ -f "/etc/pve/lxc/${container_id}.conf" ] || [ -f "/etc/pve/qemu-server/${container_id}.conf" ]; then if [ -f "/etc/pve/lxc/${container_id}.conf" ] || [ -f "/etc/pve/qemu-server/${container_id}.conf" ]; then
continue continue
fi fi
orphaned_volumes+=("$lv" "$vg" "$size") orphaned_volumes+=("$lv" "$vg" "$size")
done < <(lvs --noheadings -o lv_name,vg_name,lv_size --separator ' ' | awk '{print $1, $2, $3}') done < <(lvs --noheadings -o lv_name,vg_name,lv_size,seg_type --separator ' ' 2>/dev/null | awk '{print $1, $2, $3, $4}')
# Display orphaned volumes # Display orphaned volumes
echo -e "❗ The following orphaned LVM volumes were found:\n" echo -e "❗ The following orphaned LVM volumes were found:\n"

View File

@@ -1,10 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) 2021-2025 tteck set -eEuo pipefail
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
set -o pipefail
function header_info() { function header_info() {
clear clear
@@ -17,81 +13,177 @@ function header_info() {
/____/ /____/
EOF EOF
} }
set -eEuo pipefail
BL=$(echo "\033[36m") BL="\033[36m"
RD=$(echo "\033[01;31m") RD="\033[01;31m"
CM='\xE2\x9C\x94\033' GN="\033[1;92m"
GN=$(echo "\033[1;92m") CL="\033[m"
CL=$(echo "\033[m")
LOGFILE="/var/log/fstrim.log"
touch "$LOGFILE"
chmod 600 "$LOGFILE"
echo -e "\n----- $(date '+%Y-%m-%d %H:%M:%S') | fstrim Run by $(whoami) on $(hostname) -----" >>"$LOGFILE"
header_info header_info
echo "Loading..." echo "Loading..."
whiptail --backtitle "Proxmox VE Helper Scripts" \
--title "About fstrim (LXC)" \
--msgbox "The 'fstrim' command releases unused blocks back to the storage device. This only makes sense for containers on SSD, NVMe, Thin-LVM, or storage with discard/TRIM support.\n\nIf your root filesystem or container disks are on classic HDDs, thick LVM, or unsupported storage types, running fstrim will have no effect.\n\nRecommended:\n- Use fstrim only on SSD, NVMe, or thin-provisioned storage with discard enabled.\n- For ZFS, ensure 'autotrim=on' is set on your pool.\n" 16 88
ROOT_FS=$(df -Th "/" | awk 'NR==2 {print $2}') ROOT_FS=$(df -Th "/" | awk 'NR==2 {print $2}')
if [ "$ROOT_FS" != "ext4" ]; then if [ "$ROOT_FS" != "ext4" ]; then
echo "Root filesystem is not ext4. Exiting script." whiptail --backtitle "Proxmox VE Helper Scripts" \
exit 1 --title "Warning" \
--yesno "Root filesystem is not ext4 ($ROOT_FS).\nContinue anyway?" 12 80 || exit 1
fi fi
whiptail --backtitle "Proxmox VE Helper Scripts" \
--title "Proxmox VE LXC Filesystem Trim" \
--yesno "The LXC containers will undergo the fstrim command. Proceed?" 10 58
NODE=$(hostname) NODE=$(hostname)
EXCLUDE_MENU=() EXCLUDE_MENU=()
MSG_MAX_LENGTH=0 STOPPED_MENU=()
MAX_NAME_LEN=0
MAX_STAT_LEN=0
while read -r TAG ITEM; do # Build arrays with one pct list
OFFSET=2 mapfile -t CTLINES < <(pct list | awk 'NR>1')
((${#ITEM} + OFFSET > MSG_MAX_LENGTH)) && MSG_MAX_LENGTH=${#ITEM}+OFFSET
EXCLUDE_MENU+=("$TAG" "$ITEM " "OFF") for LINE in "${CTLINES[@]}"; do
done < <(pct list | awk 'NR>1') CTID=$(awk '{print $1}' <<<"$LINE")
STATUS=$(awk '{print $2}' <<<"$LINE")
NAME=$(awk '{print $3}' <<<"$LINE")
((${#NAME} > MAX_NAME_LEN)) && MAX_NAME_LEN=${#NAME}
((${#STATUS} > MAX_STAT_LEN)) && MAX_STAT_LEN=${#STATUS}
done
FMT="%-${MAX_NAME_LEN}s | %-${MAX_STAT_LEN}s"
for LINE in "${CTLINES[@]}"; do
CTID=$(awk '{print $1}' <<<"$LINE")
STATUS=$(awk '{print $2}' <<<"$LINE")
NAME=$(awk '{print $3}' <<<"$LINE")
DESC=$(printf "$FMT" "$NAME" "$STATUS")
EXCLUDE_MENU+=("$CTID" "$DESC" "OFF")
if [[ "$STATUS" == "stopped" ]]; then
STOPPED_MENU+=("$CTID" "$DESC" "OFF")
fi
done
excluded_containers_raw=$(whiptail --backtitle "Proxmox VE Helper Scripts" \ excluded_containers_raw=$(whiptail --backtitle "Proxmox VE Helper Scripts" \
--title "Containers on $NODE" \ --title "Containers on $NODE" \
--checklist "\nSelect containers to skip from trimming:\n" \ --checklist "\nSelect containers to skip from trimming:\n" \
16 $((MSG_MAX_LENGTH + 23)) 6 "${EXCLUDE_MENU[@]}" 3>&1 1>&2 2>&3) 20 $((MAX_NAME_LEN + MAX_STAT_LEN + 20)) 12 "${EXCLUDE_MENU[@]}" 3>&1 1>&2 2>&3)
[ $? -ne 0 ] && exit
read -ra EXCLUDED <<<$(echo "$excluded_containers_raw" | tr -d '"')
if [ $? -ne 0 ]; then TO_START=()
exit if [ ${#STOPPED_MENU[@]} -gt 0 ]; then
for ((i = 0; i < ${#STOPPED_MENU[@]}; i += 3)); do
CTID="${STOPPED_MENU[i]}"
DESC="${STOPPED_MENU[i + 1]}"
if [[ " ${EXCLUDED[*]} " =~ " $CTID " ]]; then
continue
fi
header_info
echo -e "${BL}[Info]${GN} Container $CTID ($DESC) is currently stopped.${CL}"
read -rp "Temporarily start for fstrim? [y/N]: " answer
if [[ "$answer" =~ ^[Yy]$ ]]; then
TO_START+=("$CTID")
fi
done
fi fi
excluded_containers=$(echo "$excluded_containers_raw" | tr -d '"') declare -A WAS_STOPPED
for ct in "${TO_START[@]}"; do
WAS_STOPPED["$ct"]=1
done
function trim_container() { function trim_container() {
local container=$1 local container="$1"
local name="$2"
header_info header_info
echo -e "${BL}[Info]${GN} Trimming ${BL}$container${CL} \n" echo -e "${BL}[Info]${GN} Trimming ${BL}$container${CL} \n"
local before_trim local before_trim after_trim
before_trim=$(lvs | awk -F '[[:space:]]+' 'NR>1 && (/Data%|'"vm-$container"'/) {gsub(/%/, "", $7); print $7}') local lv_name="vm-${container}-disk-0"
echo -e "${RD}Data before trim $before_trim%${CL}" if lvs --noheadings -o lv_name 2>/dev/null | grep -qw "$lv_name"; then
before_trim=$(lvs --noheadings -o lv_name,data_percent 2>/dev/null | awk -v ctid="$lv_name" '$1 == ctid {gsub(/%/, "", $2); print $2}')
[[ -n "$before_trim" ]] && echo -e "${RD}Data before trim $before_trim%${CL}" || echo -e "${RD}Data before trim: not available${CL}"
else
before_trim=""
echo -e "${RD}Data before trim: not available (non-LVM storage)${CL}"
fi
pct fstrim "$container" local fstrim_output
fstrim_output=$(pct fstrim "$container" 2>&1)
if echo "$fstrim_output" | grep -qi "not supported"; then
echo -e "${RD}fstrim isnt supported on this storage!${CL}"
elif echo "$fstrim_output" | grep -Eq '([0-9]+(\.[0-9]+)?\s*[KMGT]?B)'; then
echo -e "${GN}fstrim result: $fstrim_output${CL}"
else
echo -e "${RD}fstrim result: $fstrim_output${CL}"
fi
local after_trim if lvs --noheadings -o lv_name 2>/dev/null | grep -qw "$lv_name"; then
after_trim=$(lvs | awk -F '[[:space:]]+' 'NR>1 && (/Data%|'"vm-$container"'/) {gsub(/%/, "", $7); print $7}') after_trim=$(lvs --noheadings -o lv_name,data_percent 2>/dev/null | awk -v ctid="$lv_name" '$1 == ctid {gsub(/%/, "", $2); print $2}')
echo -e "${GN}Data after trim $after_trim%${CL}" [[ -n "$after_trim" ]] && echo -e "${GN}Data after trim $after_trim%${CL}" || echo -e "${GN}Data after trim: not available${CL}"
else
after_trim=""
echo -e "${GN}Data after trim: not available (non-LVM storage)${CL}"
fi
sleep 1.5 # Logging
echo "$(date '+%Y-%m-%d %H:%M:%S') | CTID=$container | Name=$name | Before=${before_trim:-N/A}% | After=${after_trim:-N/A}% | fstrim: $fstrim_output" >>"$LOGFILE"
sleep 0.5
} }
for container in $(pct list | awk '{if(NR>1) print $1}'); do for LINE in "${CTLINES[@]}"; do
if [[ " ${excluded_containers} " =~ " $container " ]]; then CTID=$(awk '{print $1}' <<<"$LINE")
STATUS=$(awk '{print $2}' <<<"$LINE")
NAME=$(awk '{print $3}' <<<"$LINE")
if [[ " ${EXCLUDED[*]} " =~ " $CTID " ]]; then
header_info header_info
echo -e "${BL}[Info]${GN} Skipping ${BL}$container${CL}" echo -e "${BL}[Info]${GN} Skipping $CTID ($NAME, excluded)${CL}"
sleep 1 sleep 0.5
else continue
template=$(pct config "$container" | grep -q "template:" && echo "true" || echo "false") fi
if [ "$template" == "true" ]; then if pct config "$CTID" | grep -q "template:"; then
header_info
echo -e "${BL}[Info]${GN} Skipping $CTID ($NAME, template)${CL}\n"
sleep 0.5
continue
fi
if [[ "$STATUS" != "running" ]]; then
if [[ -n "${WAS_STOPPED[$CTID]:-}" ]]; then
header_info header_info
echo -e "${BL}[Info]${GN} Skipping ${container} ${RD}$container is a template ${CL} \n" echo -e "${BL}[Info]${GN} Starting $CTID ($NAME) for trim...${CL}"
sleep 1 pct start "$CTID"
sleep 2
else
header_info
echo -e "${BL}[Info]${GN} Skipping $CTID ($NAME, not running, not selected)${CL}"
sleep 0.5
continue continue
fi fi
trim_container "$container" fi
trim_container "$CTID" "$NAME"
if [[ -n "${WAS_STOPPED[$CTID]:-}" ]]; then
read -rp "Stop LXC $CTID ($NAME) again after trim? [Y/n]: " answer
if [[ ! "$answer" =~ ^[Nn]$ ]]; then
header_info
echo -e "${BL}[Info]${GN} Stopping $CTID ($NAME) again...${CL}"
pct stop "$CTID"
sleep 1
else
header_info
echo -e "${BL}[Info]${GN} Leaving $CTID ($NAME) running as requested.${CL}"
sleep 1
fi
fi fi
done done
wait
header_info header_info
echo -e "${GN}Finished, LXC Containers Trimmed.${CL} \n" echo -e "${GN}Finished, LXC Containers Trimmed.${CL} \n"
echo -e "${BL}If you want to see the complete log: cat $LOGFILE${CL}"
exit 0