Skip to content

Commit 98976c9

Browse files
committed
dont update config if Redis is not yet ready
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 534b9b5 commit 98976c9

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

bin/nextcloud-domain.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,12 @@ done
1717
# set "${TRUSTED_DOMAINS[ip]}"
1818
ncc config:system:set trusted_domains 1 --value=${ip}
1919

20-
nc_domain="$(ncc config:system:get overwrite.cli.url)"
21-
set-nc-domain "${nc_domain}" >> /var/log/ncp.log
20+
# we might need to retry if redis is not ready
21+
while :; do
22+
nc_domain="$(ncc config:system:get overwrite.cli.url)" || {
23+
sleep 3
24+
continue
25+
}
26+
set-nc-domain "${nc_domain}" >> /var/log/ncp.log
27+
break
28+
done

changelog.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11

2-
[v1.39.6](https://github.com/nextcloud/nextcloudpi/commit/9018be4) (2021-09-19) ncp-update-nc: pre-check that NC is currently working fine
2+
[v1.39.7](https://github.com/nextcloud/nextcloudpi/commit/5ba3e68) (2021-09-22) dont update config if Redis is not yet ready
33

4-
[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
4+
[v1.39.6 ](https://github.com/nextcloud/nextcloudpi/commit/534b9b5) (2021-09-19) ncp-update-nc: pre-check that NC is currently working fine
55

6-
[v1.39.4 ](https://github.com/nextcloud/nextcloudpi/commit/18a0200) (2021-09-19) improve btrfs/ext checks
6+
[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
77

8-
[v1.39.3](https://github.com/nextcloud/nextcloudpi/commit/08302d8) (2021-09-18) letsencrypt: improve active status check
8+
[v1.39.4 ](https://github.com/nextcloud/nextcloudpi/commit/311cd2b) (2021-09-19) improve btrfs/ext checks
99

10-
[v1.39.2 ](https://github.com/nextcloud/nextcloudpi/commit/fb5a2f3) (2021-09-18) nextcloud-domain: make sure redis is running before it starts
10+
[v1.39.3 ](https://github.com/nextcloud/nextcloudpi/commit/f3e3b01) (2021-09-18) letsencrypt: improve active status check
11+
12+
[v1.39.2 ](https://github.com/nextcloud/nextcloudpi/commit/110311f) (2021-09-18) nextcloud-domain: make sure redis is running before it starts
1113

1214
[v1.39.1 ](https://github.com/nextcloud/nextcloudpi/commit/6290c1f) (2021-09-09) nc-static-IP: take into account httpsonly
1315

0 commit comments

Comments
 (0)