Compare commits

..
Author SHA1 Message Date
MickLesk 3cf265ea86 Switch Pinchflat to the maintained Pinchflat-NGX fork
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 15:38:20 +01:00
4 changed files with 7 additions and 46 deletions

No files matched your search

-26
View File
@@ -584,32 +584,6 @@ 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
+5 -10
View File
@@ -93,15 +93,6 @@ 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
@@ -119,9 +110,13 @@ 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 "Created SockPuppetBrowser Service"
msg_ok "Replaced Browserless with SockPuppetBrowser"
fi
systemctl daemon-reload
+1 -5
View File
@@ -108,11 +108,7 @@ function trim_container() {
echo -e "${BL}[Info]${GN} Trimming ${BL}$container${CL} \n"
local before_trim after_trim
# 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"
local 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}"
+1 -5
View File
@@ -18,7 +18,6 @@ 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
@@ -118,10 +117,7 @@ fi
CACHE_FILE="$(vm_image_cache_path "$URL")"
msg_ok "${CL}${BL}${URL}${CL}"
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
vm_fetch_image "$URL" "$CACHE_FILE" --cache --verify-xz || exit 115
msg_info "Creating Home Assistant OS VM shell"
qm create $VMID${MACHINE} -bios ovmf -agent 1 -tablet 0 -localtime 1 ${CPU_TYPE} \