#!/bin/bash
# dehydrated -c -t dns-01 -o /root/letsencrypt -d "hatthieves.es *.hatthieves.es" -k /etc/dehydrated/manual.rb
cat /root/letsencrypt/hatthieves.es/fullchain.pem > /opt/docker/secure/fullchain.pem
cat /root/letsencrypt/hatthieves.es/privkey.pem > /opt/docker/secure/privkey.pem
cd /opt/docker/nginx; docker-compose down; docker-compose up -d
cd /opt/docker/haraka-wildduck; docker-compose down; docker-compose up -d
cd /opt/docker/prosody; docker-compose down; docker-compose up -d
cd /opt/docker/coturn; docker-compose down; docker-compose up -d
cd /opt/docker/mumble; docker-compose down; docker-compose up -d
cd /opt/docker/rocket; docker-compose down; docker-compose up -d
echo -e "\nCERTS UPDATED!! :-)"
exit 0
