summaryrefslogtreecommitdiff
path: root/cron-renew-certs.sh
blob: 32768bd86a3ca81b035e6891cfd8950a2b381513 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh
set -ex
echo "Updating certs - $(date --iso=s)"
cd /home/bill/apps/certbot
docker-compose -f /home/bill/apps/certbot/docker-compose.yml run certbot
docker-compose -f /home/bill/apps/certbot/docker-compose.yml run porkbun-bot-twime
docker-compose -f /home/bill/apps/certbot/docker-compose.yml run porkbun-bot-bill

cd /home/bill/apps/public_nginx/
docker-compose -f docker-compose.yml up -d --force-recreate