diff --git a/samba/CHANGELOG.md b/samba/CHANGELOG.md index 241b128..85d7911 100644 --- a/samba/CHANGELOG.md +++ b/samba/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 9.6.1 + +- Remove lo from interface list +- Exit with error if there are no supported interfaces to run Samba on + ## 9.6.0 - Run on all supported interfaces diff --git a/samba/config.yaml b/samba/config.yaml index ab8f5d8..1cc6603 100644 --- a/samba/config.yaml +++ b/samba/config.yaml @@ -1,5 +1,5 @@ --- -version: 9.6.0 +version: 9.6.1 slug: samba name: Samba share description: Expose Home Assistant folders with SMB/CIFS diff --git a/samba/rootfs/etc/cont-init.d/samba.sh b/samba/rootfs/etc/cont-init.d/samba.sh index e2fd12e..70c2548 100755 --- a/samba/rootfs/etc/cont-init.d/samba.sh +++ b/samba/rootfs/etc/cont-init.d/samba.sh @@ -4,7 +4,7 @@ # ============================================================================== declare password declare username -declare -a interfaces +declare -a interfaces=() export HOSTNAME # Check Login data @@ -24,7 +24,9 @@ bashio::log.info "Hostname: ${HOSTNAME}" for interface in $(bashio::network.interfaces); do interfaces+=("${interface}") done -interfaces+=("lo") +if [ ${#interfaces[@]} -eq 0 ]; then + bashio::exit.nok 'No supported interfaces found to bind on.' +fi bashio::log.info "Interfaces: $(printf '%s ' "${interfaces[@]}")" # Generate Samba configuration.