Update mqtt_container.sh

This commit is contained in:
tteckster 2022-01-30 20:22:32 -05:00 committed by GitHub
parent 0e4a266b16
commit 1b466bd189
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -164,10 +164,6 @@ msg "Starting LXC container..."
pct start $CTID pct start $CTID
pct push $CTID mqtt_setup.sh /mqtt_setup.sh -perms 755 pct push $CTID mqtt_setup.sh /mqtt_setup.sh -perms 755
pct exec $CTID /mqtt_setup.sh pct exec $CTID /mqtt_setup.sh
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
cat <<EOF >> $LXC_CONFIG
unprivileged: 1
EOF
# Get network details and show completion message # Get network details and show completion message
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 a MQTT LXC Container to $CTID at IP Address ${IP}" info "Successfully created a MQTT LXC Container to $CTID at IP Address ${IP}"