mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 23:04:09 +02:00
Update 00-smb_mounts.sh
This commit is contained in:
@@ -174,7 +174,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Messages
|
# Messages
|
||||||
if [ "$MOUNTED" = true ] && mountpoint -q /mnt/"$diskname"; then
|
if [ "$MOUNTED" = true ] && mountpoint -q /mnt/"$diskname"; then
|
||||||
rm ERRORCODE
|
|
||||||
|
# Remove errorcode
|
||||||
|
if [ -f ERRORCODE ]; then
|
||||||
|
rm ERRORCODE
|
||||||
|
fi
|
||||||
|
|
||||||
#Test write permissions
|
#Test write permissions
|
||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
touch "/mnt/$diskname/testaze" && rm "/mnt/$diskname/testaze" &&
|
touch "/mnt/$diskname/testaze" && rm "/mnt/$diskname/testaze" &&
|
||||||
|
|||||||
Reference in New Issue
Block a user