Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
190ec0c1
Unverified
Commit
190ec0c1
authored
Jan 24, 2022
by
Lorenz Stechauner
Browse files
Adapt dns_world4you to new world4you website behaviour
parent
4c32bc8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
190ec0c1
...
...
@@ -24,7 +24,7 @@ dns_world4you_add() {
fi
export
_H1
=
"Cookie: W4YSESSID=
$sessid
"
form
=
$(
_get
"
$WORLD4YOU_API
/
dashboard/paketuebersicht
"
)
form
=
$(
_get
"
$WORLD4YOU_API
/"
)
_get_paketnr
"
$fqdn
"
"
$form
"
paketnr
=
"
$PAKETNR
"
if
[
-z
"
$paketnr
"
]
;
then
...
...
@@ -87,7 +87,7 @@ dns_world4you_rm() {
fi
export
_H1
=
"Cookie: W4YSESSID=
$sessid
"
form
=
$(
_get
"
$WORLD4YOU_API
/
dashboard/paketuebersicht
"
)
form
=
$(
_get
"
$WORLD4YOU_API
/"
)
_get_paketnr
"
$fqdn
"
"
$form
"
paketnr
=
"
$PAKETNR
"
if
[
-z
"
$paketnr
"
]
;
then
...
...
@@ -184,7 +184,7 @@ _get_paketnr() {
fqdn
=
"
$1
"
form
=
"
$2
"
domains
=
$(
echo
"
$form
"
|
grep
'
^ *[A-Za-z0-9_\.-]*\.[A-Za-z0-9_-]*$
'
|
sed
's/^
*\(.
*\)$/\1/'
)
domains
=
$(
echo
"
$form
"
|
grep
'
header-paket-domain'
|
sed
's/<[^>]*>//g
'
|
sed
's/^
.*>\([^>]
*\)$/\1/'
)
domain
=
''
for
domain
in
$domains
;
do
if
_contains
"
$fqdn
"
"
$domain
\$
"
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment