Compare commits

...
Author SHA1 Message Date
MickLesk 145e0526b9 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 16:56:35 +01:00
MickLesk 067ddf764e 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.
2026-11-17 14:52:21 +01:00
MickLesk 26a2c0b76f Fetch libssl1.1 for deCONZ over HTTPS on arm64 2026-11-17 14:16:58 +01:00
2 changed files with 7 additions and 3 deletions

No files matched your search

+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"