From c41fd813fbb66fe20a64c09720c5b6ed2bad52ee Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 20 Mar 2018 17:45:29 +0100 Subject: [PATCH] Install samba.service after the unitdir is created --- samba.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samba.spec b/samba.spec index 088de5c..bd0bfc2 100644 --- a/samba.spec +++ b/samba.spec @@ -869,8 +869,6 @@ install -m 0644 %{SOURCE201} packaging/README.downgrade %if ! %with_dc install -m 0644 %{SOURCE200} packaging/README.dc install -m 0644 %{SOURCE200} packaging/README.dc-libs -%else -install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/samba.service %endif install -d -m 0755 %{buildroot}%{_unitdir} @@ -878,6 +876,10 @@ for i in nmb smb winbind ; do cat packaging/systemd/$i.service | sed -e 's@\[Service\]@[Service]\nEnvironment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba@g' >tmp$i.service install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service done +%if %with_dc +install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/samba.service +%endif + %if %with_clustering_support install -m 0644 ctdb/config/ctdb.service %{buildroot}%{_unitdir} %endif