mirror of
https://src.koozali.org/infra/smeserver-koji.git
synced 2024-11-23 10:07:28 +01:00
nfs-utils and export fix
This commit is contained in:
parent
8b8c08d4d1
commit
a185018a9b
@ -31,7 +31,9 @@ fi
|
||||
source "$SCRIPT_DIR"/koji-parameters.sh
|
||||
|
||||
# Install nfs-utils
|
||||
if [[ -z $(dnf list installed | grep nfs-utils) ]] ; then
|
||||
dnf install -y nfs-utils $QUIET
|
||||
fi
|
||||
|
||||
KOJI_MOUNT_SERVICE="${KOJI_DIR:1}"
|
||||
KOJI_MOUNT_SERVICE="${KOJI_MOUNT_SERVICE/\//-}".mount
|
||||
|
@ -30,10 +30,13 @@ if [ ! -f "$SCRIPT_DIR"/koji-parameters.sh ] ; then
|
||||
fi
|
||||
source "$SCRIPT_DIR"/koji-parameters.sh
|
||||
|
||||
# Install nfs-utils
|
||||
if [[ -z $(dnf list installed | grep nfs-utils) ]] ; then
|
||||
dnf install -y nfs-utils $QUIET
|
||||
fi
|
||||
|
||||
# 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
|
||||
setsebool -P httpd_use_nfs=1
|
||||
|
Loading…
Reference in New Issue
Block a user