瀏覽代碼

Making debian init script bourne shell compatible

Using backticks instead of bash only $() to execute a shell command

Closes #3691
Alexander Reelsen 12 年之前
父節點
當前提交
e0af9e2c09
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/deb/init.d/elasticsearch

+ 2 - 2
src/deb/init.d/elasticsearch

@@ -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
@@ -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