summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-init-elasticsearch
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-os-chef/sdc-init-elasticsearch')
-rw-r--r--sdc-os-chef/sdc-init-elasticsearch/startup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdc-os-chef/sdc-init-elasticsearch/startup.sh b/sdc-os-chef/sdc-init-elasticsearch/startup.sh
index 9a8cbc3394..47aba88ff2 100644
--- a/sdc-os-chef/sdc-init-elasticsearch/startup.sh
+++ b/sdc-os-chef/sdc-init-elasticsearch/startup.sh
@@ -2,5 +2,5 @@
cd /root/chef-solo/
chef-solo -c solo.rb -E ${ENVNAME}
-
-exit $? \ No newline at end of file
+rc=$?
+if [[ $rc != 0 ]]; then exit $rc; fi