From 0875ce0faad191c21b32cc9c95ffc20ebd57d586 Mon Sep 17 00:00:00 2001 From: Yuli Shlosberg Date: Thu, 25 Jan 2018 13:53:36 +0200 Subject: Cassandra OOM Alignment Change-Id: If9792919dba17936965b45361888a44a12a76b67 Issue-ID: SDC-911 Signed-off-by: Yuli Shlosberg --- sdc-os-chef/sdc-sanity/startup.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'sdc-os-chef/sdc-sanity') 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 -- cgit 1.2.3-korg