diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-11 21:32:12 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-11 21:32:12 +0200 |
commit | a58ae56e98a8d9fcbe7fc7beaa976a4d164ee99a (patch) | |
tree | 0b2eb4aea4d26aa914646d211b8cd2be6442fe15 /bin/serverscripts | |
parent | 38a8137b2c3e3d62919cfe105b50c2c361b68554 (diff) | |
parent | aa4bdbfc369db3174d39bacc6b26a593a9ec3376 (diff) |
Merge branch 'main' of https://git.kallipso.be/dotfiles
Diffstat (limited to 'bin/serverscripts')
-rwxr-xr-x | bin/serverscripts/cfdnsreq | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/serverscripts/cfdnsreq b/bin/serverscripts/cfdnsreq new file mode 100755 index 0000000..a380654 --- /dev/null +++ b/bin/serverscripts/cfdnsreq @@ -0,0 +1,13 @@ +#!/bin/sh + +if [ $# -eq 0 ] +then + echo "no domain provided." + exit 1 +fi + +certbot certonly \ + --dns-cloudflare \ + --dns-cloudflare-credentials ~/.secrets/cloudflare.ini \ + -m raymaekers.luca@gmail.com \ + -d $1 |