fix: POSIX new line handling
Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
parent
aefc5a5b00
commit
cb2175d1c1
|
@ -68,8 +68,7 @@ UpdateExternal() {
|
||||||
if [ -n "$ExternalView" ] || [ -n "$ExternDomain" ]; then
|
if [ -n "$ExternalView" ] || [ -n "$ExternDomain" ]; then
|
||||||
SerialExtern="$(GetZoneFileSerial "$ExternalZoneFile")"
|
SerialExtern="$(GetZoneFileSerial "$ExternalZoneFile")"
|
||||||
if [ $((SerialIntern)) -gt $((SerialExtern)) ]; then
|
if [ $((SerialIntern)) -gt $((SerialExtern)) ]; then
|
||||||
sed -e '/^[^;]*\s\(10\.\|[fF][cdCD][0-9a-fA-F]\{2\}:\)\S*\s*\(;.*\)\?$/d; \
|
sed -e '/^[^;]*\s\(10\.\|[fF][cdCD][0-9a-fA-F]\{2\}:\)\S*\s*\(;.*\)\?$/d;s/^[^;^@]*\s\+\([^;]*\)\s[Ii][Nn]\s\+[Ss][Oo][Aa]\s/@ \1 IN SOA /g' "$InternalZoneFile" \
|
||||||
s/^[^;^@]*\s\+\([^;]*\)\s[Ii][Nn]\s\+[Ss][Oo][Aa]\s/@ \1 IN SOA /g' "$InternalZoneFile" \
|
|
||||||
> "$ExternalZoneFile"
|
> "$ExternalZoneFile"
|
||||||
UpdateExternView=1
|
UpdateExternView=1
|
||||||
ReloadZone "$InternalDomain" "$ExternalView" "$ZoneFilesFolder"
|
ReloadZone "$InternalDomain" "$ExternalView" "$ZoneFilesFolder"
|
||||||
|
|
Loading…
Reference in New Issue