diff --git a/rootfs/setup/app/start_ckan.sh b/rootfs/setup/app/start_ckan.sh index a3798ff..d7656ea 100755 --- a/rootfs/setup/app/start_ckan.sh +++ b/rootfs/setup/app/start_ckan.sh @@ -1,8 +1,8 @@ #!/bin/bash # Run any startup scripts provided by images extending this one -if [[ -d "/docker-entrypoint.d" ]] +if [[ -d "${APP_DIR}/docker-entrypoint.d" ]] then - for f in /docker-entrypoint.d/*; do + for f in ${APP_DIR}/docker-entrypoint.d/*; do case "$f" in *.sh) echo "$0: Running init file $f"; . "$f" ;; *.py) echo "$0: Running init file $f"; python "$f"; echo ;;