Compare commits

..
Author SHA1 Message Date
MickLesk 0914a4db7d Monitor-All: ping the container's net0 address
lxc-info lists every IPv4 inside the container, Docker bridges and VPN
tunnels included, and they often come before the LAN address, so a
healthy container was pinged on 172.17.0.1 and restarted. The address
now comes from net0's static ip=, else from net0's interface read in
the container's network namespace from the host, and only then from
lxc-info. A container is restarted after two rounds of three lost
pings instead of one.

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

* Modify formbricks-install.sh for versioning and build

Updated versioning and build configurations for Formbricks installation script.

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-25 12:29:19 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] dd694c4dfe Update CHANGELOG.md (#19026)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-25 10:18:05 +00:00
push-app-to-main[bot] 101884cc8c Add immich-power-tools (addon) (#19023)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-25 11:18:02 +01:00
push-app-to-main[bot] 770d8e99cb Add vuetorrent (addon) (#19024)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
2026-11-25 11:17:37 +01:00
4 changed files with 311 additions and 3 deletions

No files matched your search

+11
View File
@@ -587,6 +587,17 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-25
### 🆕 New Scripts
- Formbricks [@MickLesk](https://github.com/MickLesk) ([#19022](https://github.com/community-scripts/ProxmoxVE/pull/19022))
### 🧰 Tools
- Immich Power Tools ([#19023](https://github.com/community-scripts/ProxmoxVE/pull/19023))
- VueTorrent ([#19024](https://github.com/community-scripts/ProxmoxVE/pull/19024))
## 2026-11-24
### 🆕 New Scripts
+174
View File
@@ -0,0 +1,174 @@
#!/usr/bin/env bash
# community-scripts ORG | Immich Power Tools Addon Installer
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/immich-power-tools/immich-power-tools
if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
fi
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/lib/tools.func")
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/error_handler.func")
APP="Immich Power Tools"
APP_TYPE="addon"
header_info "$APP"
color
catch_errors
if [[ ! -f /opt/immich/.env ]] || ! systemctl is-active --quiet immich-web; then
msg_error "Immich is not installed or not running. Install the Immich LXC first, then run this addon inside it."
exit 1
fi
if [[ "$(cut -d. -f1 ~/.immich 2>/dev/null)" -lt 3 ]]; then
msg_error "Immich Power Tools needs Immich 3.0 or newer. Update the Immich LXC first."
exit 1
fi
MEM_MB=$(awk '/MemTotal/ {printf "%.0f", $2/1024}' /proc/meminfo)
if ((MEM_MB < 4096)); then
msg_error "Insufficient memory: ${MEM_MB} MB detected. At least 4096 MB RAM is required to build Immich Power Tools."
exit 1
fi
get_lxc_ip
function build_power_tools() {
cd /opt/immich-power-tools || exit 1
$STD bun install --frozen-lockfile
VERSION="$(cat ~/.immich-power-tools)" NEXT_TELEMETRY_DISABLED=1 $STD npm run build
cp -r public .next/standalone/
cp -r .next/static .next/standalone/.next/
mkdir -p .next/standalone/src/db
cp -r src/db/migrations .next/standalone/src/db/
cp -r node_modules/@libsql node_modules/libsql .next/standalone/node_modules/
rm -rf node_modules .next/cache
$STD bun pm cache rm
}
function install_ui() {
if [[ -z "${var_immich_api_key:-}" ]]; then
var_immich_api_key=$(prompt_input "Immich API key (empty = log in with your Immich account):" "" 120)
fi
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools" "tarball"
msg_info "Building Immich Power Tools"
build_power_tools
msg_ok "Built Immich Power Tools"
msg_info "Configuring Immich Power Tools"
IMMICH_PORT=$(sed -n 's/^IMMICH_PORT=//p' /opt/immich/.env)
DB_PORT=$(sed -n 's/^DB_PORT=//p' /opt/immich/.env)
mkdir -p /opt/immich-power-tools_data
cat <<EOF >/opt/immich-power-tools_data/.env
NODE_ENV=production
NEXT_TELEMETRY_DISABLED=1
PORT=8001
HOSTNAME=0.0.0.0
APP_DB_PATH=/opt/immich-power-tools_data/app.db
IMMICH_URL=http://127.0.0.1:${IMMICH_PORT:-2283}
EXTERNAL_IMMICH_URL=http://${LOCAL_IP}:${IMMICH_PORT:-2283}
# Immich > Account Settings > API Keys (all permissions). Empty = log in with an Immich account.
# With a key there is no login: everyone reaching port 8001 acts as the key's owner.
IMMICH_API_KEY=${var_immich_api_key}
DB_HOST=$(sed -n 's/^DB_HOSTNAME=//p' /opt/immich/.env)
DB_PORT=${DB_PORT:-5432}
$(grep -E '^DB_(USERNAME|PASSWORD|DATABASE_NAME)=' /opt/immich/.env)
SECURE_COOKIE=false
JWT_SECRET=$(openssl rand -hex 32)
POWER_TOOLS_ENDPOINT_URL=http://${LOCAL_IP}:8001
# Optional, any OpenAI-compatible API for "Find"
# AI_API_KEY=
# AI_BASE_URL=https://api.openai.com/v1
# AI_MODEL=gpt-4o-mini
EOF
chmod 600 /opt/immich-power-tools_data/.env
cat <<EOF >/etc/systemd/system/immich-power-tools.service
[Unit]
Description=Immich Power Tools
After=network.target postgresql.service immich-web.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/immich-power-tools/.next/standalone
EnvironmentFile=/opt/immich-power-tools_data/.env
ExecStart=/usr/bin/node /opt/immich-power-tools/.next/standalone/server.js
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now immich-power-tools
msg_ok "Configured Immich Power Tools"
msg_ok "Immich Power Tools installed at http://${LOCAL_IP}:8001"
if [[ -n "$var_immich_api_key" ]]; then
msg_warn "Immich Power Tools has no login with an API key: everyone reaching port 8001 acts as the key's owner"
else
echo -e "${INFO}${YW} Log in with your Immich account, or set IMMICH_API_KEY in /opt/immich-power-tools_data/.env and run: systemctl restart immich-power-tools${CL}"
fi
}
function uninstall_ui() {
msg_info "Uninstalling Immich Power Tools"
systemctl disable -q --now immich-power-tools
rm -f /etc/systemd/system/immich-power-tools.service
systemctl daemon-reload
rm -rf /opt/immich-power-tools /opt/immich-power-tools_data ~/.immich-power-tools
msg_ok "Uninstalled Immich Power Tools"
}
function update_ui() {
if check_for_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools"; then
msg_info "Stopping Immich Power Tools"
systemctl stop immich-power-tools
msg_ok "Stopped Immich Power Tools"
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "immich-power-tools" "immich-power-tools/immich-power-tools" "tarball"
msg_info "Building Immich Power Tools"
build_power_tools
msg_ok "Built Immich Power Tools"
msg_info "Starting Immich Power Tools"
systemctl start immich-power-tools
msg_ok "Started Immich Power Tools"
msg_ok "Updated Immich Power Tools"
fi
}
if [[ -f /etc/systemd/system/immich-power-tools.service ]]; then
read -r -p "Update (1), Uninstall (2), Cancel (3)? [1/2/3]: " action
action="${action//[[:space:]]/}"
case "$action" in
1) update_ui ;;
2) uninstall_ui ;;
3) msg_warn "Cancelled" ;;
*) msg_error "Invalid input" ;;
esac
else
read -r -p "Install Immich Power Tools? (y/n): " answer
answer="${answer//[[:space:]]/}"
if [[ "${answer,,}" =~ ^(y|yes)$ ]]; then
install_ui
else
msg_warn "Installation of Immich Power Tools skipped"
fi
fi
+114
View File
@@ -0,0 +1,114 @@
#!/usr/bin/env bash
# community-scripts ORG | VueTorrent Addon Installer
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/VueTorrent/VueTorrent
if command -v curl >/dev/null 2>&1; then
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
elif command -v wget >/dev/null 2>&1; then
source <(wget -qO- "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/core.func")
load_functions
fi
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/lib/tools.func")
source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/error_handler.func")
color
catch_errors
APP="VueTorrent"
APP_TYPE="addon"
QBT_CONF="/root/.config/qBittorrent/qBittorrent.conf"
header_info "$APP"
require_debian_like
get_lxc_ip
if [[ ! -f /etc/systemd/system/qbittorrent-nox.service || ! -f "$QBT_CONF" ]]; then
msg_error "qBittorrent is not installed. Install the qBittorrent LXC first, then run the VueTorrent addon inside it."
exit 1
fi
QBT_PORT=$(sed -nE '/^(WebUI\\)?Port=/{s/^[^=]*=//p;q}' "$QBT_CONF")
# qBittorrent 5.3 moved the WebUI keys from [Preferences] (WebUI\Key) to their own [WebUI] section
function qbt_webui_set() {
local section="Preferences" key="WebUI\\$1" tmp
if grep -q '^\[WebUI\]' "$QBT_CONF"; then
section="WebUI"
key="$1"
fi
tmp=$(mktemp)
SECTION="[${section}]" KEY="${key}=" LINE="${key}=$2" awk '
/^\[/ { in_section = ($0 == ENVIRON["SECTION"]) }
in_section && index($0, ENVIRON["KEY"]) == 1 { next }
{ print }
in_section && $0 == ENVIRON["SECTION"] && !done { print ENVIRON["LINE"]; done = 1 }
END { if (!done) printf "\n%s\n%s\n", ENVIRON["SECTION"], ENVIRON["LINE"] }
' "$QBT_CONF" >"$tmp"
cat "$tmp" >"$QBT_CONF"
rm -f "$tmp"
}
function install_vuetorrent() {
fetch_and_deploy_gh_release "vuetorrent" "VueTorrent/VueTorrent" "prebuild" "latest" "/opt/vuetorrent" "vuetorrent.zip"
# qBittorrent writes its config back on shutdown, so it has to be stopped before editing
msg_info "Enabling VueTorrent in qBittorrent"
systemctl stop qbittorrent-nox
qbt_webui_set AlternativeUIEnabled true
qbt_webui_set RootFolder /opt/vuetorrent
systemctl start qbittorrent-nox
msg_ok "Enabled VueTorrent in qBittorrent"
echo ""
msg_ok "VueTorrent is reachable at: ${BL}http://${LOCAL_IP}:${QBT_PORT:-8080}${CL}"
echo -e "${INFO}${YW} Log in with your qBittorrent WebUI credentials${CL}"
}
function update_vuetorrent() {
if check_for_gh_release "vuetorrent" "VueTorrent/VueTorrent"; then
# qBittorrent turns the alternative UI off for good if index.html is missing on a request, so swap instead of wiping in place
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "vuetorrent" "VueTorrent/VueTorrent" "prebuild" "latest" "/opt/vuetorrent.new" "vuetorrent.zip"
rm -rf /opt/vuetorrent.old
mv /opt/vuetorrent /opt/vuetorrent.old
mv /opt/vuetorrent.new /opt/vuetorrent
rm -rf /opt/vuetorrent.old
msg_ok "Updated VueTorrent"
fi
}
function uninstall_vuetorrent() {
msg_info "Uninstalling VueTorrent"
systemctl stop qbittorrent-nox
qbt_webui_set AlternativeUIEnabled false
qbt_webui_set RootFolder ""
rm -rf /opt/vuetorrent "$HOME/.vuetorrent"
systemctl start qbittorrent-nox
msg_ok "Uninstalled VueTorrent, qBittorrent is back on its built-in WebUI"
}
if [[ -d /opt/vuetorrent ]]; then
if [[ "${type:-}" == "update" ]]; then
update_vuetorrent
exit 0
fi
read -r -p "${TAB}Update (1), Uninstall (2), Cancel (3)? [1/2/3]: " action || action=""
action="${action//[[:space:]]/}"
case "$action" in
1) update_vuetorrent ;;
2) uninstall_vuetorrent ;;
3) msg_warn "No changes made to VueTorrent" ;;
*) msg_error "Invalid input - no changes made to VueTorrent" ;;
esac
else
read -r -p "${TAB}Install VueTorrent? (y/n): " answer || answer=""
answer="${answer//[[:space:]]/}"
if [[ "${answer,,}" =~ ^(y|yes)$ ]]; then
install_vuetorrent
else
msg_warn "VueTorrent installation skipped"
fi
fi
+12 -3
View File
@@ -111,9 +111,18 @@ while true; do
continue
fi
# Read the IP from the host side; pct exec depends on tools inside the
# guest, which minimal/OCI images may lack.
IP=$(lxc-info -n "$instance" -iH 2>/dev/null | awk '/^[0-9.]+$/ && !/^(127|169\.254)\./ {print; exit}')
if [ -z "$IP" ] || ! ping -c 1 -W 2 "$IP" >/dev/null 2>&1; then
# guest, which minimal/OCI images may lack. net0's address comes first:
# lxc-info lists Docker bridges and VPN tunnels too, often before it.
net0=$(value_of net0)
IP=$(grep -oP '(^|,)ip=\K[0-9.]+(?=/)' <<<"$net0" || true)
if [ -z "$IP" ]; then
iface=$(grep -oP '(^|,)name=\K[^,]+' <<<"$net0" || true)
pid=$(lxc-info -n "$instance" -pH 2>/dev/null)
[ -n "$pid" ] && IP=$(nsenter -t "$pid" -n ip -4 -o addr show dev "${iface:-eth0}" scope global 2>/dev/null | awk '{sub(/\/.*/, "", $4); print $4; exit}')
fi
[ -z "$IP" ] && IP=$(lxc-info -n "$instance" -iH 2>/dev/null | awk '/^[0-9.]+$/ && !/^(127|169\.254)\./ {print; exit}')
# Two rounds of three pings, so one lost packet does not restart it.
if [ -z "$IP" ] || ! { ping -c 3 -W 2 "$IP" >/dev/null 2>&1 || { sleep 5 && ping -c 3 -W 2 "$IP" >/dev/null 2>&1; }; }; then
echo "$(date): CT $instance is not responding, restarting..."
pct stop "$instance" >/dev/null 2>&1
sleep 5