Compare commits

..
Author SHA1 Message Date
community-scripts-pr-app[bot]andgithub-actions[bot] c14a75252d Update CHANGELOG.md (#18871)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-20 16:35:24 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] 4ab1f0db0d Update CHANGELOG.md (#18866)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-20 16:22:59 +00:00
CanbiZ (MickLesk) 9be50420da deCONZ: fetch libssl1.1 over HTTPS on arm64 (#18798)
* Fetch libssl1.1 for deCONZ over HTTPS on arm64

* deCONZ: start in privileged Incus containers, skip an update with nothing new

The postinst gives /usr/bin/deCONZ the sys_time and sys_boot file caps; a
privileged Incus container lacks them in its bounding set, so exec failed
with 'Operation not permitted'. The service runs as root and needs none, so
an apt hook drops them after every dpkg run. The update now upgrades deconz
only when a newer version exists.

* deCONZ: drop the file caps right after install and update

The apt hook and the version check go. setcap -r now runs once after the
install and after apt upgrade in the update. The service runs as root and
needs none of the caps; in a privileged Incus container they make exec fail.
2026-11-20 17:22:32 +01:00
4 changed files with 13 additions and 9 deletions

No files matched your search

+6 -1
View File
@@ -588,13 +588,18 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- deCONZ: fetch libssl1.1 over HTTPS on arm64 [@MickLesk](https://github.com/MickLesk) ([#18798](https://github.com/community-scripts/ProxmoxVE/pull/18798))
- #### ✨ New Features
- Stalwart: migrate to v1 with stalwart-migrate [@MickLesk](https://github.com/MickLesk) ([#18794](https://github.com/community-scripts/ProxmoxVE/pull/18794))
### 💾 Core
- fix: vm - name why an image step failed and open one message for the disk import [@MickLesk](https://github.com/MickLesk) ([core#279](https://github.com/community-scripts/core/pull/279))
- core: Keep the root filesystem lookup a soft failure [@MickLesk](https://github.com/MickLesk) ([core#280](https://github.com/community-scripts/core/pull/280))
- fix: vm - name why an image step failed and open one message for the disk import [@MickLesk](https://github.com/MickLesk) ([core#279](https://github.com/community-scripts/core/pull/279))
## 2026-11-19
+2
View File
@@ -32,6 +32,8 @@ function update_script() {
msg_info "Updating deCONZ"
apt_update_safe
$STD apt upgrade -y
setcap -r /usr/bin/deCONZ 2>/dev/null || true
systemctl restart deconz
msg_ok "Updated deCONZ"
msg_ok "Updated successfully!"
exit
+5 -3
View File
@@ -22,11 +22,13 @@ setup_deb822_repo \
msg_ok "Setup Phoscon Repository"
msg_info "Installing deConz"
pool="$(arch_resolve "https://security.ubuntu.com/ubuntu/pool/main/o/openssl/" "http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/")"
libssl=$(curl -fsSL --proto '=http,https' "$pool" | grep -o "libssl1\.1_1\.1\.1f-1ubuntu2\.2[^\"]*$(arch_resolve)\.deb" | head -n1)
curl -fsSL --proto '=http,https' "$pool$libssl" -o "$libssl"
pool="$(arch_resolve "https://security.ubuntu.com/ubuntu/pool/main/o/openssl/" "https://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/")"
libssl=$(curl -fsSL --proto '=https' "$pool" | grep -o "libssl1\.1_1\.1\.1f-1ubuntu2\.2[^\"]*$(arch_resolve)\.deb" | head -n1)
curl -fsSL --proto '=https' "$pool$libssl" -o "$libssl"
$STD dpkg -i "$libssl"
$STD apt install -y deconz
# The service runs as root; the postinst file caps break exec in privileged Incus containers
setcap -r /usr/bin/deCONZ 2>/dev/null || true
rm -rf "$libssl"
msg_ok "Installed deConz"
-5
View File
@@ -68,11 +68,6 @@ yq -i "
(map(select(. != \"TZ=*\" and . != \"ACME_EMAIL=*\" and . != \"INITIAL_ADMIN_EMAIL=*\" and . != \"INITIAL_ADMIN_PASSWORD=*\")) +
[\"TZ=$TZ_INPUT\", \"ACME_EMAIL=$ACME_EMAIL_INPUT\", \"INITIAL_ADMIN_EMAIL=admin@local.com\", \"INITIAL_ADMIN_PASSWORD=${ADMIN_PASS}\"])
" /opt/compose.yaml
# nginx in the NPMplus image cannot parse a link-local resolver with a zone ID (fe80::1%eth0)
DNS_SERVERS="$(awk '/^nameserver/ && $2 !~ /%/ {print $2}' /etc/resolv.conf)"
if grep -qE '^nameserver[[:space:]]+[^[:space:]]*%' /etc/resolv.conf && [[ -n "$DNS_SERVERS" ]]; then
DNS_SERVERS="$DNS_SERVERS" yq -i '.services.npmplus.dns = (strenv(DNS_SERVERS) | split("\n"))' /opt/compose.yaml
fi
{
echo "NPMplus Credentials"
echo "Email: admin@local.com"