summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-04 11:33:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-02-04 11:33:04 +0000
commitcb384aeb78826684ec0f444dce996a854313c6a3 (patch)
tree5876b200533245a48ba9166779e84c2b8209dae9
parentRemoving ExecReload from systemd unit (Closes: #921279). (diff)
downloadnetdata-cb384aeb78826684ec0f444dce996a854313c6a3.tar.xz
netdata-cb384aeb78826684ec0f444dce996a854313c6a3.zip
Removing netdata user on purge, not on remove to make logrotate not fail on missing users (Closes: #920697).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/netdata-core.postrm6
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/netdata-core.postrm b/debian/netdata-core.postrm
index 1ac2941a..358b2a77 100755
--- a/debian/netdata-core.postrm
+++ b/debian/netdata-core.postrm
@@ -3,7 +3,7 @@
set -e
case "${1}" in
- remove)
+ purge)
# removing directory overrides
for DIRECTORY in /var/cache/netdata /var/lib/netdata
do
@@ -24,14 +24,12 @@ case "${1}" in
then
groupdel netdata || echo "Unable to remove netdata group"
fi
- ;;
- purge)
# removing directories
rm -rf /var/cache/netdata /var/lib/netdata /var/log/netdata
;;
- upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;