diff options
author | Noah Slater <nslater@apache.org> | 2009-03-20 17:26:59 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-03-20 17:26:59 +0000 |
commit | ba543146ea71b218b26a0660f9d28eea817c8fe5 (patch) | |
tree | c2f4182c58930a8575810d98fbba90ff37c39b87 /etc/init | |
parent | 083b26df25ea661c6c67b66d62b777ffc3f48b55 (diff) |
fixed shell portability issues, thanks Maarten Thibaut, closes COUCHDB-169
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756665 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc/init')
-rw-r--r-- | etc/init/couchdb.tpl.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/init/couchdb.tpl.in b/etc/init/couchdb.tpl.in index abfb4af6..c8e4ae33 100644 --- a/etc/init/couchdb.tpl.in +++ b/etc/init/couchdb.tpl.in @@ -27,7 +27,7 @@ SCRIPT_ERROR=1 DESCRIPTION="database server" NAME=couchdb -SCRIPT_NAME=$(basename $0) +SCRIPT_NAME=`basename $0` COUCHDB=%bindir%/%couchdb_command_name% CONFIGURATION_FILE=%sysconfdir%/default/couchdb LSB_LIBRARY=/lib/lsb/init-functions @@ -63,9 +63,9 @@ start_couchdb () { # Start Apache CouchDB as a background process. command="$COUCHDB -b" - if test -n "$COUCHDB_PID_FILE"; then - command="$command -p $COUCHDB_PID_FILE" - fi + if test -n "$COUCHDB_PID_FILE"; then + command="$command -p $COUCHDB_PID_FILE" + fi if test -n "$COUCHDB_STDOUT_FILE"; then command="$command -o $COUCHDB_STDOUT_FILE" fi |