mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-25 15:30:32 +02:00
Update 61-trusted_domains
This commit is contained in:
@@ -29,14 +29,11 @@ $LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted doma
|
|||||||
# Add new trusted domains #
|
# Add new trusted domains #
|
||||||
###########################
|
###########################
|
||||||
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
|
for domain in ${TRUSTEDDOMAINS//,/ } # Comma separated values
|
||||||
|
|
||||||
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}
|
||||||
((i=i+1))
|
|
||||||
done
|
done
|
||||||
|
|
||||||
bashio::log.info "Remaining configurated trusted domains :"
|
bashio::log.info "Remaining configurated trusted domains :"
|
||||||
|
|||||||
Reference in New Issue
Block a user