Merge pull request #18 from keitaroinc/fix-startckan

IF condition was always true, so failed prerun.py was not handled properly
This commit is contained in:
Marko Bocevski 2020-08-24 08:03:52 +02:00 committed by GitHub
commit d802214fb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -12,12 +12,12 @@ 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 --gevent-early-monkey-patch"
# Run the prerun script to init CKAN and create the default admin user
python prerun.py
# Check whether http basic auth password protection is enabled and enable basicauth routing on uwsgi respecfully
if [ $? -eq 0 ]
then