Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
1f4a1c1d
Commit
1f4a1c1d
authored
Feb 13, 2018
by
Quanah Gibson-Mount
Browse files
ITS#8800 -- Remove bash requirement
parent
ad52f28d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/data/regressions/its8800/its8800
View file @
1f4a1c1d
#! /bin/
ba
sh
#! /bin/sh
# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
...
...
@@ -78,7 +78,9 @@ while [ $n -le $MMR ]; do
read
foo
fi
KILLPIDS
=
"
$PID
$KILLPIDS
"
PIDS[
$n
]=
"
$PID
"
if
[
$n
=
1
]
;
then
MPID
=
"
$PID
"
fi
sleep
1
echo
"Using ldapsearch to check that provider slapd is running..."
...
...
@@ -127,8 +129,9 @@ sleep 60
echo
"done"
echo
-n
"Stopping MMR1 slapd..."
kill
-HUP
"
${
PIDS
[1]
}
"
wait
${
PIDS
[1]
}
kill
-HUP
$MPID
wait
$MPID
KILLPIDS
=
`
echo
"
$KILLPIDS
"
|
sed
-e
"s/
$MPID
/ /"
`
;
sleep
$SLEEP2
echo
"done"
...
...
@@ -150,7 +153,7 @@ if test $WAIT != 0 ; then
echo
PID
$PID
read
foo
fi
PIDS[1]
=
$PID
KILLPIDS
=
"
$PID
$KILLPIDS
"
sleep
1
echo
"Using ldapsearch to check that provider slapd is running..."
...
...
@@ -165,13 +168,6 @@ for i in 0 1 2 3 4 5; do
sleep
5
done
n
=
1
KILLPIDS
=
while
[
$n
-le
4
]
;
do
KILLPIDS
=
"
${
PIDS
[
$n
]
}
$KILLPIDS
"
n
=
`
expr
$n
+ 1
`
done
if
test
$RC
!=
0
;
then
echo
"ldapsearch failed (
$RC
)!"
test
$KILLSERVERS
!=
no
&&
kill
-HUP
$KILLPIDS
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment