tinyscripts/updateLE.sh
2024-05-31 16:54:56 +10:00

23 lines
722 B
Bash
Executable File

#!/bin/bash
function ch { chown $1 $3; chmod $2 $3; }
./mkcerts.sh LE get_cert nuconf rakka.au harpy.faith botegirl.parts
cp -f out.crt /srv/http/certs/fag.crt
ch http:http 644 /srv/http/certs/fag.crt
cp -f out.crt /etc/prosody/certs/harpy.faith/fullchain.pem
ch prosody:jabber 600 /etc/prosody/certs/harpy.faith/fullchain.pem
cp -f out.crt /srv/email/certs/fag.crt
ch root:smtpd 640 /srv/email/certs/fag.crt
./mkcerts.sh LE get_cert nerdconf nerdshope.au
cp -f out.crt /srv/http/certs/nerd.crt
ch http:http 644 /srv/http/certs/nerd.crt
cp -f out.crt /srv/email/certs/nerd.crt
ch root:smtpd 640 /srv/email/certs/nerd.crt
systemctl reload nginx
systemctl reload prosody
systemctl restart smtpd
systemctl reload dovecot