From 1cb33a18fb2ff209092fee9f63c425ab2b6ea54a Mon Sep 17 00:00:00 2001 From: AndreyIsakov Date: Tue, 11 Jun 2019 13:07:01 +0300 Subject: [PATCH] dnsapi for https://www.reg.ru/ code style --- dnsapi/dns_regru.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/dnsapi/dns_regru.sh b/dnsapi/dns_regru.sh index ef26b4b2..1a930cee 100644 --- a/dnsapi/dns_regru.sh +++ b/dnsapi/dns_regru.sh @@ -1,13 +1,10 @@ -#!/bin/bash +#!/usr/bin/env sh -#Here is a sample custom api script. -#This file name is "dns_myapi.sh" -#So, here must be a method dns_myapi_add() -#Which will be called by acme.sh to add the txt record to your api system. -#returns 0 means success, otherwise error. -# -#Author: Neilpang -#Report Bugs here: https://github.com/Neilpang/acme.sh +# Regru domain api + +REGRU_API_Username="test" +REGRU_API_Password="test" +_domain='test.ru' # REGRU_API_URL="https://api.reg.ru/api/regru2" @@ -46,8 +43,8 @@ dns_regru_add() { dns_regru_rm() { fulldomain=$1 txtvalue=$2 - echo 'RM-ONE '$1 - echo 'RM-TWO '$2 + echo 'RM-ONE '"$1" + echo 'RM-TWO '"$2" REGRU_API_Username="${REGRU_API_Username:-$(_readaccountconf_mutable REGRU_API_Username)}" REGRU_API_Password="${REGRU_API_Password:-$(_readaccountconf_mutable REGRU_API_Password)}"