nfs-utils and export fix

This commit is contained in:
Trevor Batley 2023-11-16 14:59:21 +11:00
parent 8b8c08d4d1
commit a185018a9b
2 changed files with 8 additions and 3 deletions

View File

@ -31,7 +31,9 @@ fi
source "$SCRIPT_DIR"/koji-parameters.sh source "$SCRIPT_DIR"/koji-parameters.sh
# Install nfs-utils # Install nfs-utils
if [[ -z $(dnf list installed | grep nfs-utils) ]] ; then
dnf install -y nfs-utils $QUIET dnf install -y nfs-utils $QUIET
fi
KOJI_MOUNT_SERVICE="${KOJI_DIR:1}" KOJI_MOUNT_SERVICE="${KOJI_DIR:1}"
KOJI_MOUNT_SERVICE="${KOJI_MOUNT_SERVICE/\//-}".mount KOJI_MOUNT_SERVICE="${KOJI_MOUNT_SERVICE/\//-}".mount

View File

@ -30,10 +30,13 @@ if [ ! -f "$SCRIPT_DIR"/koji-parameters.sh ] ; then
fi fi
source "$SCRIPT_DIR"/koji-parameters.sh source "$SCRIPT_DIR"/koji-parameters.sh
# Install nfs-utils
if [[ -z $(dnf list installed | grep nfs-utils) ]] ; then
dnf install -y nfs-utils $QUIET dnf install -y nfs-utils $QUIET
fi
# Export server directory to be mounted by clients - add script will add clients # Export server directory to be mounted by clients - add script will add clients
echo "$KOJI_DIR" >> /etc/exports echo $KOJI_DIR >> /etc/exports
# allow nfs usage in selinux and firewall # allow nfs usage in selinux and firewall
setsebool -P httpd_use_nfs=1 setsebool -P httpd_use_nfs=1