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
parent534b9b505d3c91e688a1c22a4ab7eddf58204132 (diff)
dont update config if Redis is not yet readyv1.39.7
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r--bin/nextcloud-domain.sh11
-rw-r--r--changelog.md12
2 files changed, 16 insertions, 7 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
diff --git a/changelog.md b/changelog.md
index a9a6ad3b..7fd1e89c 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,13 +1,15 @@
-[v1.39.6](https://github.com/nextcloud/nextcloudpi/commit/9018be4) (2021-09-19) ncp-update-nc: pre-check that NC is currently working fine
+[v1.39.7](https://github.com/nextcloud/nextcloudpi/commit/5ba3e68) (2021-09-22) dont update config if Redis is not yet ready
-[v1.39.5 ](https://github.com/nextcloud/nextcloudpi/commit/dca742a) (2021-09-19) ncp-update-nc: dont keep notifying when there is nothing to upgrade
+[v1.39.6 ](https://github.com/nextcloud/nextcloudpi/commit/534b9b5) (2021-09-19) ncp-update-nc: pre-check that NC is currently working fine
-[v1.39.4 ](https://github.com/nextcloud/nextcloudpi/commit/18a0200) (2021-09-19) improve btrfs/ext checks
+[v1.39.5 ](https://github.com/nextcloud/nextcloudpi/commit/cb184d2) (2021-09-19) ncp-update-nc: dont keep notifying when there is nothing to upgrade
-[v1.39.3](https://github.com/nextcloud/nextcloudpi/commit/08302d8) (2021-09-18) letsencrypt: improve active status check
+[v1.39.4 ](https://github.com/nextcloud/nextcloudpi/commit/311cd2b) (2021-09-19) improve btrfs/ext checks
-[v1.39.2 ](https://github.com/nextcloud/nextcloudpi/commit/fb5a2f3) (2021-09-18) nextcloud-domain: make sure redis is running before it starts
+[v1.39.3 ](https://github.com/nextcloud/nextcloudpi/commit/f3e3b01) (2021-09-18) letsencrypt: improve active status check
+
+[v1.39.2 ](https://github.com/nextcloud/nextcloudpi/commit/110311f) (2021-09-18) nextcloud-domain: make sure redis is running before it starts
[v1.39.1 ](https://github.com/nextcloud/nextcloudpi/commit/6290c1f) (2021-09-09) nc-static-IP: take into account httpsonly