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).
| | |
| | | |
| | | 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. |
| | |
| | | # 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 \ |