summaryrefslogtreecommitdiffstats
path: root/debian/netdata.config
blob: 8dbf55fa62a8893e159dcbe427fd57a8b9b7b891 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -eu

CONFFILE="/etc/netdata/health_alarm_notify.conf"

. /usr/share/debconf/confmodule

if [ -e "${CONFFILE}" ]; then
	# contains bashisms
	. ${CONFFILE} || true

	db_set netdata/send_email "${SEND_EMAIL}"
fi

db_settitle netdata/title
db_input low netdata/send_email || true
db_go

db_stop