Skip to content

Commit

Permalink
Merge pull request #150 from italia/fix-148-wsgi-entrypoint
Browse files Browse the repository at this point in the history
fix: syntax in entrypoint bash script`1
  • Loading branch information
MdreW committed Aug 23, 2024
2 parents 8272442 + c7593e9 commit b26f78f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions example/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ if [[ $GET_IDEM_MDQ_KEY == true ]]; then
fi

wsgi_file=/.venv/lib/$(python -c 'import sys; print(f"python{sys.version_info.major}.{sys.version_info.minor}")')/site-packages/satosa/wsgi.py
wgsi_args="--ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker --wsgi-file $wsgi_file"
if [[ $SATOSA_DEBUG == true ]]; then
wgsi_args="${wsgi_args} --honour-stdin"
fi

uwsgi $wsgi_args
uwsgi --ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker --wsgi-file $wsgi_file --honour-stdin
else
uwsgi --ini /satosa_proxy/uwsgi_setup/uwsgi/uwsgi.ini.docker --wsgi-file $wsgi_file
fi

0 comments on commit b26f78f

Please sign in to comment.