From 5811ea0bdd9e035c006737b53073572f5586dbaf Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 10 Apr 2023 18:07:44 +0200 Subject: [PATCH] Allow multiple mounts https://github.com/alexbelgium/hassio-addons/issues/786 --- .templates/00-smb_mounts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 15f7d529c..c0b022d72 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -11,7 +11,7 @@ if bashio::config.has_value 'networkdisks'; then MOREDISKS=$(bashio::config 'networkdisks') CIFS_USERNAME=$(bashio::config 'cifsusername') CIFS_PASSWORD=$(bashio::config 'cifspassword') - MOUNTED=false + SMBVERS="" SECVERS="" @@ -50,6 +50,7 @@ if bashio::config.has_value 'networkdisks'; then disk="${disk//"\040"/ }" #replace \040 with diskname="${disk//\\//}" #replace \ with / diskname="${diskname##*/}" # Get only last part of the name + MOUNTED=false # Data validation if [[ ! $disk =~ ^.*+[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[/]+.*+$ ]]; then