1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

nicer use of testparm

(This used to be ctdb commit a611ea930fb9dae6e56f6a74b2bdc9e08066d4d1)
This commit is contained in:
Andrew Tridgell 2007-09-14 09:24:34 +10:00
parent 2f86c3f827
commit 9cf96a5e4c

View File

@ -50,7 +50,7 @@ case $cmd in
nice service smb start
# wait for the Samba tcp ports to become available
smb_ports=`testparm -sv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
smb_ports=`testparm -s --parameter-name="smb ports" 2> /dev/null`
ctdb_wait_tcp_ports "Samba" $smb_ports
# wait for winbind to be ready
@ -96,7 +96,7 @@ case $cmd in
smb_dirs=`testparm -s 2> /dev/null | egrep '^\s*path = ' | cut -d= -f2`
ctdb_check_directories "Samba" $smb_dirs
smb_ports=`testparm -sv 2> /dev/null | egrep '\s*smb ports =' | cut -d= -f2`
smb_ports=`testparm -s --parameter-name="smb ports" 2> /dev/null`
ctdb_check_tcp_ports "Samba" $smb_ports
# check winbind is OK