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}