repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
CVE-2018-1057: s4:dsdb/acl: add check for DSDB_CONTROL_PASSWORD_HASH_VALUES_OID control
[Samba.git]
/
ctdb
/
tests
/
test_check_tcp_ports.sh
blob
1272d885c59ad3283243e16ff99e916fec6f1e61
1
#!/bin/sh
2
3
DIRNAME
=
$
(
dirname
$0
)
4
5
CTDB_BASE
=
"
${DIRNAME}
/../config"
6
.
"
${CTDB_BASE}
/functions"
7
8
SERVICE
=
"test-service"
9
10
PORTS
=
"$@"
11
12
if
[
"x
${PORTS}
"
=
"x"
] ;
then
13
PORTS
=
139
14
fi
15
16
ctdb_check_tcp_ports
${SERVICE} ${PORTS}
17
18
echo
"Test for service '
${SERVICE}
' on tcp ports
${PORTS}
succeeded!"