bitnami-containers/bitnami/ghost/rootfs/app-entrypoint.sh

23 lines
506 B
Bash
Executable File

#!/bin/bash
set -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
}
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
initialize ghost
echo "Starting application ..."
fi
exec /entrypoint.sh "$@"