summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-sanity/startup.sh
diff options
context:
space:
mode:
authorYuli Shlosberg <ys9693@att.com>2018-01-25 13:53:36 +0200
committerMichael Lando <ml636r@att.com>2018-02-04 10:39:20 +0000
commit0875ce0faad191c21b32cc9c95ffc20ebd57d586 (patch)
tree28520da212637e0f67697d9ff837e80da6eaa408 /sdc-os-chef/sdc-sanity/startup.sh
parentb676b6dcada5549348003191c09142e92de4d352 (diff)
Cassandra OOM Alignment
Change-Id: If9792919dba17936965b45361888a44a12a76b67 Issue-ID: SDC-911 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-sanity/startup.sh')
-rw-r--r--sdc-os-chef/sdc-sanity/startup.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/sdc-os-chef/sdc-sanity/startup.sh b/sdc-os-chef/sdc-sanity/startup.sh
index 3a56a302f6..349741c353 100644
--- a/sdc-os-chef/sdc-sanity/startup.sh
+++ b/sdc-os-chef/sdc-sanity/startup.sh
@@ -1,5 +1,14 @@
#!/bin/bash
-export CHEFNAME=${ENVNAME}
cd /root/chef-solo
-chef-solo -c solo.rb -E ${CHEFNAME} \ No newline at end of file
+chef-solo -c solo.rb -E ${ENVNAME}
+
+rc=$?
+
+if [[ $rc != 0 ]]; then
+ echo "Sanity failed !!!"
+ exit $rc
+else
+ echo "completed successfully :-)"
+ exit 0
+fi \ No newline at end of file