summaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
authorandre.schmid <andre.schmid@est.tech>2020-01-23 10:51:28 +0000
committerandre.schmid <andre.schmid@est.tech>2020-01-23 13:18:02 +0000
commitc6f11f2579e1ced27ad91f5392eacb1baedf64fb (patch)
tree3663523f0e8a43762230ae568aa8629f622dac56 /catalog-be
parent47fc40a21e3988172f9ea1a33e3d884c6bd3b2fd (diff)
Fix sdc-BE-init container startup
Remove the while true in the startup.sh script that prevents the container to stop. Change-Id: If4acc41dde6e1b8d7f726adfef30ab6ddf20b640 Issue-ID: SDC-2724 Signed-off-by: andre.schmid <andre.schmid@est.tech>
Diffstat (limited to 'catalog-be')
-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