diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-02-04 11:33:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-02-04 11:33:04 +0000 |
commit | cb384aeb78826684ec0f444dce996a854313c6a3 (patch) | |
tree | 5876b200533245a48ba9166779e84c2b8209dae9 | |
parent | Removing ExecReload from systemd unit (Closes: #921279). (diff) | |
download | netdata-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-x | debian/netdata-core.postrm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/netdata-core.postrm b/debian/netdata-core.postrm index 1ac2941ae..358b2a773 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) ;; |