diff --git a/nextcloud/root/etc/cont-init.d/52-trusted_domains b/nextcloud/root/etc/cont-init.d/52-trusted_domains index 9c3b1b945..650306687 100644 --- a/nextcloud/root/etc/cont-init.d/52-trusted_domains +++ b/nextcloud/root/etc/cont-init.d/52-trusted_domains @@ -2,6 +2,7 @@ if bashio::config.has_value 'trusted_domains'; then bashio::log.info "Trusted domains set in the configuration. Refreshing domains." && \ + LAUNCHER=`find / -name "occ"` ################################### # Remove previous trusted domains # ################################### @@ -9,7 +10,7 @@ if bashio::config.has_value 'trusted_domains'; then i=2 until [ $i -gt 5 ] do - /usr/bin/occ config:system:delete trusted_domains $i && \ + $LAUNCHER config:system:delete trusted_domains $i && \ ((i=i+1)) done @@ -22,10 +23,10 @@ if bashio::config.has_value 'trusted_domains'; then for domain in $TRUSTEDDOMAINS do bashio::log.info "... adding ${domain}" && \ - /usr/bin/occ config:system:set trusted_domains $i --value=${domain} && \ + $LAUNCHER config:system:set trusted_domains $i --value=${domain} && \ ((i=i+1)) done fi bashio::log.info "Remaining configurated trusted domains :" -bashio::log.info `/usr/bin/occ config:system:get trusted_domains` +bashio::log.info `$LAUNCHER config:system:get trusted_domains`