summaryrefslogtreecommitdiffstats
path: root/debian/netdata.postinst.in
diff options
context:
space:
mode:
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