summaryrefslogtreecommitdiffstats
path: root/dist/vespa.spec
diff options
context:
space:
mode:
authorArnstein Ressem <aressem@oath.com>2018-01-16 12:17:46 +0100
committerArnstein Ressem <aressem@oath.com>2018-01-16 12:17:46 +0100
commitca8a917d21d1a15a6ce55571f31216ec5210fca6 (patch)
tree52b413ae0cc060330e49e2d9bc40dce97f2e3416 /dist/vespa.spec
parent763cc52c0eab484afeeb7ce0a73b7b1d2b1d3a6a (diff)
Delete the vespa group on uninstall.
Diffstat (limited to 'dist/vespa.spec')
-rw-r--r--dist/vespa.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/dist/vespa.spec b/dist/vespa.spec
index 5c6d3df10d8..b7d84bc6d89 100644
--- a/dist/vespa.spec
+++ b/dist/vespa.spec
@@ -203,7 +203,8 @@ exit 0
%systemd_postun_with_restart vespa-configserver.service
if [ $1 -eq 0 ]; then # this is an uninstallation
rm -f /etc/profile.d/vespa.sh
- userdel vespa
+ ! getent passwd vespa >/dev/null || userdel vespa
+ ! getent group vespa >/dev/null || groupdel vespa
fi
%files