repair smb code

This commit is contained in:
Alexandre
2021-10-23 22:28:29 +02:00
parent 1587b8924c
commit feba18dd4d
20 changed files with 40 additions and 40 deletions

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'

View File

@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
# Dont execute if still default
[ ${MOREDISKS::1} == "<" ] \
&& bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0
&& (bashio::log.warning 'The networkdisks option is set, but starts with the letter "<". IF you want to mount an SMB drive, please use a structure like //123.12.12.12/sharedfolder,//123.12.12.12/sharedfolder2' \
&& exit 0)
# Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'