Update dns_wedos.sh

This commit is contained in:
masem 2020-06-07 05:19:52 +02:00 committed by GitHub
parent c6476fce28
commit fe4dc8582d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,15 +129,14 @@ _wedos_init() {
WEDOS_Hash="${WEDOS_Hash:-$(_readaccountconf_mutable WEDOS_Hash)}" WEDOS_Hash="${WEDOS_Hash:-$(_readaccountconf_mutable WEDOS_Hash)}"
WEDOS_User="${WEDOS_User:-$(_readaccountconf_mutable WEDOS_User)}" WEDOS_User="${WEDOS_User:-$(_readaccountconf_mutable WEDOS_User)}"
if [ -z "$WEDOS_Pass" ]; then if [ ! -z "$WEDOS_Pass" && -z "$WEDOS_Hash" ]; then
WEDOS_Pass="" WEDOS_Hash=$(printf "%s" "$WEDOS_Pass" | _digest sha1 1)
_err "You didn't specify a wedos password yet."
_err "Please create password and try again."
return 1
fi fi
if [ -z "$WEDOS_Hash" ]; then if [ -z "$WEDOS_Hash" ]; then
WEDOS_Hash=$(printf "%s" "$WEDOS_Pass" | _digest sha1 1) _err "You didn't specify a wedos hash or password yet."
_err "Please create hash or password and try again."
return 1
fi fi
_saveaccountconf_mutable WEDOS_Hash "$WEDOS_Hash" _saveaccountconf_mutable WEDOS_Hash "$WEDOS_Hash"