From 3288dc55ec27766f742138d4e9ef8c1896ed3181 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 10 Dec 2023 08:52:12 +0100 Subject: [PATCH] Update 00-smb_mounts.sh --- .templates/00-smb_mounts.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index 2ad0133b0..e067b8646 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -174,7 +174,12 @@ if bashio::config.has_value 'networkdisks'; then # Messages if [ "$MOUNTED" = true ] && mountpoint -q /mnt/"$diskname"; then - rm ERRORCODE + + # Remove errorcode + if [ -f ERRORCODE ]; then + rm ERRORCODE + fi + #Test write permissions # shellcheck disable=SC2015 touch "/mnt/$diskname/testaze" && rm "/mnt/$diskname/testaze" &&