From ca8a917d21d1a15a6ce55571f31216ec5210fca6 Mon Sep 17 00:00:00 2001 From: Arnstein Ressem Date: Tue, 16 Jan 2018 12:17:46 +0100 Subject: Delete the vespa group on uninstall. --- dist/vespa.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dist/vespa.spec') 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 -- cgit v1.2.3