mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-26 10:33:40 +02:00
Check if smb default
Do not create error message if default SMB value not modified
This commit is contained in:
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -68,8 +68,6 @@ fi || true
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -78,6 +76,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@
|
|||||||
# MOUNT SMB SHARES #
|
# MOUNT SMB SHARES #
|
||||||
####################
|
####################
|
||||||
if bashio::config.has_value 'networkdisks'; then
|
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
|
# Define variables
|
||||||
MOREDISKS=$(bashio::config 'networkdisks')
|
MOREDISKS=$(bashio::config 'networkdisks')
|
||||||
@@ -14,6 +12,12 @@ if bashio::config.has_value 'networkdisks'; then
|
|||||||
MOUNTED=false
|
MOUNTED=false
|
||||||
SMBVERS=""
|
SMBVERS=""
|
||||||
SECVERS=""
|
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
|
if bashio::config.has_value 'cifsdomain'; then
|
||||||
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
DOMAIN=",domain=$(bashio::config 'cifsdomain')"
|
||||||
|
|||||||
Reference in New Issue
Block a user