mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02:00
Update run
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user