RPM: don't output errors on uninstallation
As per RPM documentation, it is advised to not clutter the output when removing packages. This commit fixes this by redirecting the errors to /dev/null, effectively getting rid of errors like: ``` userdel: synergy mail spool (/var/spool/mail/synergy) not found userdel: synergy home directory (/home/synergy) not found groupdel: group 'synergy' does not exist ``` Change-Id: I41508c13e971b3740d3e37448b62d5a9b841db37
This commit is contained in:
parent
485b021305
commit
7fc4a13865
@ -86,8 +86,8 @@ exit 0
|
|||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart synergy.service
|
%systemd_postun_with_restart synergy.service
|
||||||
if [ "$1" = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
userdel -r synergy || true
|
userdel -r synergy 2> /dev/null || true
|
||||||
groupdel synergy || true
|
groupdel synergy 2> /dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user