summaryrefslogtreecommitdiff
path: root/utils/filtron.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-08-20 14:21:54 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-08-20 14:21:54 +0200
commit8ba4dc26d1a4588043b4c0020f72b6b01c35126a (patch)
tree4f613433ed071a44788ddfb974385344f94ce8b1 /utils/filtron.sh
parent102c8152312887525bf48933831e898c1951233b (diff)
downloadsearxng-8ba4dc26d1a4588043b4c0020f72b6b01c35126a.tar.gz
searxng-8ba4dc26d1a4588043b4c0020f72b6b01c35126a.zip
[fix] utils/searx.sh install settings - do not eval the template
The settings template in utils/templates/etc/searx/settings.yml does not include any replacements (shell environment variables). BTW: utils/filtron.sh & utils/lib.sh Add some more messages to installation procedures, to be more clear. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/filtron.sh')
-rwxr-xr-xutils/filtron.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index 3bd6f016d..4e35199ee 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -302,6 +302,12 @@ install_rules() {
return
fi
+ if cmp --silent "${FILTRON_RULES}" "${FILTRON_RULES_TEMPLATE}"; then
+ info_msg "${FILTRON_RULES} is up to date with"
+ info_msg "${FILTRON_RULES_TEMPLATE}"
+ return
+ fi
+
rst_para "Diff between origin's rules file (+) and current (-):"
echo "${FILTRON_RULES}" "${FILTRON_RULES_TEMPLATE}"
$DIFF_CMD "${FILTRON_RULES}" "${FILTRON_RULES_TEMPLATE}"