valeriyvdovin / rpms / systemd

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