From 2d95d16310d65ac25a6f5faebd6e0871d49c89e0 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 29 Sep 2023 05:52:11 +0200 Subject: [PATCH] Sleep and stop --- .templates/00-smb_mounts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 504bdcf7147..fe65ed3f7f8 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -144,12 +144,15 @@ if bashio::config.has_value 'networkdisks'; then # Error code mount -t cifs -o "rw,file_mode=0775,dir_mode=0775,username=$CIFS_USERNAME,password=${CIFS_PASSWORD},nobrl$DOMAINVAR" "$disk" /mnt/"$diskname" 2>ERRORCODE || MOUNTED=false - bashio::log.fatal "Error read : $(/dev/null || true rmdir "/mnt/$diskname" || true + + sleep 1m + bashio::addon.stop fi done