From 9b517094dee9e1ed57ec18ab2962846821cadac9 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Thu, 1 Apr 2021 03:56:42 +0000 Subject: [PATCH] style: move IE blocklist to domain section --- src/script.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/script.sh b/src/script.sh index c3b12e8..fbdbf16 100644 --- a/src/script.sh +++ b/src/script.sh @@ -138,6 +138,15 @@ sed '1 i\'"$COMMENT"'' | \ sed "1s/Blocklist/Unbound Blocklist/" > "../dist/pup-filter-unbound.conf" +## IE blocklist +COMMENT_IE="msFilterList\n$COMMENT\n: Expires=1\n#" + +cat "pup-notop-domains.txt" | \ +sed "s/^/-d /g" | \ +sed '1 i\'"$COMMENT_IE"'' | \ +sed "2s/Domains Blocklist/Hosts Blocklist (IE)/" > "../dist/pup-filter.tpl" + + set +x ## Snort & Suricata rulesets @@ -173,15 +182,6 @@ sed -i '1 i\'"$COMMENT"'' "../dist/pup-filter-suricata.rules" sed -i "1s/Blocklist/Suricata Ruleset/" "../dist/pup-filter-suricata.rules" -## IE blocklist -COMMENT_IE="msFilterList\n$COMMENT\n: Expires=1\n#" - -cat "pup-notop-domains.txt" | \ -sed "s/^/-d /g" | \ -sed '1 i\'"$COMMENT_IE"'' | \ -sed "2s/Domains Blocklist/Hosts Blocklist (IE)/" > "../dist/pup-filter.tpl" - - ## Clean up artifacts rm "source.zip" "source-domains.txt" "top-1m-umbrella.zip" "top-1m-umbrella.txt" "top-1m-tranco.txt"