Fix onboarding artifact name changed
[sdc.git] / catalog-be / sdc-backend-init / startup.sh
index 867ec94..83bfbf2 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-cd /root/chef-solo
-chef-solo -c solo.rb -E ${ENVNAME}
+cd /home/"${user}"/chef-solo || exit $?
+chef-solo -c solo.rb -E "${ENVNAME}"
 rc=$?
-if [[ $rc != 0 ]]; then exit $rc; fi
+if [ $rc != 0 ]; then exit $rc; fi