1
0
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:
Martin Schwenke 2018-02-22 18:48:23 +11:00 committed by Martin Schwenke
parent 0519c513ad
commit c8dfd4fe5a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 ()