diff --git a/entrypoint.sh b/entrypoint.sh index cf3846aa..1212cedd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,5 @@ #!/bin/sh +chown -R nobody:nogroup /app/cache python manage.py migrate --noinput echo "${SAML_PUBLIC_KEY_FILE}" > /app/tosti/saml/public.cert echo "${SAML_PRIVATE_KEY_FILE}" > /app/tosti/saml/private.key diff --git a/website/tosti/settings/production.py b/website/tosti/settings/production.py index a71169fb..750068e8 100644 --- a/website/tosti/settings/production.py +++ b/website/tosti/settings/production.py @@ -99,7 +99,7 @@ CACHES = { "default": { "BACKEND": "django.core.cache.backends.filebased.FileBasedCache", - "LOCATION": "/app/cache/cache", + "LOCATION": "/app/cache", } }