ctdb-eventscripts: Improve check in NATGW "startup" event
commit8a3be1f1a979b8058cf7754632d60ab52d066d5c
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Mar 2014 03:07:17 +0000 (7 14:07 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 26 Mar 2014 03:21:42 +0000 (26 04:21 +0100)
tree30832e269a5548f0a2517d8e0730c6825be1caf7
parente22a22b1f72f75507941b5652bb9a0a2f42dd22f
ctdb-eventscripts: Improve check in NATGW "startup" event

Although the dots in $CTDB_NATGW_PUBLIC_IP could probably only help
match an invalid public IP address, this is only executed once so do
as exact a check as possible.

Use CTDB_BASE instead of hardcoding /etc/ctdb.

Make the error message less redundant.

Signed-off-by: Martin Schwenke <martin@meltin.net>
ctdb/config/events.d/11.natgw