mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
repair smb code
This commit is contained in:
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
|
|
||||||
# Dont execute if still default
|
# Dont execute if still default
|
||||||
[ ${MOREDISKS::1} == "<" ] \
|
[ ${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' \
|
&& (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
|
&& exit 0)
|
||||||
|
|
||||||
# Mount CIFS Share if configured and if Protection Mode is active
|
# Mount CIFS Share if configured and if Protection Mode is active
|
||||||
bashio::log.info 'Mounting smb share(s)...'
|
bashio::log.info 'Mounting smb share(s)...'
|
||||||
|
|||||||
Reference in New Issue
Block a user