#!/bin/bash -e function initialize { # Package can be "installed" or "unpacked" status=`nami inspect $1` if [[ "$status" == *'"lifecycle": "unpacked"'* ]]; then inputs="" if [[ -f /$1-inputs.json ]]; then inputs=--inputs-file=/$1-inputs.json fi nami initialize $1 $inputs fi } for module in ruby; do initialize $module done exec /entrypoint.sh "$@"