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:
Diffstat (limited to 'bin/nextcloud-domain.sh')
-rw-r--r--bin/nextcloud-domain.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/nextcloud-domain.sh b/bin/nextcloud-domain.sh
index 33235133..39556889 100644
--- a/bin/nextcloud-domain.sh
+++ b/bin/nextcloud-domain.sh
@@ -23,6 +23,9 @@ while :; do
sleep 3
continue
}
+ # Fix the situation where junk was introduced in the config by mistake
+ # because Redis was not yet ready to be used even if it was up
+ [[ "${nc_domain}" =~ "RedisException" ]] && nc_domain="$(hostname)"
set-nc-domain "${nc_domain}" >> /var/log/ncp.log
break
done