summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/12-generate-ublock-origin-filter
diff options
context:
space:
mode:
authorsajolida <sajolida@pimienta.org>2018-09-06 10:02:49 +0000
committersajolida <sajolida@pimienta.org>2018-09-06 10:02:49 +0000
commit7d452d39998b5543bacc53696a0897dd2906da4f (patch)
treea51c412b3dbd9b5f3a2100619d8b61d4eebcc78a /config/chroot_local-hooks/12-generate-ublock-origin-filter
parentbda974fa5d21c9cb2ba54611687d78a1eb11a23f (diff)
parent3629361577a8af12247ec95a151ad3922cc2ecc5 (diff)
Merge remote-tracking branch 'origin/devel' into feature/15291-remove-softwarewip/feature/15291-remove-software-sajolida-experiment
Diffstat (limited to 'config/chroot_local-hooks/12-generate-ublock-origin-filter')
-rwxr-xr-xconfig/chroot_local-hooks/12-generate-ublock-origin-filter23
1 files changed, 0 insertions, 23 deletions
diff --git a/config/chroot_local-hooks/12-generate-ublock-origin-filter b/config/chroot_local-hooks/12-generate-ublock-origin-filter
deleted file mode 100755
index 72faba4..0000000
--- a/config/chroot_local-hooks/12-generate-ublock-origin-filter
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-set -e
-
-echo "Converting uBlock database dump into sqlite blob"
-
-# Import ensure_hook_dependency_is_installed()
-. /usr/local/lib/tails-shell-library/build.sh
-
-ensure_hook_dependency_is_installed sqlite3
-
-DUMP="/usr/share/tails/ublock-origin/ublock0.dump"
-DATABASE="/etc/tor-browser/profile/extension-data/ublock0.sqlite"
-
-mkdir -p "$(dirname "${DATABASE}")"
-
-# The sed expression simply means: remove all CRLF ("\r\n"). The use
-# of labels is simply to make this able to remove multiple CRLF to
-# create a single (long) line. In the end, this restores the
-# diff-friendly dump to the original sqlite dump.
-sed ':a;N;$!ba;s_\r\n__g' "${DUMP}" | sqlite3 "${DATABASE}"
-
-echo "Created uBlock sqlite blob successfully"