Check if smb default

Do not create error message if default SMB value not modified
This commit is contained in:
Alexandre Pary
2021-10-13 11:33:31 +02:00
parent 2ec284f69b
commit ca832d23dd
15 changed files with 78 additions and 26 deletions

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -68,8 +68,6 @@ fi || true
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -78,6 +76,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"

View File

@@ -4,8 +4,6 @@
# MOUNT SMB SHARES #
####################
if bashio::config.has_value 'networkdisks'; then
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks')
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
MOUNTED=false
SMBVERS=""
SECVERS=""
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] && exit 0
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
if bashio::config.has_value 'cifsdomain'; then
DOMAIN=",domain=$(bashio::config 'cifsdomain')"