Make managix scripts properly executable
Most of the scripts managix was using were missing the shebang at the beginning of the script.
This can be problematic if one uses a shell besides bash. This patch fixes that.
Change-Id: Ie7722f832d0d25bec049e123a0ed1570d0aeb650
Reviewed-on: https://asterix-gerrit.ics.uci.edu/286
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Raman Grover <ramangrover29@gmail.com>
diff --git a/asterix-installer/src/main/resources/zookeeper/start_zk.sh b/asterix-installer/src/main/resources/zookeeper/start_zk.sh
old mode 100644
new mode 100755
index 0a2b51e..86769cd
--- a/asterix-installer/src/main/resources/zookeeper/start_zk.sh
+++ b/asterix-installer/src/main/resources/zookeeper/start_zk.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
#/*
# Copyright 2009-2013 by The Regents of the University of California
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -11,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-#*/
+
ZK_HOME=$1
ZK_ID=$2
JAVA_HOME=$3
diff --git a/asterix-installer/src/main/resources/zookeeper/stop_zk b/asterix-installer/src/main/resources/zookeeper/stop_zk
index 9bef86e..84d9b74 100644
--- a/asterix-installer/src/main/resources/zookeeper/stop_zk
+++ b/asterix-installer/src/main/resources/zookeeper/stop_zk
@@ -1,3 +1,5 @@
+#!/usr/bin/env bash
+
ZK_HOME=$1
shift 1
for zk_host in $@
diff --git a/asterix-installer/src/main/resources/zookeeper/zk.init b/asterix-installer/src/main/resources/zookeeper/zk.init
index 8ef6f5f..6b26363 100644
--- a/asterix-installer/src/main/resources/zookeeper/zk.init
+++ b/asterix-installer/src/main/resources/zookeeper/zk.init
@@ -1,3 +1,5 @@
+#!/usr/bin/env bash
+
ZK_HOME=$1
SERVER_JAVA_HOME=$2
shift 2