. am Ende der Domain entfernt

This commit is contained in:
Czechman 2023-01-11 22:32:41 +01:00
parent a05117814a
commit ff37c267ea
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ set -e
case "$1" in
"present")
echo "Present"
full_domain=$2
full_domain=${$2%"."}
domain=$(echo $full_domain | rev | cut -d . -f -3 | rev)
praefix=${full_domain%"$domain"}
praefix=${praefix%"."}
@ -44,7 +44,7 @@ case "$1" in
praefix_pl="praefix=$praefix"
type_pl="type=TXT"
content_pl="content=$3"
echo "fd= $full_domain, domain= $domain, praefix=$praefix"
echo "fd= $full_domain, domain= $domain, praefix=$praefix, content=$content_pl "
curl -s -X POST -d "$domain_pl" -d "$praefix_pl" -d "$type_pl" -d "$content_pl" -H "$auth_h" https://ipv64.net/api
;;
"cleanup")