From 9d112ab5910a5943368d07c7cd9504c9a3e13221 Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Thu, 04 Dec 2008 09:06:08 +0000
Subject: [PATCH] Change test == to test = for strings, as == is a ksh form and doesn't work on Solaris 10 /bin/sh. (In openSolaris /bin/sh = ksh93).
---
opends/resource/bin/stop-ds | 2 +-
opends/resource/bin/start-ds | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opends/resource/bin/start-ds b/opends/resource/bin/start-ds
index fe0386e..3ca2128 100755
--- a/opends/resource/bin/start-ds
+++ b/opends/resource/bin/start-ds
@@ -52,12 +52,12 @@
if test -f "${INSTALL_ROOT}/lib/_svc-opends.sh"
then
- if [ "$1" == "--exec" ]
+ if [ "$1" = "--exec" ]
then
shift
- elif [ -z "$1" -o "$1" == "-L" -o "$1" == "-Q" -o "$1" == "-N" -o \
- "$1" == "--nodetach" -o "$1" == "-useLastKnownGoodConfig" \
- -o "$1" == "--quiet" ]
+ elif [ -z "$1" -o "$1" = "-L" -o "$1" = "-Q" -o "$1" = "-N" -o \
+ "$1" = "--nodetach" -o "$1" = "-useLastKnownGoodConfig" \
+ -o "$1" = "--quiet" ]
then
# these options are only used when trying to start the server
# In this case, start it through the service.
diff --git a/opends/resource/bin/stop-ds b/opends/resource/bin/stop-ds
index 89b284e..82bf934 100755
--- a/opends/resource/bin/stop-ds
+++ b/opends/resource/bin/stop-ds
@@ -65,7 +65,7 @@
# Check --exec. If not present, start OpenDS from SMF
if test -f "${INSTALL_ROOT}/lib/_svc-opends.sh"
then
- if [ "$1" == "--exec" ]
+ if [ "$1" = "--exec" ]
then
shift
elif [ "$1" != "-V" -a "$1" != "--version" -a "$1" != "-?" -a \
--
Gitblit v1.10.0