mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
events/50.samba: only use wbinfo --ping-dc if available
metze (This used to be ctdb commit 7b73834ba3ac197cc8a3020c111f9bb2c567e70b)
This commit is contained in:
parent
2c80c91c87
commit
af170d1a8a
@ -247,7 +247,12 @@ case "$1" in
|
|||||||
# check winbind is OK
|
# check winbind is OK
|
||||||
check_ctdb_manages_winbind
|
check_ctdb_manages_winbind
|
||||||
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
|
[ "$CTDB_MANAGES_WINBIND" = "yes" ] && {
|
||||||
ctdb_check_command "winbind" "wbinfo --ping-dc"
|
TMP_PING_DC=`wbinfo --help |grep '\-\-ping\-dc' |wc -l`
|
||||||
|
if test x"$TMP_PING_DC" = x"1"; then
|
||||||
|
ctdb_check_command "winbind" "wbinfo --ping-dc"
|
||||||
|
else
|
||||||
|
ctdb_check_command "winbind" "wbinfo --ping"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user