mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
ctdb-scripts: Add default for public addresses file where missing
This makes it consistent with the rest of the script code. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
0519c513ad
commit
c8dfd4fe5a
@ -207,7 +207,7 @@ get_config_for_ip ()
|
||||
if [ "$_ip" = "$_i" ] ; then
|
||||
printf "%s" "$_ip "; ipv4_host_addr_to_net "$_ip" "$_maskbits"
|
||||
fi
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-/dev/null}"
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-${CTDB_BASE}/public_addresses}"
|
||||
else
|
||||
while read _i _rest ; do
|
||||
if [ "$_ip" = "$_i" ] ; then
|
||||
|
@ -592,7 +592,7 @@ drop_all_public_ips ()
|
||||
# shellcheck disable=SC2034
|
||||
while read _ip _x ; do
|
||||
drop_ip "$_ip"
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-/dev/null}"
|
||||
done <"${CTDB_PUBLIC_ADDRESSES:-${CTDB_BASE}/public_addresses}"
|
||||
}
|
||||
|
||||
flush_route_cache ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user