summaryrefslogtreecommitdiffstats
path: root/wrappers
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2007-02-12 20:10:21 +0000
committerRich Megginson <rmeggins@redhat.com>2007-02-12 20:10:21 +0000
commitebed5efa09b77c7b5c655c9578bcd1329ab85409 (patch)
tree128d255be2bda5b8178c86e4e1b64b63eb135347 /wrappers
parentaf73c83095230073f2c521e9e6faadbe0c17ddb5 (diff)
downloadds-ebed5efa09b77c7b5c655c9578bcd1329ab85409.tar.gz
ds-ebed5efa09b77c7b5c655c9578bcd1329ab85409.tar.xz
ds-ebed5efa09b77c7b5c655c9578bcd1329ab85409.zip
Remove some bash-isms that were causing problems on RHEL-4
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/initscript.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/wrappers/initscript.in b/wrappers/initscript.in
index 81b61728..d1ffbf29 100644
--- a/wrappers/initscript.in
+++ b/wrappers/initscript.in
@@ -44,14 +44,14 @@ INSTANCES=""
for FILE in `/bin/ls -d $instbase/slapd-* 2>/dev/null`; do
if [ -d "$FILE" ] ; then
- INSTANCES+=$(echo "$FILE" | sed -e "s|$instbase/slapd-||")
- INSTANCES+=" "
+ inst=$(echo "$FILE" | sed -e "s|$instbase/slapd-||")
+ INSTANCES="$INSTANCES $inst"
fi
done
if [ -n "$2" ]; then
for I in $INSTANCES; do
- if [ "$2" == "$I" ]; then
+ if [ "$2" = "$I" ]; then
INSTANCES="$2"
fi
done