Ensure Lighttpd loads mod_openssl when USE_SSL=true (#56)

Fixes #55
This commit is contained in:
Vincent 2021-06-28 23:32:33 +02:00 committed by GitHub
parent ec68e76cd1
commit b23f2a91c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,7 @@ if [ -f /firstrun ]; then
# Reconfigure lighttpd to use ssl # Reconfigure lighttpd to use ssl
echo "ssl.engine = \"enable\"" >> /etc/lighttpd/lighttpd.conf echo "ssl.engine = \"enable\"" >> /etc/lighttpd/lighttpd.conf
echo "ssl.pemfile = \"/etc/lighttpd/server.pem\"" >> /etc/lighttpd/lighttpd.conf echo "ssl.pemfile = \"/etc/lighttpd/server.pem\"" >> /etc/lighttpd/lighttpd.conf
sed -i -r '/^server\.modules/s# \)#, "mod_openssl" \)#' /etc/lighttpd/lighttpd.conf
fi fi
if [ "$AUTH_METHOD" == "ldap" ]; then if [ "$AUTH_METHOD" == "ldap" ]; then