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