mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-12-02 12:58:10 +01:00
Compare commits
16
Commits
No files matched your search
@@ -597,6 +597,28 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
- Docling-Serve [@MickLesk](https://github.com/MickLesk) ([#19237](https://github.com/community-scripts/ProxmoxVE/pull/19237))
|
||||
- Kopia [@MickLesk](https://github.com/MickLesk) ([#19238](https://github.com/community-scripts/ProxmoxVE/pull/19238))
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- Pterodactyl Panel: switch PHP with setup_php [@MickLesk](https://github.com/MickLesk) ([#19255](https://github.com/community-scripts/ProxmoxVE/pull/19255))
|
||||
- Frigate: fetch the Intel key for install_deps with retries [@MickLesk](https://github.com/MickLesk) ([#19253](https://github.com/community-scripts/ProxmoxVE/pull/19253))
|
||||
- ERPNext: raise the default RAM to 6 GB [@MickLesk](https://github.com/MickLesk) ([#19252](https://github.com/community-scripts/ProxmoxVE/pull/19252))
|
||||
- Aurral: build without the exact Node minor check [@MickLesk](https://github.com/MickLesk) ([#19251](https://github.com/community-scripts/ProxmoxVE/pull/19251))
|
||||
- Dreeve: follow FrankenPHP releases for PHP 8.6 [@MickLesk](https://github.com/MickLesk) ([#19250](https://github.com/community-scripts/ProxmoxVE/pull/19250))
|
||||
- cross-seed: reinstall when a Node.js upgrade broke better-sqlite3 [@MickLesk](https://github.com/MickLesk) ([#19249](https://github.com/community-scripts/ProxmoxVE/pull/19249))
|
||||
- Dispatcharr: consume the plugins and dvr queues like upstream [@MickLesk](https://github.com/MickLesk) ([#19248](https://github.com/community-scripts/ProxmoxVE/pull/19248))
|
||||
|
||||
- #### 🔧 Refactor
|
||||
|
||||
- Sure: set SECRET_KEY_BASE whatever the example holds [@MickLesk](https://github.com/MickLesk) ([#19258](https://github.com/community-scripts/ProxmoxVE/pull/19258))
|
||||
|
||||
### 🧰 Tools
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- [tools.update-lxcs] feat: optional CLEAN_CACHE to remove downloaded packages after each update [@mattstein111](https://github.com/mattstein111) ([#19192](https://github.com/community-scripts/ProxmoxVE/pull/19192))
|
||||
|
||||
## 2026-12-01
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ function update_script() {
|
||||
export VITE_GITHUB_REPO="lklynet/aurral"
|
||||
export VITE_RELEASE_CHANNEL="stable"
|
||||
$STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend
|
||||
$STD pnpm --filter aurral-frontend run build
|
||||
$STD pnpm --config.engine-strict=false --filter aurral-frontend run build
|
||||
mkdir -p /opt/aurral_data
|
||||
cat <<EOF >/opt/aurral/aurral.env
|
||||
NODE_ENV=production
|
||||
|
||||
+6
-1
@@ -30,13 +30,18 @@ function update_script() {
|
||||
ensure_dependencies build-essential
|
||||
|
||||
if command -v cross-seed &>/dev/null; then
|
||||
current_version=$(cross-seed --version)
|
||||
current_version=$(node -p "require('$(npm root -g)/cross-seed/package.json').version")
|
||||
latest_version=$(npm show cross-seed version)
|
||||
if [ "$current_version" != "$latest_version" ]; then
|
||||
msg_info "Updating cross-seed from version v${current_version} to v${latest_version}"
|
||||
$STD npm install -g cross-seed@latest
|
||||
systemctl restart cross-seed
|
||||
msg_ok "Updated successfully!"
|
||||
elif ! cross-seed --version &>/dev/null; then
|
||||
msg_info "Reinstalling cross-seed v${current_version} for Node.js $(node -v)"
|
||||
$STD npm install -g "cross-seed@${current_version}"
|
||||
systemctl restart cross-seed
|
||||
msg_ok "Reinstalled cross-seed"
|
||||
else
|
||||
msg_ok "cross-seed is already at v${current_version}"
|
||||
fi
|
||||
|
||||
+45
-1
@@ -117,9 +117,52 @@ EOF
|
||||
msg_ok "Compiled and Installed Comskip"
|
||||
fi
|
||||
|
||||
if ! grep -qs -- "-Q celery,plugins" /opt/dispatcharr/start-celery.sh; then
|
||||
msg_info "Migrating Celery Workers"
|
||||
cat <<'EOF' >/opt/dispatcharr/start-celery.sh
|
||||
#!/usr/bin/env bash
|
||||
cd /opt/dispatcharr
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
exec uv run celery -A dispatcharr worker -l info -Q celery,plugins -n default@%h --autoscale="${CELERY_MAX_WORKERS:-6},${CELERY_MIN_WORKERS:-1}"
|
||||
EOF
|
||||
cat <<'EOF' >/opt/dispatcharr/start-celery-dvr.sh
|
||||
#!/usr/bin/env bash
|
||||
cd /opt/dispatcharr
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
exec uv run celery -A dispatcharr worker -l info -Q dvr -n dvr@%h --pool=threads --concurrency=20
|
||||
EOF
|
||||
chmod +x /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celery-dvr.sh
|
||||
cat <<EOF >/etc/systemd/system/dispatcharr-celery-dvr.service
|
||||
[Unit]
|
||||
Description=Dispatcharr Celery DVR Worker
|
||||
After=network.target redis-server.service
|
||||
Requires=dispatcharr.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/dispatcharr
|
||||
ExecStart=/opt/dispatcharr/start-celery-dvr.sh
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl daemon-reload
|
||||
systemctl enable -q --now dispatcharr-celery-dvr
|
||||
systemctl restart dispatcharr-celery
|
||||
msg_ok "Migrated Celery Workers"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "Dispatcharr" "Dispatcharr/Dispatcharr"; then
|
||||
msg_info "Stopping Services"
|
||||
systemctl stop dispatcharr-celery
|
||||
systemctl stop dispatcharr-celery-dvr
|
||||
systemctl stop dispatcharr-celerybeat
|
||||
systemctl stop dispatcharr-daphne
|
||||
systemctl stop dispatcharr
|
||||
@@ -130,7 +173,7 @@ EOF
|
||||
if [[ -f /opt/dispatcharr/start-gunicorn.sh ]]; then
|
||||
rm -f /opt/dispatcharr/start-gunicorn.sh
|
||||
fi
|
||||
create_backup /opt/dispatcharr/.env /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
|
||||
create_backup /opt/dispatcharr/.env /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celery-dvr.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
|
||||
if [[ -f /opt/dispatcharr/.env ]]; then
|
||||
set -o allexport
|
||||
source /opt/dispatcharr/.env
|
||||
@@ -213,6 +256,7 @@ EOF
|
||||
msg_info "Starting Services"
|
||||
systemctl start dispatcharr
|
||||
systemctl start dispatcharr-celery
|
||||
systemctl start dispatcharr-celery-dvr
|
||||
systemctl start dispatcharr-celerybeat
|
||||
systemctl start dispatcharr-daphne
|
||||
msg_ok "Started Services"
|
||||
|
||||
@@ -31,6 +31,18 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "frankenphp" "php/frankenphp"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop dreeve
|
||||
msg_ok "Stopped Service"
|
||||
|
||||
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
|
||||
|
||||
msg_info "Starting Service"
|
||||
systemctl start dreeve
|
||||
msg_ok "Started Service"
|
||||
fi
|
||||
|
||||
if check_for_gh_release "dreeve" "dreeveapp/dreeve"; then
|
||||
msg_info "Stopping Service"
|
||||
systemctl stop dreeve
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
|
||||
APP="ERPNext"
|
||||
var_tags="${var_tags:-erp;business;accounting}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-4096}"
|
||||
var_ram="${var_ram:-6144}"
|
||||
var_disk="${var_disk:-20}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
|
||||
@@ -49,8 +49,11 @@ EOF
|
||||
# n8n-nodes-base 2.46.0 pins both @napi-rs/canvas musl binaries as hard
|
||||
# dependencies, which no os/cpu/libc combination can satisfy. Drop --force
|
||||
# once upstream makes them optional again.
|
||||
# npm unpacking n8n from a warm cache peaks at 3.9 GB, from an empty one at 1.4 GB.
|
||||
systemctl stop n8n
|
||||
$STD npm cache clean --force
|
||||
$STD npm install -g n8n@latest --force
|
||||
systemctl restart n8n
|
||||
systemctl start n8n
|
||||
msg_ok "Updated n8n"
|
||||
msg_ok "Updated successfully!"
|
||||
exit
|
||||
|
||||
+1
-23
@@ -30,29 +30,7 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
setup_mariadb
|
||||
CURRENT_PHP=$(php -v 2>/dev/null | awk '/^PHP/{print $2}' | cut -d. -f1,2)
|
||||
|
||||
if [[ "$CURRENT_PHP" != "8.4" ]]; then
|
||||
msg_info "Migrating PHP $CURRENT_PHP to 8.4"
|
||||
$STD curl -fsSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
|
||||
$STD dpkg -i /tmp/debsuryorg-archive-keyring.deb
|
||||
$STD sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
|
||||
cat <<EOF >/etc/apt/sources.list.d/php.sources
|
||||
Types: deb
|
||||
URIs: https://packages.sury.org/php/
|
||||
Suites: $(lsb_release -sc)
|
||||
Components: main
|
||||
Signed-By: /usr/share/keyrings/deb.sury.org-php.gpg
|
||||
EOF
|
||||
apt_update_safe
|
||||
$STD apt remove -y php"${CURRENT_PHP//./}"*
|
||||
$STD apt install -y \
|
||||
php8.4 \
|
||||
php8.4-{gd,mysql,mbstring,bcmath,xml,curl,zip,intl,fpm} \
|
||||
libapache2-mod-php8.4
|
||||
|
||||
msg_ok "Migrated PHP $CURRENT_PHP to 8.4"
|
||||
fi
|
||||
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql" setup_php
|
||||
|
||||
if [[ -f /opt/${APP}_version.txt ]]; then
|
||||
mv /opt/"${APP}_version.txt" ~/.pterodactyl-panel
|
||||
|
||||
@@ -34,7 +34,7 @@ export VITE_APP_VERSION="$(cat ~/.aurral)"
|
||||
export VITE_GITHUB_REPO="lklynet/aurral"
|
||||
export VITE_RELEASE_CHANNEL="stable"
|
||||
$STD pnpm install --frozen-lockfile --config.engine-strict=false --filter aurral-frontend --filter aurral-backend
|
||||
$STD pnpm --filter aurral-frontend run build
|
||||
$STD pnpm --config.engine-strict=false --filter aurral-frontend run build
|
||||
msg_ok "Built Aurral"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
@@ -185,16 +185,26 @@ exec .venv/bin/uwsgi \\
|
||||
EOF
|
||||
chmod +x /opt/dispatcharr/start-uwsgi.sh
|
||||
|
||||
cat <<EOF >/opt/dispatcharr/start-celery.sh
|
||||
cat <<'EOF' >/opt/dispatcharr/start-celery.sh
|
||||
#!/usr/bin/env bash
|
||||
cd /opt/dispatcharr
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
exec uv run celery -A dispatcharr worker -l info -c 4 -Q celery,recordings,dvr,default
|
||||
exec uv run celery -A dispatcharr worker -l info -Q celery,plugins -n default@%h --autoscale="${CELERY_MAX_WORKERS:-6},${CELERY_MIN_WORKERS:-1}"
|
||||
EOF
|
||||
chmod +x /opt/dispatcharr/start-celery.sh
|
||||
|
||||
cat <<'EOF' >/opt/dispatcharr/start-celery-dvr.sh
|
||||
#!/usr/bin/env bash
|
||||
cd /opt/dispatcharr
|
||||
set -a
|
||||
source .env
|
||||
set +a
|
||||
exec uv run celery -A dispatcharr worker -l info -Q dvr -n dvr@%h --pool=threads --concurrency=20
|
||||
EOF
|
||||
chmod +x /opt/dispatcharr/start-celery-dvr.sh
|
||||
|
||||
cat <<EOF >/opt/dispatcharr/start-celerybeat.sh
|
||||
#!/usr/bin/env bash
|
||||
cd /opt/dispatcharr
|
||||
@@ -250,6 +260,24 @@ User=root
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
cat <<EOF >/etc/systemd/system/dispatcharr-celery-dvr.service
|
||||
[Unit]
|
||||
Description=Dispatcharr Celery DVR Worker
|
||||
After=network.target redis-server.service
|
||||
Requires=dispatcharr.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/opt/dispatcharr
|
||||
ExecStart=/opt/dispatcharr/start-celery-dvr.sh
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
cat <<EOF >/etc/systemd/system/dispatcharr-celerybeat.service
|
||||
[Unit]
|
||||
Description=Dispatcharr Celery Beat Scheduler
|
||||
@@ -285,7 +313,7 @@ User=root
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celerybeat dispatcharr-daphne
|
||||
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celery-dvr dispatcharr-celerybeat dispatcharr-daphne
|
||||
msg_ok "Created Services"
|
||||
|
||||
motd_ssh
|
||||
|
||||
@@ -20,8 +20,7 @@ $STD apt install -y \
|
||||
ca-certificates
|
||||
msg_ok "Installed Dependencies"
|
||||
|
||||
# 1.13.0's php-cli shifts the script into argv[1], which breaks composer and bin/console (php/frankenphp#2690); unpin once 1.13.1 is out
|
||||
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "v1.12.7" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
|
||||
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
|
||||
fetch_and_deploy_gh_release "dreeve" "dreeveapp/dreeve" "tarball"
|
||||
|
||||
msg_info "Providing php CLI"
|
||||
|
||||
@@ -224,6 +224,9 @@ sed -i '/^.*unset DEBIAN_FRONTEND.*$/d' /opt/frigate/docker/main/install_deps.sh
|
||||
echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections
|
||||
echo "libedgetpu1-max libedgetpu/install-confirm-max boolean true" | debconf-set-selections
|
||||
echo 'force-overwrite' >/etc/dpkg/dpkg.cfg.d/force-overwrite
|
||||
if [[ "$(arch_resolve)" == "amd64" ]] && download_gpg_key "https://repositories.intel.com/gpu/intel-graphics.key" "/usr/share/keyrings/intel-graphics.gpg" "dearmor"; then
|
||||
sed -i '/intel-graphics.key/d' /opt/frigate/docker/main/install_deps.sh
|
||||
fi
|
||||
$STD bash /opt/frigate/docker/main/install_deps.sh
|
||||
rm -f /etc/dpkg/dpkg.cfg.d/force-overwrite
|
||||
$STD pip3 install -U /wheels/*.whl
|
||||
|
||||
@@ -44,7 +44,7 @@ msg_info "Configuring Sure"
|
||||
KEY="$(openssl rand -hex 64)"
|
||||
mkdir -p /etc/sure
|
||||
mv /opt/sure/.env.example /etc/sure/.env
|
||||
sed -i -e "/^SECRET_KEY_BASE=/s/secret-value/${KEY}/" \
|
||||
sed -i -e "s/^SECRET_KEY_BASE=.*/SECRET_KEY_BASE=${KEY}/" \
|
||||
-e 's/_KEY_BASE=.*$/&\n\nRAILS_FORCE_SSL=false \
|
||||
\
|
||||
# Change to true when using a reverse proxy \
|
||||
|
||||
@@ -119,6 +119,11 @@ EXCLUDE=
|
||||
|
||||
# Healthchecks.io Ping URL (optional)
|
||||
# PING_URL=
|
||||
|
||||
# Remove downloaded packages after each successful update (optional).
|
||||
# Without it, apt and the other package managers keep every package they
|
||||
# download, and the cache grows on each run until the container's disk fills.
|
||||
# CLEAN_CACHE=yes
|
||||
CONF
|
||||
ok "Created config ${CONF_FILE}"
|
||||
fi
|
||||
|
||||
@@ -13,6 +13,7 @@ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
CONF_FILE="/etc/update-lxcs.conf"
|
||||
LOG_FILE="/var/log/update-lxcs-cron.log"
|
||||
PING_URL=""
|
||||
CLEAN_CACHE=""
|
||||
|
||||
# Collect excluded containers from arguments
|
||||
excluded_containers=("$@")
|
||||
@@ -20,6 +21,7 @@ excluded_containers=("$@")
|
||||
# Merge exclusions and healthchecks URL from config file if it exists
|
||||
if [[ -f "$CONF_FILE" ]]; then
|
||||
PING_URL=$(grep -oP '^\s*PING_URL\s*=\s*\K.+' "$CONF_FILE" 2>/dev/null | tr -d '"' | tr -d "'" || true)
|
||||
CLEAN_CACHE=$(grep -oP '^\s*CLEAN_CACHE\s*=\s*\K.+' "$CONF_FILE" 2>/dev/null | tr -d '"' | tr -d "'" || true)
|
||||
conf_exclude=$(grep -oP '^\s*EXCLUDE\s*=\s*\K[0-9,]+' "$CONF_FILE" 2>/dev/null || true)
|
||||
IFS=',' read -ra conf_ids <<<"$conf_exclude"
|
||||
for id in "${conf_ids[@]}"; do
|
||||
@@ -39,6 +41,22 @@ fi
|
||||
|
||||
echo -e "\n $(date)"
|
||||
|
||||
# Remove downloaded package files after a successful update (CLEAN_CACHE=yes).
|
||||
# The upgrade commands keep every package they download, so without this the
|
||||
# cache grows on every run until the container's disk is full.
|
||||
function clean_container() {
|
||||
local container=$1
|
||||
local os=$2
|
||||
echo -e " [Info] Cleaning package cache in $container"
|
||||
case "$os" in
|
||||
alpine) pct exec "$container" -- ash -c "apk cache clean 2>/dev/null || true" ;;
|
||||
archlinux) pct exec "$container" -- bash -c "pacman -Sc --noconfirm" ;;
|
||||
fedora | rocky | centos | alma) pct exec "$container" -- bash -c "dnf -y clean packages" ;;
|
||||
ubuntu | debian | devuan) pct exec "$container" -- bash -c "apt-get clean" ;;
|
||||
opensuse) pct exec "$container" -- bash -c "zypper --non-interactive clean" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function update_container() {
|
||||
local container=$1
|
||||
local name
|
||||
@@ -46,14 +64,22 @@ function update_container() {
|
||||
local os
|
||||
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
|
||||
echo -e "\n [Info] Updating $container : $name (os: $os)"
|
||||
local rc=0
|
||||
case "$os" in
|
||||
alpine) pct exec "$container" -- ash -c "apk -U upgrade" ;;
|
||||
archlinux) pct exec "$container" -- bash -c "pacman -Syyu --noconfirm" ;;
|
||||
fedora | rocky | centos | alma) pct exec "$container" -- bash -c "dnf -y update && dnf -y upgrade" ;;
|
||||
ubuntu | debian | devuan) pct exec "$container" -- bash -c "apt-get update; DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::='--force-confold' dist-upgrade -y; status=\$?; rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED || true; exit \$status" ;;
|
||||
opensuse) pct exec "$container" -- bash -c "zypper ref && zypper --non-interactive dup" ;;
|
||||
*) echo " [Warn] Unknown OS type '$os' for container $container, skipping" ;;
|
||||
esac
|
||||
*)
|
||||
echo " [Warn] Unknown OS type '$os' for container $container, skipping"
|
||||
return 0
|
||||
;;
|
||||
esac || rc=$?
|
||||
if [[ $rc -eq 0 && "${CLEAN_CACHE,,}" =~ ^(1|yes|true)$ ]]; then
|
||||
clean_container "$container" "$os" || echo " [Warn] Cache cleanup failed for $container"
|
||||
fi
|
||||
return $rc
|
||||
}
|
||||
|
||||
update_status=0
|
||||
|
||||
Reference in new issue
Block a user