Revert parameter changes
Revert ONECOM_PASSWORD back to ONECOM_Password and ONECOM_USER back to ONECOM_User
This commit is contained in:
parent
68b42a00e0
commit
e340593ad1
@ -7,8 +7,8 @@
|
|||||||
# Fixed by: @der-berni
|
# Fixed by: @der-berni
|
||||||
# Modified: 2019-05-20
|
# Modified: 2019-05-20
|
||||||
#
|
#
|
||||||
# export ONECOM_USER="username"
|
# export ONECOM_User="username"
|
||||||
# export ONECOM_PASSWORD="password"
|
# export ONECOM_Password="password"
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# acme.sh --issue --dns dns_one -d example.com
|
# acme.sh --issue --dns dns_one -d example.com
|
||||||
@ -35,26 +35,26 @@ dns_one_add() {
|
|||||||
_debug mydomain "$mydomain"
|
_debug mydomain "$mydomain"
|
||||||
|
|
||||||
# get credentials
|
# get credentials
|
||||||
ONECOM_USER="${ONECOM_USER:-$(_readaccountconf_mutable ONECOM_USER)}"
|
ONECOM_User="${ONECOM_User:-$(_readaccountconf_mutable ONECOM_User)}"
|
||||||
ONECOM_PASSWORD="${ONECOM_PASSWORD:-$(_readaccountconf_mutable ONECOM_PASSWORD)}"
|
ONECOM_Password="${ONECOM_Password:-$(_readaccountconf_mutable ONECOM_Password)}"
|
||||||
if [ -z "$ONECOM_USER" ] || [ -z "$ONECOM_PASSWORD" ]; then
|
if [ -z "$ONECOM_User" ] || [ -z "$ONECOM_Password" ]; then
|
||||||
ONECOM_USER=""
|
ONECOM_User=""
|
||||||
ONECOM_PASSWORD=""
|
ONECOM_Password=""
|
||||||
_err "You didn't specify a one.com username and password yet."
|
_err "You didn't specify a one.com username and password yet."
|
||||||
_err "Please create the key and try again."
|
_err "Please create the key and try again."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#save the api key and email to the account conf file.
|
#save the api key and email to the account conf file.
|
||||||
_saveaccountconf_mutable ONECOM_USER "$ONECOM_USER"
|
_saveaccountconf_mutable ONECOM_User "$ONECOM_User"
|
||||||
_saveaccountconf_mutable ONECOM_PASSWORD "$ONECOM_PASSWORD"
|
_saveaccountconf_mutable ONECOM_Password "$ONECOM_Password"
|
||||||
|
|
||||||
# Login with user and password
|
# Login with user and password
|
||||||
postdata="loginDomain=true"
|
postdata="loginDomain=true"
|
||||||
postdata="$postdata&displayUsername=$ONECOM_USER"
|
postdata="$postdata&displayUsername=$ONECOM_User"
|
||||||
postdata="$postdata&username=$ONECOM_USER"
|
postdata="$postdata&username=$ONECOM_User"
|
||||||
postdata="$postdata&targetDomain=$mydomain"
|
postdata="$postdata&targetDomain=$mydomain"
|
||||||
postdata="$postdata&password1=$ONECOM_PASSWORD"
|
postdata="$postdata&password1=$ONECOM_Password"
|
||||||
postdata="$postdata&loginTarget="
|
postdata="$postdata&loginTarget="
|
||||||
#_debug postdata "$postdata"
|
#_debug postdata "$postdata"
|
||||||
|
|
||||||
@ -118,11 +118,11 @@ dns_one_rm() {
|
|||||||
_debug mydomain "$mydomain"
|
_debug mydomain "$mydomain"
|
||||||
|
|
||||||
# get credentials
|
# get credentials
|
||||||
ONECOM_USER="${ONECOM_USER:-$(_readaccountconf_mutable ONECOM_USER)}"
|
ONECOM_User="${ONECOM_User:-$(_readaccountconf_mutable ONECOM_User)}"
|
||||||
ONECOM_PASSWORD="${ONECOM_PASSWORD:-$(_readaccountconf_mutable ONECOM_PASSWORD)}"
|
ONECOM_Password="${ONECOM_Password:-$(_readaccountconf_mutable ONECOM_Password)}"
|
||||||
if [ -z "$ONECOM_USER" ] || [ -z "$ONECOM_PASSWORD" ]; then
|
if [ -z "$ONECOM_User" ] || [ -z "$ONECOM_Password" ]; then
|
||||||
ONECOM_USER=""
|
ONECOM_User=""
|
||||||
ONECOM_PASSWORD=""
|
ONECOM_Password=""
|
||||||
_err "You didn't specify a one.com username and password yet."
|
_err "You didn't specify a one.com username and password yet."
|
||||||
_err "Please create the key and try again."
|
_err "Please create the key and try again."
|
||||||
return 1
|
return 1
|
||||||
@ -130,10 +130,10 @@ dns_one_rm() {
|
|||||||
|
|
||||||
# Login with user and password
|
# Login with user and password
|
||||||
postdata="loginDomain=true"
|
postdata="loginDomain=true"
|
||||||
postdata="$postdata&displayUsername=$ONECOM_USER"
|
postdata="$postdata&displayUsername=$ONECOM_User"
|
||||||
postdata="$postdata&username=$ONECOM_USER"
|
postdata="$postdata&username=$ONECOM_User"
|
||||||
postdata="$postdata&targetDomain=$mydomain"
|
postdata="$postdata&targetDomain=$mydomain"
|
||||||
postdata="$postdata&password1=$ONECOM_PASSWORD"
|
postdata="$postdata&password1=$ONECOM_Password"
|
||||||
postdata="$postdata&loginTarget="
|
postdata="$postdata&loginTarget="
|
||||||
|
|
||||||
#CURL does not work
|
#CURL does not work
|
||||||
|
Loading…
Reference in New Issue
Block a user