ACME update script cleaned up...

This commit is contained in:
Johannes Findeisen 2024-04-07 03:16:14 +02:00
commit edb7cda2a6

View file

@ -1,9 +1,5 @@
#!/bin/bash
#cat /etc/lighttpd/vhosts.d/systems.findeisen.conf.nossl > /etc/lighttpd/vhosts.d/systems.findeisen.conf
/etc/init.d/lighttpd restart
acme.sh --cron --force --home /root/.acme.sh
for host in $(ls /etc/acme | tr '\n' ' '); do
@ -12,15 +8,12 @@ for host in $(ls /etc/acme | tr '\n' ' '); do
cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
done
#cat /etc/lighttpd/vhosts.d/systems.findeisen.conf.ssl > /etc/lighttpd/vhosts.d/systems.findeisen.conf
cat /etc/acme/mail.xw3.org/fullchain.cer > /opt/mailcow-dockerized/data/assets/ssl/mail.xw3.org/cert.pem
cat /etc/acme/mail.xw3.org/mail.xw3.org.key > /opt/mailcow-dockerized/data/assets/ssl/mail.xw3.org/key.pem
/etc/init.d/lighttpd restart
/etc/init.d/nginx restart
/etc/init.d/prosody restart
cat /etc/acme/mail.xw3.org/fullchain.cer > /opt/mailcow-dockerized/data/assets/ssl/mail.xw3.org/cert.pem
cat /etc/acme/mail.xw3.org/mail.xw3.org.key > /opt/mailcow-dockerized/data/assets/ssl/mail.xw3.org/key.pem
cd /opt/mailcow-dockerized
docker-compose restart