diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2016-05-17 23:11:10 +0000 |
---|---|---|
committer | Federico Ceratto <federico.ceratto@gmail.com> | 2016-05-17 23:11:10 +0000 |
commit | 9558f6be33d91d550121984cb07abe55b1136008 (patch) | |
tree | a5aabef86f7aa71b64fa8498bbf29966f3065af8 | |
parent | shitty merge (diff) | |
download | netdata-9558f6be33d91d550121984cb07abe55b1136008.tar.xz netdata-9558f6be33d91d550121984cb07abe55b1136008.zip |
Cleanup on postrm
-rw-r--r-- | debian/TODO.Debian | 2 | ||||
-rw-r--r-- | debian/netdata.postrm | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/debian/TODO.Debian b/debian/TODO.Debian index e32c99e8..188a440a 100644 --- a/debian/TODO.Debian +++ b/debian/TODO.Debian @@ -2,8 +2,6 @@ * bootstrap, raphael, jquery + some jquery plugins exist. * 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/netdata.postrm b/debian/netdata.postrm index 7ac581d8..1e4677f8 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" |