mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-24 23:00:42 +00:00
* 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.
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
|
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
|
# Copyright (c) 2021-2026 tteck
|
|
# Author: tteck (tteckster)
|
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
|
# Source: https://www.phoscon.de/en/conbee2/software#deconz
|
|
|
|
APP="deCONZ"
|
|
var_tags="${var_tags:-zigbee}"
|
|
var_cpu="${var_cpu:-2}"
|
|
var_ram="${var_ram:-1024}"
|
|
var_disk="${var_disk:-4}"
|
|
var_os="${var_os:-debian}"
|
|
var_version="${var_version:-13}"
|
|
var_arm64="${var_arm64:-yes}"
|
|
var_unprivileged="${var_unprivileged:-0}"
|
|
|
|
header_info "$APP"
|
|
variables
|
|
color
|
|
catch_errors
|
|
|
|
function update_script() {
|
|
header_info
|
|
check_container_storage
|
|
check_container_resources
|
|
if [[ ! -f /etc/apt/sources.list.d/deconz.list && ! -f /etc/apt/sources.list.d/deconz.sources ]]; then
|
|
msg_error "No ${APP} Installation Found!"
|
|
exit
|
|
fi
|
|
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
|
|
}
|
|
|
|
start
|
|
build_container
|
|
description
|
|
|
|
msg_ok "Completed successfully!\n"
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
|
|
echo -e "${GATEWAY}${BGN}http://${IP}${CL}"
|