Merge pull request #9 from sameersbn/entrypoint-handoff

handoff launch of command to baseimage `/entrypoint.sh`
This commit is contained in:
Adnan Abdulhussein
2016-03-21 11:44:40 -07:00

View File

@@ -14,10 +14,7 @@ export MARIADB_PORT=${MARIADB_PORT:-"3306"}
status=`harpoon inspect redmine`
if [[ "$status" == *'"lifecycle": "unpacked"'* && "$1" == "harpoon" && "$2" == "start" ]]; then
harpoon initialize redmine --inputs-file=/inputs.json
/entrypoint.sh
echo "Starting application..."
else
/entrypoint.sh
fi
exec tini -- "$@"
exec /entrypoint.sh "$@"