lets entcrypt update script update
This commit is contained in:
parent
e930a29dc0
commit
daf0c795ae
1 changed files with 16 additions and 0 deletions
16
bin/ac.sh
16
bin/ac.sh
|
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
mv /etc/lighttpd/vhosts.d/systems.findeisen.conf /etc/lighttpd/vhosts.d/systems.findeisen.conf.ssl
|
||||||
|
mv /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
|
acme.sh --cron --force --home /root/.acme.sh
|
||||||
|
|
||||||
for host in $(ls /etc/acme | tr '\n' ' '); do
|
for host in $(ls /etc/acme | tr '\n' ' '); do
|
||||||
|
|
@ -8,6 +13,17 @@ for host in $(ls /etc/acme | tr '\n' ' '); do
|
||||||
cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
|
cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
|
||||||
done
|
done
|
||||||
|
|
||||||
|
mv /etc/lighttpd/vhosts.d/systems.findeisen.conf /etc/lighttpd/vhosts.d/systems.findeisen.conf.nossl
|
||||||
|
mv /etc/lighttpd/vhosts.d/systems.findeisen.conf.ssl /etc/lighttpd/vhosts.d/systems.findeisen.conf
|
||||||
|
|
||||||
|
cat /etc/acme/mail2.zynk.org/fullchain.cer > /opt/mailcow-dockerized/data/assets/ssl/mail2.zynk.org/cert.pem
|
||||||
|
cat /etc/acme/mail2.zynk.org/mail2.zynk.org.key > /opt/mailcow-dockerized/data/assets/ssl/mail2.zynk.org/key.pem
|
||||||
|
|
||||||
/etc/init.d/lighttpd restart
|
/etc/init.d/lighttpd restart
|
||||||
/etc/init.d/prosody restart
|
/etc/init.d/prosody restart
|
||||||
|
|
||||||
|
cd /opt/mailcow-dockerized
|
||||||
|
docker-compose restart
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue