diff --git a/docker/idhub.entrypoint.sh b/docker/idhub.entrypoint.sh index c871ca8..21b601a 100755 --- a/docker/idhub.entrypoint.sh +++ b/docker/idhub.entrypoint.sh @@ -37,7 +37,9 @@ deployment_strategy() { else # this file helps all docker containers to guess number of hosts involved # right now is only needed by new deployment for oidc - touch /sharedsecret/${DOMAIN} + if [ -d "/sharedsecret" ]; then + touch /sharedsecret/${DOMAIN} + fi # move the migrate thing in docker entrypoint # inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc