incorrect check if nfs-server installed

This commit is contained in:
Trevor Batley 2023-09-04 18:30:17 +10:00
parent 0f33fc3a55
commit b4276a5410

View File

@ -77,7 +77,7 @@ if [ $KOJI_BUILD_FQDN eq $KOJI_HUB_FQDN ] ; then
else else
## On the HUB ## On the HUB
# check if nfs has been installed on the hub (only need to install once) # check if nfs has been installed on the hub (only need to install once)
if [ ! "dnf list installed | grep nfs-server" ] ; then if [ -z $(dnf list installed | grep nfs-server) ] ; then
# add nfs share for koji files direcory to hub # 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 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 chmod o+x $SCRIPT_DIR/koji-deploy-nfs-server.sh