From 666bb7e738a9233ef02432bc46a936985e5af59e Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 19 Feb 2022 20:31:15 +0100 Subject: [PATCH] Register domain on existing accounts correctly (#2242) --- addons/deSEC/desec.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/addons/deSEC/desec.sh b/addons/deSEC/desec.sh index 8c4f7a9f..c375877a 100644 --- a/addons/deSEC/desec.sh +++ b/addons/deSEC/desec.sh @@ -122,6 +122,16 @@ then fi } +register_domain_existing_account(){ +curl -X POST https://desec.io/api/v1/domains/ \ + --header "Authorization: Token $DEDYNAUTHTOKEN" \ + --header "Content-Type: application/json" --data @- < prompt_for_security_token + prompt_security_token + register_domain_existing_account break fi fi done -prompt_security_token +# Always ask for DynDNS and TLS prompt_dyndns prompt_tls