Description: Check config file to see if update should run
Author: Maarten L. Hekkelman <maarten@hekkelman.com>
Last-Update: Wed, 18 Nov 2020 09:58:40 +0100
Forwarded: yes

--- a/tools/update-dictionaries-script
+++ b/tools/update-dictionaries-script
@@ -2,6 +2,15 @@
 
 set -e
 
+if [ -f /etc/libcifpp.conf ] ; then
+	. /etc/libcifpp.conf
+fi
+
+# check to see if we're supposed to run at all
+if [ "$update" != "true" ] ; then
+	exit
+fi
+
 # create cache directory if it doesn't exist
 if ! [ -d /var/cache/libcifpp ]; then
 	install -d -m755 /var/cache/libcifpp
