mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-25 02:57:28 +01:00
fix sed statements
This commit is contained in:
parent
92603d594b
commit
d404df554a
@ -142,8 +142,18 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# update hub config files to point at web server
|
# update hub config files to point at web server
|
||||||
sed 's,KojiWebURL.*,KojiWebURL = http://$KOJI_WEB_FQDN/koji,g' /etc/koji-hub/hub.conf
|
sed -i '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
|
sed -i 's,weburl.*,weburl = http://$KOJI_WEB_FQDN/koji,g' /etc/koji.conf
|
||||||
|
# check if nfs has been installed on the hub (only need to install once)
|
||||||
|
if [[ -z $(dnf list installed | grep nfs-server) ]] ; then
|
||||||
|
# add nfs share for koji files direcory to hub
|
||||||
|
curl $SILENT $SCRIPT_GIT/koji-deploy-nfs-server.sh > $SCRIPT_DIR/koji-deploy-nfs-server.sh
|
||||||
|
chmod o+x $SCRIPT_DIR/koji-deploy-nfs-server.sh
|
||||||
|
koji-deploy-nfs-server.sh $DEBUG
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add web server to nfs exports line for /mnt/koji
|
||||||
|
sed -i '/^\/mnt\/koji/ s/$/ $KOJI_WEB_FQDN(ro,no_root_squash)/g' /etc/exports
|
||||||
# generate a hub ssh key if there isn't one already (for scp & ssh to web server)
|
# generate a hub ssh key if there isn't one already (for scp & ssh to web server)
|
||||||
if [ ! -f /root/.ssh/id-rsa ] ; then
|
if [ ! -f /root/.ssh/id-rsa ] ; then
|
||||||
# create a ssh key on build server
|
# create a ssh key on build server
|
||||||
|
Loading…
Reference in New Issue
Block a user