]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
when public interface is not set, print this to the logfile before
authorRonnie Sahlberg <sahlberg@ronnie>
Sun, 10 Jun 2007 22:42:51 +0000 (08:42 +1000)
committerRonnie Sahlberg <sahlberg@ronnie>
Sun, 10 Jun 2007 22:42:51 +0000 (08:42 +1000)
exiting the script

(This used to be ctdb commit 79f4a9faea7583aad6f39733d019ba416a4be6e5)

ctdb/config/events.d/10.interface

index ac2428047c10162f2b62020c3bf651d033e50b58..35d9c01e13c8c8635615cbde4b6e29a90f39a020 100755 (executable)
@@ -8,7 +8,10 @@
 . /etc/ctdb/functions
 loadconfig ctdb
 
-[ -z "$CTDB_PUBLIC_INTERFACE" ] && exit 0
+[ -z "$CTDB_PUBLIC_INTERFACE" ] && {
+     echo "Event script $0 : CTDB_PUBLIC_INTERFACE not set. Nothing to do."
+     exit 0
+}
 
 cmd="$1"
 shift