1234567891011121314151617 |
- #!/usr/bin/env bash
-
- interrupt() {
- echo
- echo "Caught ^C, exiting."
- exit 1
- }
-
- trap interrupt SIGINT
-
- while true; do
- /letsencrypt.sh --cron --hook /dns/hook --challenge dns-01
- /letsencrypt.sh --cleanup
- inotifywait --timeout 86400 /letsencrypt/domains.txt
- sleep 60
- done
|