Install samba.service after the unitdir is created

tags/samba-4.6.2-13.fws.beta9
Daniel Berteaud 7 years ago
parent 5656311b78
commit c41fd813fb
  1. 6
      samba.spec

@ -869,8 +869,6 @@ install -m 0644 %{SOURCE201} packaging/README.downgrade
%if ! %with_dc %if ! %with_dc
install -m 0644 %{SOURCE200} packaging/README.dc install -m 0644 %{SOURCE200} packaging/README.dc
install -m 0644 %{SOURCE200} packaging/README.dc-libs install -m 0644 %{SOURCE200} packaging/README.dc-libs
%else
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/samba.service
%endif %endif
install -d -m 0755 %{buildroot}%{_unitdir} 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 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 install -m 0644 tmp$i.service %{buildroot}%{_unitdir}/$i.service
done done
%if %with_dc
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/samba.service
%endif
%if %with_clustering_support %if %with_clustering_support
install -m 0644 ctdb/config/ctdb.service %{buildroot}%{_unitdir} install -m 0644 ctdb/config/ctdb.service %{buildroot}%{_unitdir}
%endif %endif

Loading…
Cancel
Save