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
This commit is contained in:
parent
f1669729f3
commit
11b0448988
@ -54,6 +54,7 @@ Source1: %{name}.service
|
|||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
|
Requires(pre): shadow
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch1: conman-suse-fix-expect-scripts.patch
|
Patch1: conman-suse-fix-expect-scripts.patch
|
||||||
@ -136,12 +137,12 @@ fi
|
|||||||
%if 0%{?have_systemd}
|
%if 0%{?have_systemd}
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre conman.service
|
%service_add_pre conman.service
|
||||||
%endif
|
|
||||||
%define conman_home "%_localstatedir%_rundir/conman"
|
%define conman_home "%_localstatedir%_rundir/conman"
|
||||||
%define conman_descr "Connection Manager service"
|
%define conman_descr "Connection Manager service"
|
||||||
getent group %conman_g >/dev/null || groupadd -r %conman_g
|
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
|
getent passwd %conman_u >/dev/null || useradd -r -g %conman_g -d %conman_home -s /bin/false -c %conman_descr %conman_u
|
||||||
exit 0
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if 0%{?have_systemd}
|
%if 0%{?have_systemd}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user