mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-26 10:49:56 +02:00
Update zigbee2mqtt_container.sh
This commit is contained in:
parent
b84aa466fc
commit
bf8cb27376
@ -159,7 +159,10 @@ echo -e "${CHECKMARK} \e[1;92m Starting LXC Container... \e[0m"
|
|||||||
pct start $CTID
|
pct start $CTID
|
||||||
pct push $CTID zigbee2mqtt_setup.sh /zigbee2mqtt_setup.sh -perms 755
|
pct push $CTID zigbee2mqtt_setup.sh /zigbee2mqtt_setup.sh -perms 755
|
||||||
pct exec $CTID /zigbee2mqtt_setup.sh
|
pct exec $CTID /zigbee2mqtt_setup.sh
|
||||||
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
||||||
|
cat <<EOF >> $LXC_CONFIG
|
||||||
|
unprivileged: 1
|
||||||
|
EOF
|
||||||
IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}')
|
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}"
|
info "Successfully created zigbee2mqtt LXC Container to $CTID at IP Address ${IP}"
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user