Skip to content

Commit 7c836bc

Browse files
committed
fix(nfs): fix nfs install
fix nfs install Signed-off-by: ysicing <[email protected]>
1 parent 46cd9af commit 7c836bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hack/manifests/storage/nfs-server.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
if type apt >/dev/null 2>&1; then
44
apt update
55
apt install -y nfs-common nfs-kernel-server
6-
systemctl enable rpcbind --now
7-
systemctl enable nfs-server --now
86
elif type yum >/dev/null 2>&1; then
7+
yum makecache
98
yum install -y nfs-utils
10-
systemctl enable rpcbind --now
11-
systemctl enable nfs --now
129
else
1310
echo "Neither apt-get nor yum found" >&2
1411
exit 1
1512
fi
1613

14+
systemctl enable rpcbind --now
15+
systemctl enable nfs-server --now
16+
1717
[ -f "/etc/exports" ] && cp -a /etc/exports /etc/exports.bak
1818

1919
SPATH=${1:-/opt/quickon/storage/nfs/}

0 commit comments

Comments
 (0)