Compare commits
No commits in common. "bd9409209de278e2c1a296d934a41a1268d63539" and "9d9d75cb7e97dc48fa1e7b46bbc95e2c00476a75" have entirely different histories.
bd9409209d
...
9d9d75cb7e
1 changed files with 45 additions and 0 deletions
45
bin/ac.sh
Executable file
45
bin/ac.sh
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
||||
mv /root/.acme.sh/acme.sh.log /root/.acme.sh/$(date +%s).log
|
||||
|
||||
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
|
||||
|
||||
for host in $HOSTS; do
|
||||
cat /etc/lighttpd/vhosts.d/$host.conf.full > /etc/lighttpd/vhosts.d/$host.conf
|
||||
done
|
||||
/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
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue