Handle DNS renewal

This commit is contained in:
Benoit S 2021-04-08 18:56:33 +09:00
parent f7837e68b5
commit 0b9132eb77
3 changed files with 24 additions and 0 deletions

6
files/start-adguard.sh Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
install -o adguard -g adguard -m 600 /etc/letsencrypt/live/dns.benpro.fr/privkey.pem /home/adguard/
install -o adguard -g adguard -m 600 /etc/letsencrypt/live/dns.benpro.fr/fullchain.pem /home/adguard/
systemctl start AdGuardHome.service

4
files/stop-adguard.sh Normal file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail
systemctl stop AdGuardHome.service