rpm: remove confusing --user before --global

Fixes #9027.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-05-19 13:04:57 +02:00
parent a7a7163df7
commit 28d36da64a
+2 -2
View File
@@ -42,7 +42,7 @@ if [ $1 -eq 1 ] ; then \
fi \
%{nil}
%systemd_user_post() %{expand:%systemd_post \\--user \\--global %%{?*}}
%systemd_user_post() %{expand:%systemd_post \\--global %%{?*}}
%systemd_preun() \
if [ $1 -eq 0 ] ; then \
@@ -54,7 +54,7 @@ fi \
%systemd_user_preun() \
if [ $1 -eq 0 ] ; then \
# Package removal, not upgrade \
systemctl --no-reload --user --global disable %{?*} > /dev/null 2>&1 || : \
systemctl --global disable %{?*} > /dev/null 2>&1 || : \
fi \
%{nil}