Skip to content

Commit

Permalink
fix(nfs): fix nfs install
Browse files Browse the repository at this point in the history
fix nfs install

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Sep 14, 2023
1 parent 46cd9af commit 7c836bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/manifests/storage/nfs-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/}
Expand Down

0 comments on commit 7c836bc

Please sign in to comment.