From bf8cb273768d6e449eccefbcd44c7f9bd00c8350 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Jan 2022 19:50:09 -0500 Subject: [PATCH] Update zigbee2mqtt_container.sh --- ct/zigbee2mqtt_container.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/zigbee2mqtt_container.sh b/ct/zigbee2mqtt_container.sh index d3676dab..b1e7bb7b 100644 --- a/ct/zigbee2mqtt_container.sh +++ b/ct/zigbee2mqtt_container.sh @@ -159,7 +159,10 @@ echo -e "${CHECKMARK} \e[1;92m Starting LXC Container... \e[0m" pct start $CTID pct push $CTID zigbee2mqtt_setup.sh /zigbee2mqtt_setup.sh -perms 755 pct exec $CTID /zigbee2mqtt_setup.sh - +LXC_CONFIG=/etc/pve/lxc/${CTID}.conf +cat <> $LXC_CONFIG +unprivileged: 1 +EOF IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') info "Successfully created zigbee2mqtt LXC Container to $CTID at IP Address ${IP}" echo