fix: auto-fix linting issues

This commit is contained in:
alexbelgium
2025-07-23 08:58:09 +00:00
committed by github-actions[bot]
parent 3539f328fb
commit f5428e0950
224 changed files with 5663 additions and 5662 deletions

View File

@@ -19,33 +19,34 @@ LAUNCHER="sudo -u abc php /app/www/public/occ"
if bashio::config.has_value 'trusted_domains'; then
bashio::log.info "Currently set trusted domains :"
$LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted domain set yet. The first one will be set when doing initial configuration"
bashio::log.info "Currently set trusted domains :"
$LAUNCHER config:system:get trusted_domains || bashio::log.info "No trusted domain set yet. The first one will be set when doing initial configuration"
bashio::log.info "Trusted domains set in the configuration. Refreshing domains." &&
###################################
# Remove previous trusted domains #
###################################
bashio::log.info "... removing previously added trusted domain (except for first one created)"
i=2
until [ $i -gt 5 ]; do
$LAUNCHER config:system:delete trusted_domains $i &&
((i = i + 1)) || exit
done
bashio::log.info "Trusted domains set in the configuration. Refreshing domains." \
&&
###################################
# Remove previous trusted domains #
###################################
bashio::log.info "... removing previously added trusted domain (except for first one created)"
i=2
until [ $i -gt 5 ]; do
$LAUNCHER config:system:delete trusted_domains $i \
&& ((i = i + 1)) || exit
done
###########################
# Add new trusted domains #
###########################
TRUSTEDDOMAINS=$(bashio::config 'trusted_domains')
bashio::log.info "... alignement with trusted domains list : ${TRUSTEDDOMAINS}"
for domain in ${TRUSTEDDOMAINS//,/ }; do # Comma separated values
bashio::log.info "... adding ${domain}"
# shellcheck disable=SC2086
$LAUNCHER config:system:set trusted_domains $i --value="${domain}"
i=$((i + 1))
done
###########################
# Add new trusted domains #
###########################
TRUSTEDDOMAINS=$(bashio::config 'trusted_domains')
bashio::log.info "... alignement with trusted domains list : ${TRUSTEDDOMAINS}"
for domain in ${TRUSTEDDOMAINS//,/ }; do # Comma separated values
bashio::log.info "... adding ${domain}"
# shellcheck disable=SC2086
$LAUNCHER config:system:set trusted_domains $i --value="${domain}"
i=$((i + 1))
done
bashio::log.info "Remaining configurated trusted domains :"
bashio::log.info "$($LAUNCHER config:system:get trusted_domains)" || exit
bashio::log.info "Remaining configurated trusted domains :"
bashio::log.info "$($LAUNCHER config:system:get trusted_domains)" || exit
fi