mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-03 23:54:55 +02:00
Comma separated domains
This commit is contained in:
@@ -31,7 +31,8 @@ $LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted doma
|
|||||||
TRUSTEDDOMAINS=$(bashio::config 'trusted_domains')
|
TRUSTEDDOMAINS=$(bashio::config 'trusted_domains')
|
||||||
bashio::log.info "... alignement with trusted domains list : ${TRUSTEDDOMAINS}" && \
|
bashio::log.info "... alignement with trusted domains list : ${TRUSTEDDOMAINS}" && \
|
||||||
i=2
|
i=2
|
||||||
for domain in $TRUSTEDDOMAINS
|
|
||||||
|
for domain in {$TRUSTEDDOMAINS//,/ } # Comma separated values
|
||||||
do
|
do
|
||||||
bashio::log.info "... adding ${domain}" && \
|
bashio::log.info "... adding ${domain}" && \
|
||||||
$LAUNCHER config:system:set trusted_domains $i --value=${domain} && \
|
$LAUNCHER config:system:set trusted_domains $i --value=${domain} && \
|
||||||
|
|||||||
Reference in New Issue
Block a user