Fix sdc-BE-init container startup
[sdc.git] / catalog-be / sdc-backend-init / startup.sh
index 1f3717a..0a96e49 100644 (file)
@@ -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