fix: sed syntax to recognise newline
https://gitlab.com/malware-filter/urlhaus-filter/-/issues/79
This commit is contained in:
parent
1f0106b441
commit
2992734ec3
|
@ -115,7 +115,7 @@ RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.malware-filter.gitlab.io. hostmaster.rpz.ma
|
|||
|
||||
cat "domains.txt" | \
|
||||
sed "s/$/ CNAME ./g" | \
|
||||
sed "1i $RPZ_SYNTAX" | \
|
||||
sed '1 i\'"$RPZ_SYNTAX"'' | \
|
||||
sed "1i $COMMENT" | \
|
||||
sed "s/^#/;/g" | \
|
||||
sed "1s/Blocklist/RPZ Blocklist/" > "../public/vn-badsite-filter-rpz.conf"
|
||||
|
|
Loading…
Reference in New Issue