summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-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