Skip to content

Commit 262e215

Browse files
committed
not testing for nfs unit correctly
1 parent 2967f3e commit 262e215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

regtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
localhost_name="$1"
4747
if [ -z "$localhost_name" ] ; then localhost_name="localhost" ; fi
4848

49-
nfs_svc=nfs
50-
(systemctl | grep nfs-server) && nfs_svc="nfs-server"
49+
nfs_svc="nfs"
50+
(find /etc/systemd/system | grep nfs-server) && nfs_svc="nfs-server"
5151

5252
# xattrs must be set to zero if using tmpfs, since tmpfs doesn't support xattrs
5353

0 commit comments

Comments
 (0)