Rev 463: ignore commented out entries in /etc/exports in
http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Jun 4 13:54:23 GMT 2007
------------------------------------------------------------
revno: 463
revision-id: tridge at samba.org-20070604135422-rwce57vf3ps6ipn8
parent: tridge at samba.org-20070604135212-nbfooxyvqyaiyata
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-06-04 23:54:22 +1000
message:
ignore commented out entries in /etc/exports
modified:
config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1
=== modified file 'config/events.d/60.nfs'
--- a/config/events.d/60.nfs 2007-06-04 05:09:03 +0000
+++ b/config/events.d/60.nfs 2007-06-04 13:54:22 +0000
@@ -14,7 +14,7 @@
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
More information about the samba-cvs
mailing list