Blame SOURCES/0654-rpm-remove-confusing-user-before-global.patch

17b0f1
From 4bc18a925e964f10b4e7ed92e8e0d84bf985c6a8 Mon Sep 17 00:00:00 2001
17b0f1
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
17b0f1
Date: Sat, 19 May 2018 13:01:55 +0200
17b0f1
Subject: [PATCH] rpm: remove confusing --user before --global
17b0f1
17b0f1
Fixes #9027.
17b0f1
17b0f1
(cherry picked from commit 28d36da64a7a23a55e8d0a139f2620384fd058b3)
17b0f1
Resolves: #1582383
17b0f1
---
17b0f1
 src/core/macros.systemd.in | 4 ++--
17b0f1
 1 file changed, 2 insertions(+), 2 deletions(-)
17b0f1
17b0f1
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
17b0f1
index 662791cccc..3d6e412744 100644
17b0f1
--- a/src/core/macros.systemd.in
17b0f1
+++ b/src/core/macros.systemd.in
17b0f1
@@ -43,7 +43,7 @@ if [ $1 -eq 1 ] ; then \
17b0f1
 fi \
17b0f1
 %{nil}
17b0f1
 
17b0f1
-%systemd_user_post() %{expand:%systemd_post \\--user \\--global %%{?*}}
17b0f1
+%systemd_user_post() %{expand:%systemd_post \\--global %%{?*}}
17b0f1
 
17b0f1
 %systemd_preun() \
17b0f1
 if [ $1 -eq 0 ] ; then \
17b0f1
@@ -56,7 +56,7 @@ fi \
17b0f1
 %systemd_user_preun() \
17b0f1
 if [ $1 -eq 0 ] ; then \
17b0f1
         # Package removal, not upgrade \
17b0f1
-        systemctl --no-reload --user --global disable %{?*} > /dev/null 2>&1 || : \
17b0f1
+        systemctl --global disable %{?*} > /dev/null 2>&1 || : \
17b0f1
 fi \
17b0f1
 %{nil}
17b0f1