summaryrefslogtreecommitdiff
path: root/ctdb/config/ctdb-crash-cleanup.sh
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2010-04-23 08:35:01 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2010-04-23 09:08:26 +1000
commit8ef5db522ac5c8a425b8164c9079fa4999f7a081 (patch)
treefc694f33c1de56561b20ce27136033cd3ad86588 /ctdb/config/ctdb-crash-cleanup.sh
parent4f191982ca81c5ea5a7c4319f094c46eab1e5636 (diff)
downloadsamba-8ef5db522ac5c8a425b8164c9079fa4999f7a081.tar.gz
In the example script to remove all ip addresses after a ctdb crash,
add the NATGW address as one to be removed in addition to the public addresses. (This used to be ctdb commit 234b86fb19aae7a43f1dd2c0f69b03164fe5aaca)
Diffstat (limited to 'ctdb/config/ctdb-crash-cleanup.sh')
-rwxr-xr-xctdb/config/ctdb-crash-cleanup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/config/ctdb-crash-cleanup.sh b/ctdb/config/ctdb-crash-cleanup.sh
index ca6a83860d1..420db76727b 100755
--- a/ctdb/config/ctdb-crash-cleanup.sh
+++ b/ctdb/config/ctdb-crash-cleanup.sh
@@ -22,7 +22,7 @@ ctdb status 2>/dev/null && {
exit 0
}
-cat "$CTDB_PUBLIC_ADDRESSES" | cut -d/ -f1 | while read _IP; do
+(cat /etc/sysconfig/ctdb | egrep "^CTDB_NATGW_PUBLIC_IP" | sed -e "s/.*=//" -e "s/\/.*//";cat "$CTDB_PUBLIC_ADDRESSES" | cut -d/ -f1) | while read _IP; do
_IP_HELD=`/sbin/ip addr show | grep "inet $_IP/"`
[ -z "$_IP_HELD" ] || {
_IFACE=`echo $_IP_HELD | sed -e "s/.*\s//"`