From ff5ec9ad97009ef421c68a78b72a3b4817f03c04 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 12 Dec 2023 10:43:02 +0100 Subject: [PATCH] Add test of mkdir in addition to test of touch https://github.com/alexbelgium/hassio-addons/issues/1125#issuecomment-1851427927 --- .templates/00-smb_mounts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/00-smb_mounts.sh b/.templates/00-smb_mounts.sh index e067b8646..273cf7cc0 100755 --- a/.templates/00-smb_mounts.sh +++ b/.templates/00-smb_mounts.sh @@ -182,7 +182,7 @@ if bashio::config.has_value 'networkdisks'; then #Test write permissions # shellcheck disable=SC2015 - touch "/mnt/$diskname/testaze" && rm "/mnt/$diskname/testaze" && + mkdir "/mnt/$diskname/testaze" && touch "/mnt/$diskname/testaze/testaze" && rm -r "/mnt/$diskname/testaze" && bashio::log.info "...... $disk successfully mounted to /mnt/$diskname with options $MOUNTOPTIONS" || ( touch ERRORCODE && bashio::log.fatal "Disk is mounted, however unable to write in the shared disk. Please check UID/GID for permissions, and if the share is rw" )