added extra_scripts.sh before ckan starts

This commit is contained in:
Pance Ribarski 2018-06-29 18:53:51 +02:00
parent 42d17a659d
commit 1d4d2759a1
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/bin/bash
# this is called before uwsgi is executed
# uset his to add extra scripts before ckan is started

View File

@ -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 # Check whether http basic auth password protection is enabled and enable basicauth routing on uwsgi respecfully
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
extra_scripts.sh
if [ "$PASSWORD_PROTECT" = true ] if [ "$PASSWORD_PROTECT" = true ]
then then
if [ "$HTPASSWD_USER" ] || [ "$HTPASSWD_PASSWORD" ] if [ "$HTPASSWD_USER" ] || [ "$HTPASSWD_PASSWORD" ]