diff options
Diffstat (limited to 'catalog-be/sdc-backend-init/startup.sh')
-rw-r--r-- | catalog-be/sdc-backend-init/startup.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/catalog-be/sdc-backend-init/startup.sh b/catalog-be/sdc-backend-init/startup.sh index e216341882..e35bab3aad 100644 --- a/catalog-be/sdc-backend-init/startup.sh +++ b/catalog-be/sdc-backend-init/startup.sh @@ -1,4 +1,16 @@ #!/bin/sh -cd /home/"${user}"/chef-solo || exit $? -chef-solo -c solo.rb -E "${ENVNAME}"
\ No newline at end of file +set -e + + +log_script() { + script_name=$1 + sh "$script_name" 2>&1 | sed "s|^|[$script_name] |" || \ + echo "$script_name failed. Continuing with other scripts..." >&2 +} + +log_script "/home/onap/create_consumer_and_user.sh" +log_script "/home/onap/check_backend.sh" +log_script "/home/onap/import_normatives.sh" + +echo "Done" |