2019-11-14 02:54:07 +01:00
|
|
|
#!/bin/bash
|
2019-03-04 00:08:42 +01:00
|
|
|
|
2024-11-21 05:16:17 +01:00
|
|
|
cd /etc/lighttpd/vhosts.d
|
|
|
|
|
|
|
|
|
|
HOSTS="de.hacknf.lists
|
|
|
|
|
de.waffelgut
|
|
|
|
|
org.linspector
|
|
|
|
|
org.xw3.cloud
|
|
|
|
|
org.xw3.git
|
|
|
|
|
org.xw3.lists
|
|
|
|
|
org.xw3.mail
|
|
|
|
|
org.xw3.siem
|
|
|
|
|
org.xw3.sql"
|
|
|
|
|
|
|
|
|
|
for host in $HOSTS; do
|
|
|
|
|
cat /etc/lighttpd/vhosts.d/$host.conf.min > /etc/lighttpd/vhosts.d/$host.conf
|
|
|
|
|
done
|
|
|
|
|
/etc/init.d/lighttpd restart
|
|
|
|
|
|
2024-07-02 19:22:51 +02:00
|
|
|
mv /root/.acme.sh/acme.sh.log /root/.acme.sh/$(date +%s).log
|
|
|
|
|
|
2019-03-04 00:08:42 +01:00
|
|
|
acme.sh --cron --force --home /root/.acme.sh
|
|
|
|
|
|
|
|
|
|
for host in $(ls /etc/acme | tr '\n' ' '); do
|
|
|
|
|
echo "Creating .pem File for $host: /etc/acme/$host/$host.pem"
|
|
|
|
|
cat /etc/acme/$host/$host.key > /etc/acme/$host/$host.pem
|
|
|
|
|
cat /etc/acme/$host/fullchain.cer >> /etc/acme/$host/$host.pem
|
|
|
|
|
done
|
|
|
|
|
|
2024-11-21 05:16:17 +01:00
|
|
|
for host in $HOSTS; do
|
|
|
|
|
cat /etc/lighttpd/vhosts.d/$host.conf.full > /etc/lighttpd/vhosts.d/$host.conf
|
|
|
|
|
done
|
2019-03-04 00:08:42 +01:00
|
|
|
/etc/init.d/lighttpd restart
|
2024-11-21 05:16:17 +01:00
|
|
|
|
|
|
|
|
#/etc/init.d/nginx restart
|
|
|
|
|
|
2019-11-14 02:54:07 +01:00
|
|
|
/etc/init.d/prosody restart
|
2019-03-04 00:08:42 +01:00
|
|
|
|
2024-04-07 03:16:14 +02:00
|
|
|
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
|
2020-10-06 01:55:17 +02:00
|
|
|
cd /opt/mailcow-dockerized
|
|
|
|
|
docker-compose restart
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|