summaryrefslogtreecommitdiffstats
path: root/debian/netdata.postinst.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-31 18:11:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-31 18:11:15 +0000
commit4b8962ca75178ff12f5db4f49833b8849f1d4bb2 (patch)
tree8261c750743286085b797e70bcd37b72362040af /debian/netdata.postinst.in
parentUpdating TODO file. (diff)
downloadnetdata-4b8962ca75178ff12f5db4f49833b8849f1d4bb2.tar.xz
netdata-4b8962ca75178ff12f5db4f49833b8849f1d4bb2.zip
Removing debconf-handling of health_alarm_notify.conf for now, will reintroduce it properly with ucf after some reworking/generalization (Closes: #904459).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/netdata.postinst.in')
-rw-r--r--debian/netdata.postinst.in26
1 files changed, 0 insertions, 26 deletions
diff --git a/debian/netdata.postinst.in b/debian/netdata.postinst.in
index 49ed64955..d4fe0171c 100644
--- a/debian/netdata.postinst.in
+++ b/debian/netdata.postinst.in
@@ -2,34 +2,8 @@
set -e
-CONFFILE="/etc/netdata/health_alarm_notify.conf"
-
-. /usr/share/debconf/confmodule
-
case "$1" in
configure)
- db_get netdata/send_email
- SEND_EMAIL="${RET:-true}" # boolean
-
- db_stop
-
- case "${SEND_EMAIL}" in
- true)
- SEND_EMAIL="YES"
- ;;
-
- *)
- SEND_EMAIL="NO"
- ;;
- esac
-
- if [ -e "${CONFFILE}" ]; then
- sed -e "s|^ *SEND_EMAIL=.*|SEND_EMAIL=\"${SEND_EMAIL}\"|" \
- < "${CONFFILE}" > "${CONFFILE}.tmp"
-
- mv -f "${CONFFILE}.tmp" "${CONFFILE}"
- fi
-
if [ -z "$2" ]; then
if ! getent group netdata >/dev/null; then
addgroup --quiet --system netdata