From 8adfafd6497fea7bb5963a97736ad12502a2db66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Sun, 7 Aug 2022 11:31:53 +0300 Subject: [PATCH] fix: always use v4 localhost connection address for redis --- xo-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xo-install.sh b/xo-install.sh index c11500f..9ad1d51 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -767,10 +767,10 @@ function InstallXO { echo printinfo "Fixing relative path to xo-web installation in xo-server configuration file" - # shellcheck disable=SC1117 runcmd "sed -i \"s%#'/any/url' = '/path/to/directory'%'/' = '$INSTALLDIR/xo-web/dist/'%\" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/sample.config.toml" - sleep 2 + printinfo "Changing redis connection address in xo-server configuration file" + runcmd "sed -i \"s%#uri = 'redis://redis.company.lan/42'%uri = 'redis://127.0.0.1:6379/0'%\" $INSTALLDIR/xo-builds/xen-orchestra-$TIME/packages/xo-server/sample.config.toml" if [[ "$PORT" != "80" ]]; then printinfo "Changing port in xo-server configuration file"