[jetty] Comment on removing jetty user during upgrade
Mikolaj Izdebski
mizdebsk at fedoraproject.org
Mon Apr 23 13:08:18 UTC 2012
commit d4692bd6c5c70feb184ab73aa779d1f7b10cf46f
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date: Mon Apr 23 15:07:39 2012 +0200
Comment on removing jetty user during upgrade
jetty.spec | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jetty.spec b/jetty.spec
index 6dbca89..3895db2 100644
--- a/jetty.spec
+++ b/jetty.spec
@@ -366,6 +366,8 @@ if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
+# Remove the user even during upgrade, it will be added later in %post.
+# This is required to force incorrect UID to be replaced with the new one.
%__fe_userdel %username &>/dev/null || :
%__fe_groupdel %username &>/dev/null || :
More information about the scm-commits
mailing list