dnsapi for https://www.reg.ru/ code style

This commit is contained in:
AndreyIsakov 2019-06-11 13:07:01 +03:00
parent 7d07acbae6
commit 1cb33a18fb

View File

@ -1,13 +1,10 @@
#!/bin/bash #!/usr/bin/env sh
#Here is a sample custom api script. # Regru domain api
#This file name is "dns_myapi.sh"
#So, here must be a method dns_myapi_add() REGRU_API_Username="test"
#Which will be called by acme.sh to add the txt record to your api system. REGRU_API_Password="test"
#returns 0 means success, otherwise error. _domain='test.ru'
#
#Author: Neilpang
#Report Bugs here: https://github.com/Neilpang/acme.sh
# #
REGRU_API_URL="https://api.reg.ru/api/regru2" REGRU_API_URL="https://api.reg.ru/api/regru2"
@ -46,8 +43,8 @@ dns_regru_add() {
dns_regru_rm() { dns_regru_rm() {
fulldomain=$1 fulldomain=$1
txtvalue=$2 txtvalue=$2
echo 'RM-ONE '$1 echo 'RM-ONE '"$1"
echo 'RM-TWO '$2 echo 'RM-TWO '"$2"
REGRU_API_Username="${REGRU_API_Username:-$(_readaccountconf_mutable REGRU_API_Username)}" REGRU_API_Username="${REGRU_API_Username:-$(_readaccountconf_mutable REGRU_API_Username)}"
REGRU_API_Password="${REGRU_API_Password:-$(_readaccountconf_mutable REGRU_API_Password)}" REGRU_API_Password="${REGRU_API_Password:-$(_readaccountconf_mutable REGRU_API_Password)}"