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
d4cf03c9
Commit
d4cf03c9
authored
May 18, 2022
by
AlvinSchiller
Browse files
changes due to inkompabilities of some distros
parent
2cf72bad
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_selfhost.sh
View file @
d4cf03c9
...
...
@@ -42,7 +42,7 @@ dns_selfhost_add() {
# e.g. don't match mytest.example.com or sub.test.example.com for test.example.com
# replace the whole string with the RID (matching group 3) for assignment
# if the domain is defined multiple times only the last occurance will be matched
rid
=
$(
echo
"
$SELFHOSTDNS_MAP
"
|
sed
-
n
"s/
\
(
^
\
|
^.*
\s\)\
(
$lookupdomain
:
\
|
$fulldomain
:
\)\
(
[0-9][0-9]*
\)\
(
.*
\
)
/
\3
/
Ip
"
)
rid
=
$(
echo
"
$SELFHOSTDNS_MAP
"
|
sed
-
E
"s/(^|^.*
[[:space:]])
(
$lookupdomain
:|
$fulldomain
:
)
([0-9][0-9]*
)
(.*)/
\3
/"
)
if
test
-z
"
$rid
"
;
then
if
[
$SELFHOSTDNS_LAST_SLOT
=
"2"
]
;
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