The default output formatting of lists in testparm has changed
from " " separator to ", " separator. Our original eventscript
code stumbles across port "445,". Map away that comma... :-)
This has been fixed in master and 2.5 silently as part of
a bigger rewrite.
Signed-off-by: Michael Adam <obnox@samba.org>
smb_ports="$CTDB_SAMBA_CHECK_PORTS"
[ -z "$smb_ports" ] && {
- smb_ports=`testparm_cat --parameter-name="smb ports"`
+ smb_ports=`testparm_cat --parameter-name="smb ports" |
+ sed -e 's/,/ /g'`
}
ctdb_check_tcp_ports $smb_ports || exit $?
}