Skip to content

Commit

Permalink
Making debian init script bourne shell compatible
Browse files Browse the repository at this point in the history
Using backticks instead of bash only $() to execute a shell command

Closes #3691
  • Loading branch information
spinscale committed Sep 16, 2013
1 parent f241131 commit 7be665d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deb/init.d/elasticsearch
Expand Up @@ -114,7 +114,7 @@ checkJava() {
if [ -x "$JAVA_HOME/bin/java" ]; then
JAVA="$JAVA_HOME/bin/java"
else
JAVA=$(which java)
JAVA=`which java`
fi

if [ ! -x "$JAVA" ]; then
Expand All @@ -134,7 +134,7 @@ case "$1" in

log_daemon_msg "Starting $DESC"

pid=$( pidofproc -p $PID_FILE elasticsearch)
pid=`pidofproc -p $PID_FILE elasticsearch`
if [ -n "$pid" ] ; then
log_begin_msg "Already running."
log_end_msg 0
Expand Down

0 comments on commit 7be665d

Please sign in to comment.