skip directories containing macros (%) in ctdb_check_directories_probe
authorMichael Adam <obnox@samba.org>
Mon, 15 Dec 2008 17:21:37 +0000 (18:21 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 15 Dec 2008 22:51:36 +0000 (09:51 +1100)
This prevents the monitor action of 50.samba from failing
on e.g. a typical [homes] service with "path = /home/%S" .

Michael

config/functions

index 2c744d0c068706621f577911220cf916a0227667..c6295c3f0be8ccb2d2b6bb4332df682d5d46ec8e 100644 (file)
@@ -154,6 +154,7 @@ ctdb_check_directories_probe() {
   wait_dirs="$*"
   [ -z "$wait_dirs" ] && return;
   for d in $wait_dirs; do
+      ( echo $d | grep -q '%' ) && continue
       [ -d $d ] || return 1
   done
   return 0