Compare commits

..
Author SHA1 Message Date
MickLesk 56964fae1f Dreeve: follow FrankenPHP releases for PHP 8.6
Dreeve 5.9.3 requires PHP 8.6, but FrankenPHP was pinned to 1.12.7, which
ships PHP 8.5, so composer install failed. The pin worked around the argv
bug in 1.13.0, fixed in 1.13.1; 1.14.0 ships PHP 8.6. The update never
touched FrankenPHP, so existing installs would have failed the same way on
their next Dreeve update; it now updates FrankenPHP first.
2026-12-02 10:01:34 +01:00
12 changed files with 34 additions and 145 deletions

No files matched your search

-22
View File
@@ -597,28 +597,6 @@ 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
View File
@@ -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 --config.engine-strict=false --filter aurral-frontend run build
$STD pnpm --filter aurral-frontend run build
mkdir -p /opt/aurral_data
cat <<EOF >/opt/aurral/aurral.env
NODE_ENV=production
+1 -6
View File
@@ -30,18 +30,13 @@ function update_script() {
ensure_dependencies build-essential
if command -v cross-seed &>/dev/null; then
current_version=$(node -p "require('$(npm root -g)/cross-seed/package.json').version")
current_version=$(cross-seed --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
+1 -45
View File
@@ -117,52 +117,9 @@ 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
@@ -173,7 +130,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-celery-dvr.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
create_backup /opt/dispatcharr/.env /opt/dispatcharr/start-celery.sh /opt/dispatcharr/start-celerybeat.sh /opt/dispatcharr/start-daphne.sh
if [[ -f /opt/dispatcharr/.env ]]; then
set -o allexport
source /opt/dispatcharr/.env
@@ -256,7 +213,6 @@ 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"
+1 -1
View File
@@ -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:-6144}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-20}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
+23 -1
View File
@@ -30,7 +30,29 @@ function update_script() {
exit
fi
setup_mariadb
PHP_VERSION="8.4" PHP_APACHE="YES" PHP_FPM="YES" PHP_MODULE="mysql" setup_php
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
if [[ -f /opt/${APP}_version.txt ]]; then
mv /opt/"${APP}_version.txt" ~/.pterodactyl-panel
+1 -1
View File
@@ -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 --config.engine-strict=false --filter aurral-frontend run build
$STD pnpm --filter aurral-frontend run build
msg_ok "Built Aurral"
msg_info "Creating Service"
+3 -31
View File
@@ -185,26 +185,16 @@ 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 -Q celery,plugins -n default@%h --autoscale="${CELERY_MAX_WORKERS:-6},${CELERY_MIN_WORKERS:-1}"
exec uv run celery -A dispatcharr worker -l info -c 4 -Q celery,recordings,dvr,default
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
@@ -260,24 +250,6 @@ 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
@@ -313,7 +285,7 @@ User=root
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celery-dvr dispatcharr-celerybeat dispatcharr-daphne
systemctl enable -q --now dispatcharr dispatcharr-celery dispatcharr-celerybeat dispatcharr-daphne
msg_ok "Created Services"
motd_ssh
-3
View File
@@ -224,9 +224,6 @@ 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
+1 -1
View File
@@ -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 "s/^SECRET_KEY_BASE=.*/SECRET_KEY_BASE=${KEY}/" \
sed -i -e "/^SECRET_KEY_BASE=/s/secret-value/${KEY}/" \
-e 's/_KEY_BASE=.*$/&\n\nRAILS_FORCE_SSL=false \
\
# Change to true when using a reverse proxy \
-5
View File
@@ -119,11 +119,6 @@ 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
+2 -28
View File
@@ -13,7 +13,6 @@ 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=("$@")
@@ -21,7 +20,6 @@ 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
@@ -41,22 +39,6 @@ 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
@@ -64,22 +46,14 @@ 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"
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
*) echo " [Warn] Unknown OS type '$os' for container $container, skipping" ;;
esac
}
update_status=0