aboutsummaryrefslogtreecommitdiff
path: root/Docker/entrypoint.sh
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-06-13 16:28:51 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-13 16:28:51 +0200
commitae8dfc1b1b610eff36b7e1b004a60601e08da309 (patch)
treeeaf23e348c99e8df5c483ee32d3826cf6b4a6dbf /Docker/entrypoint.sh
parent58b254f9cb923d5d0dfe53df4bca8a0f00bbcf0b (diff)
Fix OpenID Connect crash on ARM (#5463)
Only enable the Apache auth_openidc module when actually used Fix https://github.com/FreshRSS/FreshRSS/issues/5460 Follow-up of https://github.com/FreshRSS/FreshRSS/pull/5351
Diffstat (limited to 'Docker/entrypoint.sh')
-rwxr-xr-xDocker/entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh
index cbc2443d6..6420ca219 100755
--- a/Docker/entrypoint.sh
+++ b/Docker/entrypoint.sh
@@ -11,6 +11,10 @@ if [ -n "$LISTEN" ]; then
find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^Listen#s#^.*#Listen $LISTEN#" {} \;
fi
+if [ -n "$OIDC_ENABLED" ] && [ "$OIDC_ENABLED" -ne 0 ]; then
+ a2enmod auth_openidc
+fi
+
if [ -n "$CRON_MIN" ]; then
(
echo "export TZ=$TZ"