aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend-init
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/sdc-backend-init')
-rw-r--r--catalog-be/sdc-backend-init/startup.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/catalog-be/sdc-backend-init/startup.sh b/catalog-be/sdc-backend-init/startup.sh
index 1f3717abc0..0a96e49723 100644
--- a/catalog-be/sdc-backend-init/startup.sh
+++ b/catalog-be/sdc-backend-init/startup.sh
@@ -1,8 +1,6 @@
#!/bin/sh
-cd /root/chef-solo
-chef-solo -c solo.rb -E ${ENVNAME}
-
-while true; do sleep 2; done
-#rc=$?
-#if [[ $rc != 0 ]]; then exit $rc; fi
+cd /root/chef-solo || exit $?
+chef-solo -c solo.rb -E "${ENVNAME}"
+rc=$?
+if [ $rc != 0 ]; then exit $rc; fi