Activating Let's Encrypt webroot renewal for all my sites.
#!/bin/bash
apt install rsync
d=2048
mkdir -p /srv/www/$d
chown user:user /srv/www/$d
cat <<EOF >/etc/lighttpd/conf-available/92-$d.conf
\$HTTP["host"] == "$d.defun.work" {
server.document-root = "/srv/www/$d"
}
EOF
lighttpd-enable-mod $d
service lighttpd restart