Update run

This commit is contained in:
Alexandre
2021-02-18 15:44:02 +01:00
committed by GitHub
parent db08e3ad59
commit 05da2f7238

View File

@@ -10,15 +10,16 @@ PGID=0
#################### ####################
# MOUNT SMB SHARES # # MOUNT SMB SHARES #
#################### ####################
# Mount CIFS Share if configured and if Protection Mode is active
if bashio::config.has_value 'networkdisks'; then if bashio::config.has_value 'networkdisks'; then
# Define variables # Mount CIFS Share if configured and if Protection Mode is active
bashio::log.info 'Mounting smb share(s)...'
# Define variables
MOREDISKS=$(bashio::config 'networkdisks') MOREDISKS=$(bashio::config 'networkdisks')
CIFS_USERNAME=$(bashio::config 'cifsusername') CIFS_USERNAME=$(bashio::config 'cifsusername')
CIFS_PASSWORD=$(bashio::config 'cifspassword') CIFS_PASSWORD=$(bashio::config 'cifspassword')
# Mounting disks # Mounting disks
bashio::log.info 'Mounting smb share(s)...'
for disk in ${MOREDISKS//,/ } # Separate comma separated values for disk in ${MOREDISKS//,/ } # Separate comma separated values
do do
disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name disk=$(echo $disk | sed "s,/$,,") # Remove / at end of name
@@ -34,8 +35,6 @@ fi
# SSL CONFIG # # SSL CONFIG #
################ ################
# Clean data
bashio::config.require.ssl bashio::config.require.ssl
if bashio::config.true 'ssl'; then if bashio::config.true 'ssl'; then
bashio::log.info "ssl enabled. If webui don't work, disable ssl or check your certificate paths" bashio::log.info "ssl enabled. If webui don't work, disable ssl or check your certificate paths"