path: root/config/chroot_local-hooks/12-generate-ublock-origin-filter
diff options
Diffstat (limited to 'config/chroot_local-hooks/12-generate-ublock-origin-filter')
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 @@
-set -e
-echo "Converting uBlock database dump into sqlite blob"
-# Import ensure_hook_dependency_is_installed()
-. /usr/local/lib/tails-shell-library/
-ensure_hook_dependency_is_installed sqlite3
-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"