diff --git a/hack/manifests/storage/nfs-server.sh b/hack/manifests/storage/nfs-server.sh index 1bdf11c2..56db3523 100644 --- a/hack/manifests/storage/nfs-server.sh +++ b/hack/manifests/storage/nfs-server.sh @@ -3,17 +3,17 @@ if type apt >/dev/null 2>&1; then apt update apt install -y nfs-common nfs-kernel-server - systemctl enable rpcbind --now - systemctl enable nfs-server --now elif type yum >/dev/null 2>&1; then + yum makecache yum install -y nfs-utils - systemctl enable rpcbind --now - systemctl enable nfs --now else echo "Neither apt-get nor yum found" >&2 exit 1 fi +systemctl enable rpcbind --now +systemctl enable nfs-server --now + [ -f "/etc/exports" ] && cp -a /etc/exports /etc/exports.bak SPATH=${1:-/opt/quickon/storage/nfs/}