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
This commit is contained in:
Alexandre Alapetite 2023-06-13 16:28:51 +02:00 committed by GitHub
parent 58b254f9cb
commit ae8dfc1b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,7 @@ LABEL \
org.opencontainers.image.version="$FRESHRSS_VERSION"
RUN a2dismod -f alias autoindex negotiation status && \
a2dismod auth_openidc && \
a2enmod deflate expires headers mime remoteip setenvif && \
a2disconf '*' && \
a2dissite '*' && \

View File

@ -42,6 +42,7 @@ LABEL \
org.opencontainers.image.version="$FRESHRSS_VERSION"
RUN a2dismod -f alias autoindex negotiation status && \
a2dismod auth_openidc && \
a2enmod deflate expires headers mime remoteip setenvif && \
a2disconf '*' && \
a2dissite '*' && \

View File

@ -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"