summaryrefslogtreecommitdiffstats
path: root/tools/kingbird/deploy.sh
diff options
context:
space:
mode:
authorDimitri Mazmanov <dimitri.mazmanov@ericsson.com>2016-07-19 09:10:30 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-07-19 09:10:30 +0000
commit78a64bc6c69b00c88ffee55e3f6077d876e7a4e7 (patch)
tree7586b5f519257c3e6cc749991c0efcb5b42c6cdd /tools/kingbird/deploy.sh
parent93b952a14863d35dc15b9f03ef45aac2ef69abcf (diff)
parenta4544eab3da82cd1f3351d0577c54be6080616be (diff)
Merge "Fix endpoint URLs"
Diffstat (limited to 'tools/kingbird/deploy.sh')
-rwxr-xr-xtools/kingbird/deploy.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/kingbird/deploy.sh b/tools/kingbird/deploy.sh
index 5a8c6a8..9cca95e 100755
--- a/tools/kingbird/deploy.sh
+++ b/tools/kingbird/deploy.sh
@@ -1,9 +1,13 @@
#!/bin/bash
+set -o xtrace
+set -o nounset
+set -o pipefail
+
INSTALLER_IP=10.20.0.2
usage() {
- echo "usage: $0 -a <installer_ip>" >&2
+ echo "usage: $0 -a <installer_ip>" >&2
}
@@ -42,7 +46,10 @@ sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
"ssh $ssh_options ${controller_ip} \"cd /root/ && chmod +x install_kingbird.sh\"" &> /dev/null
sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
-"ssh $ssh_options ${controller_ip} \"cd /root/ && nohup /root/install_kingbird.sh \"" &> /dev/null
+"ssh $ssh_options ${controller_ip} \"cd /root/ && nohup /root/install_kingbird.sh > install.log 2> /dev/null\"" &> /dev/null
+# Output here
+sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} \
+"ssh $ssh_options ${controller_ip} \"cd /root/ && cat install.log\""
engine_pid=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} "ssh $ssh_options ${controller_ip} \"pgrep kingbird-engine || echo dead\"") &> /dev/null
api_pid=$(sshpass -p r00tme ssh 2>/dev/null $ssh_options root@${installer_ip} "ssh $ssh_options ${controller_ip} \"pgrep kingbird-api || echo dead\"") &> /dev/null
@@ -53,4 +60,4 @@ fi
if [ "$api_pid" == "dead" ]; then
error "Kingbird API is not running."
-fi \ No newline at end of file
+fi