Update 00-smb_mounts.sh

This commit is contained in:
Alexandre
2023-12-10 08:52:12 +01:00
committed by GitHub
parent 9e1fd81aa2
commit 3288dc55ec

View File

@@ -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" &&