Browse Source

Update dns_kas.sh

fixing 4 Travis style
pull/1341/head
Marco4223 5 years ago
parent
commit
024619676b
  1. 5
      dnsapi/dns_kas.sh

5
dnsapi/dns_kas.sh

@ -9,6 +9,7 @@
# - $KAS_Authdata (Kasserver API auth data.)
#
# Author: Martin Kammerlander, Phlegx Systems OG <martin.kammerlander@phlegx.com>
# Updated by: Marc-Oliver Lange <git@die-lang.es>
# Credits: Inspired by dns_he.sh. Thanks a lot man!
# Git repo: https://github.com/phlegx/acme.sh
# TODO: Better Error handling
@ -19,7 +20,7 @@ dns_kas_add(){
_fulldomain=$1
_txtvalue=$2
_info "Using DNS-01 All-inkl/Kasserver hook"
_info "Adding or Updating $_fulldomain DNS TXT entry on All-inkl/Kasserver"
_info "Adding $_fulldomain DNS TXT entry on All-inkl/Kasserver"
_info "Check and Save Props"
_check_and_save
_info "Checking Zone and Record_Name"
@ -140,7 +141,7 @@ _get_zone_and_record_name() {
fi
done
_zone="${_rootzone}."
_temp_record_name="$(echo "$_temp_domain" | sed "s/"$_rootzone"//g")"
_temp_record_name="$(echo "$_temp_domain" | sed "s/$_rootzone//g")"
_record_name="$(echo "$_temp_record_name" | sed 's/\.$//')"
_debug2 "Zone:" "$_zone"
_debug2 "Domain:" "$_domain"

Loading…
Cancel
Save