From 2fd01ead05955dcc92ab2b420b6c44e57bb36c28 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 13 Sep 2024 01:45:15 -0400 Subject: [PATCH] move wildcard-cert to a normal shell script --- bin/bin/wildcard-cert | 9 +++++++++ fish/.config/fish/functions/wildcard-cert.fish | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) create mode 100755 bin/bin/wildcard-cert delete mode 100644 fish/.config/fish/functions/wildcard-cert.fish diff --git a/bin/bin/wildcard-cert b/bin/bin/wildcard-cert new file mode 100755 index 0000000..9026e88 --- /dev/null +++ b/bin/bin/wildcard-cert @@ -0,0 +1,9 @@ +#!/bin/sh +sudo certbot certonly \ + --dns-rfc2136 \ + --dns-rfc2136-credentials /root/.secrets/rfc2136.ini \ + --server https://acme-v02.api.letsencrypt.org/directory \ + --preferred-challenge dns-01 \ + --cert-name $1 \ + -d $1 \ + -d \*.$1 diff --git a/fish/.config/fish/functions/wildcard-cert.fish b/fish/.config/fish/functions/wildcard-cert.fish deleted file mode 100644 index c9d083d..0000000 --- a/fish/.config/fish/functions/wildcard-cert.fish +++ /dev/null @@ -1,11 +0,0 @@ -function wildcard-cert - sudo certbot certonly \ - --dns-rfc2136 \ - --dns-rfc2136-credentials /root/.secrets/rfc2136.ini \ - --server https://acme-v02.api.letsencrypt.org/directory \ - --preferred-challenge dns-01 \ - --cert-name $argv[1] \ - -d $argv[1] \ - -d \*.$argv[1] -end -