From ee215d0db5696e543d2c89eb3f6faf1f9723d19f Mon Sep 17 00:00:00 2001 From: Marko Bocevski Date: Mon, 8 Jun 2020 11:45:16 +0200 Subject: [PATCH] First run docker entrypoint scripts before running prerun --- rootfs/setup/app/start_ckan.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootfs/setup/app/start_ckan.sh b/rootfs/setup/app/start_ckan.sh index d0dc6e7..8f71c90 100755 --- a/rootfs/setup/app/start_ckan.sh +++ b/rootfs/setup/app/start_ckan.sh @@ -1,7 +1,4 @@ #!/bin/bash -# Run the prerun script to init CKAN and create the default admin user -python prerun.py - # Run any startup scripts provided by images extending this one if [[ -d "/docker-entrypoint.d" ]] then @@ -15,6 +12,9 @@ then done fi +# Run the prerun script to init CKAN and create the default admin user +python prerun.py + # Set the common uwsgi options UWSGI_OPTS="--socket /tmp/uwsgi.sock --uid 92 --gid 92 --http :5000 --master --enable-threads --paste config:/srv/app/production.ini --lazy-apps --gevent 2000 -p 2 -L"