diff options
author | nachoparker <nacho@ownyourbits.com> | 2021-09-22 18:38:25 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2021-09-22 18:38:28 +0300 |
commit | 814569be56e37ccf22ad0f6e2ba4fdc0c7cb2264 (patch) | |
tree | 082bf77cc97b1f0eb5037d9cd74a6dbc53b83d53 /bin/nextcloud-domain.sh | |
parent | 4039da90a91e76b2757c0cec47e641318aa76b75 (diff) |
fix junk in overwrite.cli.url because of Redis not being yet readyv1.39.12
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/nextcloud-domain.sh')
-rw-r--r-- | bin/nextcloud-domain.sh | 3 |
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 |