This can be used at setup time to get feedback on the DNS plugin parameters.
Signed-off-by: Wolfgang Link <w.link@proxmox.com>
DNS_PLUGIN_PATH="/usr/share/proxmox-acme/dnsapi"
HTTP_HEADER="$(mktemp)"
DNS_PLUGIN_PATH="/usr/share/proxmox-acme/dnsapi"
HTTP_HEADER="$(mktemp)"
_base64() {
openssl base64 -e | tr -d '\r\n'
}
_base64() {
openssl base64 -e | tr -d '\r\n'
}
+ if [[ $DEBUG -eq 0 ]]; then
+ return
+ fi
+ printf -- "%s" "[$(date)] " >&1
+ echo "$1 $2"
# $2 <String> Fully Qualified Domain Name
# $3 <String> value for TXT record
# $4 <String> DNS plugin auth and config parameter separated by ","
# $2 <String> Fully Qualified Domain Name
# $3 <String> value for TXT record
# $4 <String> DNS plugin auth and config parameter separated by ","
+# $5 <Integer> 0 is off, and the default all others are on.
setup() {
dns_plugin="dns_$1"
setup() {
dns_plugin="dns_$1"
fqdn="_acme-challenge.$2"
txtvalue=$3
plugin_conf_string=$4
fqdn="_acme-challenge.$2"
txtvalue=$3
plugin_conf_string=$4
fqdn="_acme-challenge.$2"
txtvalue=$3
plugin_conf_string=$4
fqdn="_acme-challenge.$2"
txtvalue=$3
plugin_conf_string=$4