Compare commits

..
Author SHA1 Message Date
github-actions[bot] b4f498258e Update CHANGELOG.md 2026-11-21 17:38:02 +00:00
CanbiZ (MickLesk) 9fc9151d4a Change Detection: create the SockPuppetBrowser unit whenever it is missing (#18895)
* Change Detection: create the SockPuppetBrowser unit whenever it is missing

The update wrote sockpuppetbrowser.service only while replacing Browserless,
then restarted it unconditionally. A container without browserless.service
(installs before 2023-05, or a lost unit) had SockPuppetBrowser deployed and
the update stopped with "Unit sockpuppetbrowser.service not found" (exit 5).

* ref

Removed outdated comments regarding Browserless and SockPuppetBrowser.
2026-11-21 18:37:46 +01:00
CanbiZ (MickLesk) 6abc44fae9 Switch Pinchflat to the maintained Pinchflat-NGX fork (#18897)
Install and update build TheBadFella/Pinchflat-NGX. The first update of an
original Pinchflat container keeps a backup of .env, app and config (without
metadata and logs) in /opt/pinchflat-pre-ngx.tar.gz and runs the database
migration before the service starts, outside the systemd start timeout.
2026-11-21 18:35:54 +01:00
CanbiZ (MickLesk) f12f29a24d fstrim: read the root volume from the container config (#18894)
The LVM usage before and after the trim looked for vm-<id>-disk-0 only, so
a restored or moved container (vm-<id>-disk-1) showed "not available
(non-LVM storage)" although the trim worked (#18888). The volume now comes
from /etc/pve/lxc/<id>.conf, a file read with no pct call per container.
2026-11-21 18:35:52 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 4ccabbe475 Update CHANGELOG.md (#18901)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-21 17:33:38 +00:00
CanbiZ (MickLesk) 0b13c1288f HAOS VM: fall back to Home Assistant's own hosts for version and image (#18900)
* HAOS VM: fall back to Home Assistant's own hosts for version and image

40 runs in 14 days failed downloading the image from GitHub Releases, 18
of them outside the GitHub outage. os-artifacts.home-assistant.io serves
the same file (identical sha256), and version.home-assistant.io the same
channel files.

* Add alternative URL for Home Assistant image fetc
2026-11-21 18:33:08 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 561add6ad7 Update CHANGELOG.md (#18896)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-21 14:39:33 +00:00
8 changed files with 110 additions and 33 deletions

No files matched your search

+26
View File
@@ -584,6 +584,32 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-21
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Change Detection: create the SockPuppetBrowser unit whenever it is missing [@MickLesk](https://github.com/MickLesk) ([#18895](https://github.com/community-scripts/ProxmoxVE/pull/18895))
- #### ✨ New Features
- Switch Pinchflat to the maintained Pinchflat-NGX fork [@MickLesk](https://github.com/MickLesk) ([#18897](https://github.com/community-scripts/ProxmoxVE/pull/18897))
- #### 🔧 Refactor
- HAOS VM: fall back to Home Assistant's own hosts for version and image [@MickLesk](https://github.com/MickLesk) ([#18900](https://github.com/community-scripts/ProxmoxVE/pull/18900))
### 💾 Core
- Tell a dead connection from a non-JSON answer in forge API calls [@MickLesk](https://github.com/MickLesk) ([core#285](https://github.com/community-scripts/core/pull/285))
### 🧰 Tools
- #### ✨ New Features
- fstrim: read the root volume from the container config [@MickLesk](https://github.com/MickLesk) ([#18894](https://github.com/community-scripts/ProxmoxVE/pull/18894))
## 2026-11-20
### 🆕 New Scripts
+10 -5
View File
@@ -93,6 +93,15 @@ function update_script() {
rm -rf /opt/browserless /root/.cache/ms-playwright
$STD apt purge -y microsoft-edge-stable
rm -f /etc/apt/sources.list.d/microsoft-edge-stable.list
sed -i 's/browserless\.service/sockpuppetbrowser.service/g' "$SERVICE_FILE"
sed -i -e '/^WEBDRIVER_URL=/d' \
-e 's|^PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome.*|PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true\&--window-size=1920,1080|' \
/opt/changedetection/.env
msg_ok "Replaced Browserless with SockPuppetBrowser"
fi
if [[ ! -f /etc/systemd/system/sockpuppetbrowser.service ]]; then
msg_info "Creating SockPuppetBrowser Service"
cat <<EOF >/etc/systemd/system/sockpuppetbrowser.service
[Unit]
Description=SockPuppetBrowser
@@ -110,13 +119,9 @@ Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
sed -i 's/browserless\.service/sockpuppetbrowser.service/g' "$SERVICE_FILE"
sed -i -e '/^WEBDRIVER_URL=/d' \
-e 's|^PLAYWRIGHT_DRIVER_URL=ws://localhost:3000/chrome.*|PLAYWRIGHT_DRIVER_URL=ws://127.0.0.1:3000/?headful=true\&--window-size=1920,1080|' \
/opt/changedetection/.env
systemctl daemon-reload
systemctl enable -q sockpuppetbrowser
msg_ok "Replaced Browserless with SockPuppetBrowser"
msg_ok "Created SockPuppetBrowser Service"
fi
systemctl daemon-reload
+36 -15
View File
@@ -32,24 +32,45 @@ function update_script() {
exit
fi
# Since 26.10 the REST API is off by default and answers 404, so compare the
# installed build with the version FileFlows' own updater asks for.
current_version=$(grep -h -m1 -oP '"FileFlows\.(Server|Agent)/\K[0-9.]+' /opt/fileflows/Server/FileFlows.Server.deps.json /opt/fileflows/Agent/FileFlows.Agent.deps.json 2>/dev/null | head -n1 || true)
latest_version=$(curl -fsSL --max-time 20 "https://fileflows.com/auto-update/latest-version?platform=linux" 2>/dev/null | tr -d '[:space:]' || true)
local proceed=false
if [[ "${FORCE_UPDATE:-}" == "1" ]]; then
msg_warn "FORCE_UPDATE=1: updating without the version check"
elif [[ ! "$latest_version" =~ ^[0-9]+(\.[0-9]+)+$ ]]; then
msg_warn "Could not get the latest ${APP} version from fileflows.com"
if ! prompt_confirm "${TAB3}Update without the version check?" "n" 60; then
msg_warn "Update skipped. Run 'FORCE_UPDATE=1 update' to update without the version check."
exit
if systemctl list-unit-files 'fileflows.service' --no-legend 2>/dev/null | grep -q '^fileflows\.service'; then
tmp=$(mktemp)
http_code=$(curl -sSL -X 'GET' "http://localhost:19200/api/status/update-available" -H 'accept: application/json' -o "$tmp" -w '%{http_code}' 2>/dev/null) || http_code="000"
if [[ "$http_code" == "200" ]]; then
update_available=$(jq -r '.UpdateAvailable // false' "$tmp" 2>/dev/null)
rm -f "$tmp"
if [[ "${update_available}" == "true" ]]; then
proceed=true
else
msg_ok "No update required. ${APP} is already at latest version"
exit
fi
else
rm -f "$tmp"
if [[ "$http_code" == "401" ]]; then
msg_warn "Could not check for updates: API returned 401 (security may be enabled)."
else
msg_warn "Could not check for updates: API unreachable (HTTP ${http_code})."
fi
if [[ "${FORCE_UPDATE:-}" == "1" ]]; then
proceed=true
else
read -r -p "${TAB3}Force update without version check? [y/N]: " CONFIRM
if [[ "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then
proceed=true
else
msg_error "Update aborted."
exit
fi
fi
fi
elif [[ -n "$current_version" && "$(printf '%s\n' "$current_version" "$latest_version" | sort -V | tail -n1)" == "$current_version" ]]; then
msg_ok "No update required. ${APP} is already at v${current_version}"
exit
else
msg_ok "Update available: ${current_version:-unknown} -> ${latest_version}"
proceed=true
fi
if [[ "$proceed" != "true" ]]; then
exit
fi
msg_info "Stopping Service"
+22 -5
View File
@@ -4,7 +4,7 @@ source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_
# Copyright (c) 2021-2026 community-scripts ORG
# Author: nnsense
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kieraneglin/pinchflat
# Source: https://github.com/TheBadFella/Pinchflat-NGX
APP="Pinchflat"
var_tags="${var_tags:-media;youtube;downloader}"
@@ -32,17 +32,27 @@ function update_script() {
exit 1
fi
if check_for_gh_release "pinchflat" "kieraneglin/pinchflat"; then
if check_for_gh_release "pinchflat" "TheBadFella/Pinchflat-NGX"; then
msg_info "Stopping Service"
systemctl stop pinchflat
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pinchflat" "kieraneglin/pinchflat" "tarball" "latest" "/opt/pinchflat-src"
if [[ ! -f /opt/pinchflat-src/lib/pinchflat/legacy_migration.ex && ! -f /opt/pinchflat-pre-ngx.tar.gz ]]; then
NGX_SWITCH=1
msg_info "Backing up Pinchflat before the switch to Pinchflat-NGX"
tar -czf /opt/pinchflat-pre-ngx.tar.gz.part -C /opt/pinchflat --exclude=config/metadata --exclude=config/logs .env app config
mv /opt/pinchflat-pre-ngx.tar.gz.part /opt/pinchflat-pre-ngx.tar.gz
msg_ok "Backed up to /opt/pinchflat-pre-ngx.tar.gz"
fi
msg_info "Building Pinchflat"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "pinchflat" "TheBadFella/Pinchflat-NGX" "tarball" "latest" "/opt/pinchflat-src"
msg_info "Building Pinchflat-NGX"
cd /opt/pinchflat-src
export MIX_ENV=prod
export ERL_FLAGS="+JPperf true"
$STD mix local.hex --force
$STD mix local.rebar --force
$STD mix deps.get --only prod
$STD mix deps.compile
$STD yarn --cwd assets install
@@ -51,11 +61,18 @@ function update_script() {
$STD mix release --overwrite
rm -rf /opt/pinchflat/app
cp -r _build/prod/rel/pinchflat /opt/pinchflat/app
msg_ok "Built Pinchflat"
msg_ok "Built Pinchflat-NGX"
msg_info "Migrating Database"
$STD systemd-run --wait --pipe --quiet --collect -p EnvironmentFile=/opt/pinchflat/.env -p WorkingDirectory=/opt/pinchflat/app /opt/pinchflat/app/bin/migrate
msg_ok "Migrated Database"
msg_info "Starting Service"
systemctl start pinchflat
msg_ok "Started Service"
if [[ -n "${NGX_SWITCH:-}" ]]; then
msg_warn "Open the web UI and confirm the migration review, downloads stay on hold until then"
fi
msg_ok "Updated successfully!"
fi
exit
+2 -2
View File
@@ -46,9 +46,9 @@ $STD ln -svf /usr/bin/ffprobe /usr/local/bin/ffprobe
$STD rm -rf /opt/fileflows/Server/runtimes/win-*
install_server="${var_fileflows_mode:-}"
[[ -n "$install_server" ]] || read -r -p "${TAB3}Do you want to install FileFlows Server or Agent? (S/a): " install_server || true
[[ -n "$install_server" ]] || read -r -p "${TAB3}Do you want to install FileFlows Server or Agent? (S/A): " install_server || true
if [[ ! "$install_server" =~ ^[Aa]$ ]]; then
if [[ "$install_server" =~ ^[Ss]$ ]]; then
msg_info "Installing FileFlows Server"
cd /opt/fileflows/Server
$STD dotnet FileFlows.Server.dll --systemd install --root true
+4 -4
View File
@@ -3,7 +3,7 @@
# Copyright (c) 2021-2026 community-scripts ORG
# Author: nnsense
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/kieraneglin/pinchflat
# Source: https://github.com/TheBadFella/Pinchflat-NGX
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
@@ -48,7 +48,7 @@ export PIPX_BIN_DIR=/usr/local/bin
$STD pipx install apprise
msg_ok "Installed Apprise"
fetch_and_deploy_gh_release "pinchflat" "kieraneglin/pinchflat" "tarball" "latest" "/opt/pinchflat-src"
fetch_and_deploy_gh_release "pinchflat" "TheBadFella/Pinchflat-NGX" "tarball" "latest" "/opt/pinchflat-src"
msg_info "Configuring Pinchflat"
CONFIG_PATH="/opt/pinchflat/config"
@@ -81,7 +81,7 @@ SECRET_KEY_BASE=$(openssl rand -base64 48)
EOF
msg_ok "Configured Pinchflat"
msg_info "Building Pinchflat"
msg_info "Building Pinchflat-NGX"
cd /opt/pinchflat-src
export MIX_ENV=prod
export ERL_FLAGS="+JPperf true"
@@ -95,7 +95,7 @@ $STD mix compile
$STD mix release --overwrite
rm -rf /opt/pinchflat/app
cp -r _build/prod/rel/pinchflat /opt/pinchflat/app
msg_ok "Built Pinchflat"
msg_ok "Built Pinchflat-NGX"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/pinchflat.service
+5 -1
View File
@@ -108,7 +108,11 @@ function trim_container() {
echo -e "${BL}[Info]${GN} Trimming ${BL}$container${CL} \n"
local before_trim after_trim
local lv_name="vm-${container}-disk-0"
# A restored or moved container's root is not always disk-0; the volume comes
# from its config file, which needs no pct call.
local lv_name
lv_name="$(awk -F'[:,]' '/^rootfs:/ {print $3; exit}' "/etc/pve/lxc/${container}.conf" 2>/dev/null)"
[[ -n "$lv_name" ]] || lv_name="vm-${container}-disk-0"
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}"
+5 -1
View File
@@ -18,6 +18,7 @@ DISK_SIZE="32G"
for channel in stable beta dev; do
channel_version=$(curl -fsSL "https://raw.githubusercontent.com/home-assistant/version/master/${channel}.json" | grep '"ova"' | cut -d '"' -f 4) || channel_version=""
[ -n "$channel_version" ] || channel_version=$(curl -fsSL "https://version.home-assistant.io/${channel}.json" | grep '"ova"' | cut -d '"' -f 4) || channel_version=""
printf -v "$channel" '%s' "$channel_version"
done
if [ -z "$stable" ]; then
@@ -117,7 +118,10 @@ fi
CACHE_FILE="$(vm_image_cache_path "$URL")"
msg_ok "${CL}${BL}${URL}${CL}"
vm_fetch_image "$URL" "$CACHE_FILE" --cache --verify-xz || exit 115
ALT_URL="https://os-artifacts.home-assistant.io/${BRANCH}/haos_ova-${BRANCH}.qcow2.xz"
if ! vm_fetch_image "$URL" "$CACHE_FILE" --cache --verify-xz; then
[ "$URL" != "$ALT_URL" ] && vm_fetch_image "$ALT_URL" "$CACHE_FILE" --cache --verify-xz || exit 115
fi
msg_info "Creating Home Assistant OS VM shell"
qm create $VMID${MACHINE} -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \