fixes wrong location check and call for the docker entrypoint

This commit is contained in:
blagoja.stojkoski 2020-08-21 12:18:23 +02:00
parent 5b2f5cef9a
commit ae70de6fdd
1 changed files with 2 additions and 2 deletions

View File

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