Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-10-15 18:01:20 +0300
committernachoparker <nacho@ownyourbits.com>2021-10-15 18:01:20 +0300
commitcf4cfd81a86a8752d7a57063a2e2d1cac6701379 (patch)
treed77465cb894804d729eeeeb7df20f3960b8d6641 /bin/nextcloud-domain.sh
parentc75db632609460aeac90ee05244cda48aa5f400a (diff)
also save hostname in trusted domainsv1.41.2
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/nextcloud-domain.sh')
-rw-r--r--bin/nextcloud-domain.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nextcloud-domain.sh b/bin/nextcloud-domain.sh
index f15c7a39..3267ed0c 100644
--- a/bin/nextcloud-domain.sh
+++ b/bin/nextcloud-domain.sh
@@ -13,8 +13,8 @@ while :; do
sleep 3
done
-# set "${TRUSTED_DOMAINS[ip]}"
-ncc config:system:set trusted_domains 1 --value=${ip}
+ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[ip]}" --value="${ip}"
+ncc config:system:set trusted_domains "${TRUSTED_DOMAINS[hostname]}" --value="$(hostname -f)"
# we might need to retry if redis is not ready
while :; do