From 1d4d2759a1c28a233926fb1ee66f27fe86f549b1 Mon Sep 17 00:00:00 2001 From: Pance Ribarski Date: Fri, 29 Jun 2018 18:53:51 +0200 Subject: [PATCH] added extra_scripts.sh before ckan starts --- rootfs/setup/app/extra_scripts.sh | 4 ++++ rootfs/setup/app/start_ckan.sh | 1 + 2 files changed, 5 insertions(+) create mode 100755 rootfs/setup/app/extra_scripts.sh diff --git a/rootfs/setup/app/extra_scripts.sh b/rootfs/setup/app/extra_scripts.sh new file mode 100755 index 0000000..80a70ef --- /dev/null +++ b/rootfs/setup/app/extra_scripts.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# this is called before uwsgi is executed +# uset his to add extra scripts before ckan is started diff --git a/rootfs/setup/app/start_ckan.sh b/rootfs/setup/app/start_ckan.sh index 5849813..ca5799e 100755 --- a/rootfs/setup/app/start_ckan.sh +++ b/rootfs/setup/app/start_ckan.sh @@ -8,6 +8,7 @@ UWSGI_OPTS="--plugins http,python,gevent --socket /tmp/uwsgi.sock --uid 92 --gid # Check whether http basic auth password protection is enabled and enable basicauth routing on uwsgi respecfully if [ $? -eq 0 ] then + extra_scripts.sh if [ "$PASSWORD_PROTECT" = true ] then if [ "$HTPASSWD_USER" ] || [ "$HTPASSWD_PASSWORD" ]