Don't remove the user account in %postun

The packaging guidelines say we shouldn't remove user accounts. We
definitely can't do it unconditionally since this means that we are
removing it on upgrades.
This commit is contained in:
Rui Matos 2013-06-17 14:21:37 +02:00
parent 75336f2093
commit 7a261fea6c

View File

@ -91,9 +91,6 @@ mkdir -p %{buildroot}%{_localstatedir}/lib/gnome-initial-setup
%pre
useradd -rM -d /run/gnome-initial-setup/ -s /sbin/nologin %{name} &>/dev/null || :
%postun
userdel %{name} &>/dev/null || :
%files -f %{name}.lang
%doc COPYING README
%{_libexecdir}/gnome-initial-setup