]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ignore commented out entries in /etc/exports
authorAndrew Tridgell <tridge@samba.org>
Mon, 4 Jun 2007 13:54:22 +0000 (23:54 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 4 Jun 2007 13:54:22 +0000 (23:54 +1000)
(This used to be ctdb commit d316b49ba46e819359f045adfd87da92860fd1b5)

ctdb/config/events.d/60.nfs

index d0e892622e8c51542c1900e59ff5a3e56d6318a2..23fdb088826e2d82a7634ed7a4380338b0cd26e4 100755 (executable)
@@ -14,7 +14,7 @@ case $cmd in
        mkdir -p /etc/ctdb/state/nfs
 
        # wait for all nfs exported directories to become available
-       nfs_dirs=`cut -d' ' -f1 /etc/exports`
+       nfs_dirs=`grep -v '^#' < /etc/exports | cut -d' ' -f1`
        ctdb_wait_directories "NFS" $nfs_dirs
 
        service nfs start