changes due to inkompabilities of some distros

This commit is contained in:
AlvinSchiller 2022-05-18 11:48:48 +02:00
parent 2cf72bad30
commit d4cf03c9fd
1 changed files with 1 additions and 1 deletions

View File

@ -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