From b84aa466fc457dca3fbd6f9c3b032260fb0d455d Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 30 Jan 2022 19:49:40 -0500 Subject: [PATCH] Update mqtt_container.sh --- ct/mqtt_container.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/mqtt_container.sh b/ct/mqtt_container.sh index 655f5f4f..2b50996d 100644 --- a/ct/mqtt_container.sh +++ b/ct/mqtt_container.sh @@ -164,7 +164,10 @@ msg "Starting LXC container..." pct start $CTID pct push $CTID mqtt_setup.sh /mqtt_setup.sh -perms 755 pct exec $CTID /mqtt_setup.sh - +LXC_CONFIG=/etc/pve/lxc/${CTID}.conf +cat <> $LXC_CONFIG +unprivileged: 1 +EOF # Get network details and show completion message IP=$(pct exec $CTID ip a s dev eth0 | sed -n '/inet / s/\// /p' | awk '{print $2}') info "Successfully created a MQTT LXC Container to $CTID at IP Address ${IP}"