From 24956fadee26b97ee67eeef423fa954e6b9494fb Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 14 Sep 2023 08:52:06 +1000 Subject: [PATCH] fix sed of web url --- install-koji-farm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-koji-farm.sh b/install-koji-farm.sh index 65938ae..4c8045d 100644 --- a/install-koji-farm.sh +++ b/install-koji-farm.sh @@ -142,8 +142,8 @@ else exit 1 fi # update hub config files to point at web server - sed -i s/KojiWebURL*/KojiWebURL = http://$KOJI_WEB_FQDN\/koji/ /etc/koji-hub/hub.conf - sed -i s/weburl*/weburl = http://$KOJI_WEB_FQDN\/koji/ /etc/koji.conf + sed 's,KojiWebURL.*,KojiWebURL = http://$KOJI_WEB_FQDN/koji,g' /etc/koji-hub/hub.conf + sed 's,weburl.*,weburl = http://$KOJI_WEB_FQDN/koji,g' /etc/koji.conf # generate a hub ssh key if there isn't one already (for scp & ssh to web server) if [ ! -f /root/.ssh/id-rsa ] ; then # create a ssh key on build server