update hub configs to point at web server

This commit is contained in:
Trevor Batley 2023-09-13 10:36:11 +10:00
parent fdc0aa0b3b
commit 8b0d6024d0

View File

@ -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