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
b39df5ce
Unverified
Commit
b39df5ce
authored
Feb 06, 2022
by
neil
Committed by
GitHub
Feb 06, 2022
Browse files
Merge pull request #3906 from NerLOR/master
Adapt dns_world4you to new world4you website behaviour
parents
9ec4b59a
20877146
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_world4you.sh
View file @
b39df5ce
...
...
@@ -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