Author: Marc Haber <mh+debian-packages@zugschlus.de>
Description: Allow rrdup_notify to be configured from /etc/default/torrus-common
--- a/scripts/rrdup_notify.sh
+++ b/scripts/rrdup_notify.sh
@@ -7,14 +7,22 @@
 # Stanislav Sinyagin <ssinyagin@yahoo.com>
 #
 
+# pull in configuration variables
+test -f /etc/default/torrus-common && . /etc/default/torrus-common
+
+if [ -z "$RRDUP_N_NOTIFY" ]; then
+  # nothing to do
+  exit 0
+fi
+
 # Where the RRD files are located. Separate multiple paths with space
-RRDSTORAGE=/var/lib/torrus/collector_rrd
+RRDSTORAGE=${RRDUP_N_RRDSTORAGE:-/var/lib/torrus/collector_rrd}
 
 # Maximum allowed age of an RRD file, in minutes.
-MAXAGE=60
+MAXAGE=${RRDUP_N_MAXAGE:-60}
 
 # Where to send complaints
-NOTIFY=root
+NOTIFY=$RRDUP_N_NOTIFY
 
 TMPFILE=/tmp/rrdup_notify.$$
 
