mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-14 19:52:45 +00:00
dnsapi for https://www.reg.ru/ code style
This commit is contained in:
parent
7d07acbae6
commit
1cb33a18fb
@ -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)}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user