diff --git a/zerotier/rootfs/etc/cont-init.d/zerotier.sh b/zerotier/rootfs/etc/cont-init.d/zerotier.sh index 6ff27b3..f264189 100644 --- a/zerotier/rootfs/etc/cont-init.d/zerotier.sh +++ b/zerotier/rootfs/etc/cont-init.d/zerotier.sh @@ -52,13 +52,13 @@ mkdir -p "/var/lib/zerotier-one/networks.d" \ # Install user configured/requested packages if bashio::config.has_value 'networks'; then while read -r network; do + bashio::log.info "Configuring network: ${network}" + # Get network ID from secrets, if it is a secret if bashio::is_secret "${network}"; then network=$(bashio::secret "${network}") fi - bashio::log.info "Configuring network: ${network}" - # Ensure the file exists. An empty file will cause automatic join. touch "/data/network.${network}.conf" ln -s \