This command messed up config file “50-dietpi-https.conf”:
sed -i s/, “Options” => “-SessionTicket”// /etc/lighttpd/conf-available/50-dietpi-https.conf
making lighttpd unable to start and script to get stucked.
This is the part I grabbed from the console output:
[ INFO ] DietPi-LetsEncrypt | Checking for required APT packages: lighttpd-mod-openssl
[ OK ] DietPi-LetsEncrypt | sed -i s/, “Options” => “-SessionTicket”// /etc/lighttpd/conf-available/50-dietpi-https.conf
[ OK ] DietPi-LetsEncrypt | Desired setting in /etc/lighttpd/lighttpd.conf was already set: “mod_redirect”,
[ INFO ] DietPi-LetsEncrypt | Applying HTTPS domain to known web application configs
[FAILED] DietPi-LetsEncrypt | systemctl restart lighttpd
root@KAR02SRV01:/tmp/DietPi-LetsEncrypt# sudo lighttpd -t -f /etc/lighttpd/lighttpd.conf
Error: duplicate array-key: Options. Please get rid of the duplicate entry.
2023-08-18 14:12:36: configfile.c.1970) source: /etc/lighttpd/conf-enabled/50-dietpi-https.conf line: 18 pos: 17 parser failed somehow near here: (COMMA)
2023-08-18 14:12:36: configfile.c.1970) source: /etc/lighttpd/lighttpd.conf line: 52 pos: 15 parser failed somehow near here: (EOL)
I fixed it manually by opening subshell, copying content of 50-dietpi-https.conf file from another server and modifying certificate paths, checking syntax and manually restarting lighttpd service.