mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 13:11:41 +00:00
Extract configuration saving code to function
This commit is contained in:
parent
978ec91107
commit
a7d6146169
@ -18,9 +18,7 @@ dns_loopia_add() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#save the api key and email to the account conf file.
|
_loopia_save_config
|
||||||
_saveaccountconf_mutable LOOPIA_User "$LOOPIA_User"
|
|
||||||
_saveaccountconf_mutable LOOPIA_Password "$LOOPIA_Password"
|
|
||||||
|
|
||||||
_debug "First detect the root zone"
|
_debug "First detect the root zone"
|
||||||
if ! _get_root "$fulldomain"; then
|
if ! _get_root "$fulldomain"; then
|
||||||
@ -45,9 +43,7 @@ dns_loopia_rm() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#save the api key and email to the account conf file.
|
_loopia_save_config
|
||||||
_saveaccountconf_mutable LOOPIA_User "$LOOPIA_User"
|
|
||||||
_saveaccountconf_mutable LOOPIA_Password "$LOOPIA_Password"
|
|
||||||
|
|
||||||
_debug "First detect the root zone"
|
_debug "First detect the root zone"
|
||||||
if ! _get_root "$fulldomain"; then
|
if ! _get_root "$fulldomain"; then
|
||||||
@ -101,6 +97,11 @@ _loopia_load_config() {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_loopia_save_config() {
|
||||||
|
_saveaccountconf_mutable LOOPIA_User "$LOOPIA_User"
|
||||||
|
_saveaccountconf_mutable LOOPIA_Password "$LOOPIA_Password"
|
||||||
|
}
|
||||||
|
|
||||||
_loopia_get_records() {
|
_loopia_get_records() {
|
||||||
domain=$1
|
domain=$1
|
||||||
sub_domain=$2
|
sub_domain=$2
|
||||||
|
Loading…
Reference in New Issue
Block a user