From 8b0d6024d099b72a577a3476a100320844cdcae5 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Wed, 13 Sep 2023 10:36:11 +1000 Subject: [PATCH] update hub configs to point at web server --- install-koji-farm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install-koji-farm.sh b/install-koji-farm.sh index adbdf93..65938ae 100644 --- a/install-koji-farm.sh +++ b/install-koji-farm.sh @@ -141,6 +141,9 @@ else echo "- add this server into the /etc/hosts file on this server" 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 # 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