summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2016-05-17 23:11:10 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2016-05-17 23:11:10 +0000
commit9558f6be33d91d550121984cb07abe55b1136008 (patch)
treea5aabef86f7aa71b64fa8498bbf29966f3065af8
parentshitty merge (diff)
downloadnetdata-9558f6be33d91d550121984cb07abe55b1136008.tar.xz
netdata-9558f6be33d91d550121984cb07abe55b1136008.zip
Cleanup on postrm
-rw-r--r--debian/TODO.Debian2
-rw-r--r--debian/netdata.postrm1
2 files changed, 1 insertions, 2 deletions
diff --git a/debian/TODO.Debian b/debian/TODO.Debian
index e32c99e8e..188a440ad 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 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"