mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
eventscripts: Don't update static routes on "recovered" event
Routes only need to be updated when IPs have moved. IP takeover runs will generate "ipreallocated", which is enough. "recovered" always follows "ipreallocated" anyway, so avoid the redundancy. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 1152215fc69217e4292762e28d193b7ea0e06ee3)
This commit is contained in:
parent
3132550a88
commit
04c31bf50d
@ -23,7 +23,7 @@ loadconfig
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
recovered|ipreallocated)
|
||||
ipreallocated)
|
||||
while read iface dest gw; do
|
||||
ip route add "$dest" via "$gw" dev "$iface" >/dev/null 2>&1
|
||||
done <"${CTDB_BASE}/static-routes"
|
||||
|
Loading…
Reference in New Issue
Block a user