diff options
-rw-r--r-- | debian/TODO.Debian | 2 | ||||
-rw-r--r-- | debian/control | 4 | ||||
-rw-r--r-- | debian/netdata.postrm | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/debian/TODO.Debian b/debian/TODO.Debian index 6d3eb9f0c..941b31e0b 100644 --- a/debian/TODO.Debian +++ b/debian/TODO.Debian @@ -17,8 +17,6 @@ - web/lib/morris.min.js * Create additional or keep them in mind for future linking * Restrict security permissions in netdata.service -* Do cleanup when apt-get purge is run - * delete user, /var/cache/netdata, /var/log/netdata * Move arch-indep data to -data package * Move interpreter specific plugins to additional packages. e.g. -plugins-nodejs * No massive dependency tree for the simple netdata version diff --git a/debian/control b/debian/control index 435c5fb6c..c00d4169e 100644 --- a/debian/control +++ b/debian/control @@ -25,7 +25,7 @@ Depends: adduser, ${misc:Depends}, ${misc:Pre-Depends}, ${shlibs:Depends} -Recommends: netdata-plugins-nodejs +Suggests: netdata-plugins-nodejs Description: real-time charts for system monitoring Netdata is a daemon that collects data in realtime (per second) and presents a web site to view and analyze them. The presentation @@ -47,7 +47,7 @@ Description: real-time charts for system monitoring Package: netdata-plugins-nodejs Architecture: all Multi-Arch: foreign -Depends: nodejs, ${misc:Depends}, ${shlibs:Depends} +Depends: nodejs, netdata, ${misc:Depends}, ${shlibs:Depends} Description: real-time charts for system monitoring Netdata is a daemon that collects data in realtime (per second) and presents a web site to view and analyze them. The presentation diff --git a/debian/netdata.postrm b/debian/netdata.postrm index 7ac581d87..1e4677f86 100644 --- a/debian/netdata.postrm +++ b/debian/netdata.postrm @@ -12,6 +12,7 @@ case "$1" in dpkg-statoverride --remove "$dir_name" fi done + rm -rf /var/cache/netdata /var/log/netdata if getent passwd netdata >/dev/null; then deluser --quiet --system netdata || echo "Unable to remove netdata user" |