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-09-22 09:35:09 +0300
committernachoparker <nacho@ownyourbits.com>2021-09-22 09:48:06 +0300
commit98976c91b36770d9f1a22f3fba93d8cc7333a94f (patch)
tree5ccaed77fc054338d63f943d901e13863711c937 /bin/nextcloud-domain.sh
parent534b9b505d3c91e688a1c22a4ab7eddf58204132 (diff)
dont update config if Redis is not yet readyv1.39.7
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/nextcloud-domain.sh')
-rw-r--r--bin/nextcloud-domain.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/nextcloud-domain.sh b/bin/nextcloud-domain.sh
index 6016c96d..33235133 100644
--- a/bin/nextcloud-domain.sh
+++ b/bin/nextcloud-domain.sh
@@ -17,5 +17,12 @@ done
# set "${TRUSTED_DOMAINS[ip]}"
ncc config:system:set trusted_domains 1 --value=${ip}
-nc_domain="$(ncc config:system:get overwrite.cli.url)"
-set-nc-domain "${nc_domain}" >> /var/log/ncp.log
+# we might need to retry if redis is not ready
+while :; do
+ nc_domain="$(ncc config:system:get overwrite.cli.url)" || {
+ sleep 3
+ continue
+ }
+ set-nc-domain "${nc_domain}" >> /var/log/ncp.log
+ break
+done