aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Docker/entrypoint.sh')
-rwxr-xr-xDocker/entrypoint.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh
index 920fb2200..82cc4f9a8 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -22,9 +22,12 @@ if [ -n "$TRUSTED_PROXY" ]; then
fi
if [ -n "$OIDC_ENABLED" ] && [ "$OIDC_ENABLED" -ne 0 ]; then
- a2enmod -q auth_openidc
- if [ -n "$OIDC_ENABLED" ]; then
- # Compatibility with : as separator instead of space:
+ # Debian
+ (which a2enmod >/dev/null && a2enmod -q auth_openidc) ||
+ # Alpine
+ (mv /etc/apache2/conf.d/mod-auth-openidc.conf.bak /etc/apache2/conf.d/mod-auth-openidc.conf && echo 'Enabling module auth_openidc.')
+ if [ -n "$OIDC_SCOPES" ]; then
+ # Compatibility with : as separator instead of space
OIDC_SCOPES=$(echo "$OIDC_SCOPES" | tr ':' ' ')
export OIDC_SCOPES
fi