From 11b044898848d89474dca79796e875aef3cd10f7b13eb42cb291b08f7406b07e Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Mon, 14 Aug 2017 15:51:06 +0000 Subject: [PATCH] Accepting request 516895 from home:eeich:branches:network:cluster - Fix build. OBS-URL: https://build.opensuse.org/request/show/516895 OBS-URL: https://build.opensuse.org/package/show/network:cluster/conman?expand=0&rev=10 --- conman.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conman.spec b/conman.spec index 71a3dab..de9c34b 100644 --- a/conman.spec +++ b/conman.spec @@ -54,6 +54,7 @@ Source1: %{name}.service BuildRequires: systemd BuildRequires: systemd-rpm-macros %{?systemd_requires} +Requires(pre): shadow %endif Patch1: conman-suse-fix-expect-scripts.patch @@ -136,12 +137,12 @@ fi %if 0%{?have_systemd} %pre %service_add_pre conman.service -%endif %define conman_home "%_localstatedir%_rundir/conman" %define conman_descr "Connection Manager service" getent group %conman_g >/dev/null || groupadd -r %conman_g getent passwd %conman_u >/dev/null || useradd -r -g %conman_g -d %conman_home -s /bin/false -c %conman_descr %conman_u exit 0 +%endif %preun %if 0%{?have_systemd}