diff options
Diffstat (limited to 'standalone-container')
-rw-r--r-- | standalone-container/vespa-standalone-container.spec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/standalone-container/vespa-standalone-container.spec b/standalone-container/vespa-standalone-container.spec index 5ab7e9409a5..14256849962 100644 --- a/standalone-container/vespa-standalone-container.spec +++ b/standalone-container/vespa-standalone-container.spec @@ -87,7 +87,8 @@ chmod +x /etc/profile.d/vespa.sh %postun 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 |