forked from pool/syncthing
This commit is contained in:
parent
0740733df7
commit
a65556b1c2
@ -58,19 +58,19 @@ install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
%service_add_post %{name}@.service
|
%service_add_post %{name}@.service
|
||||||
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
%if 0%{?suse_version} > 1320
|
||||||
%systemd_user_post %{name}.service
|
%systemd_user_post %{name}.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun %{name}@.service
|
%service_del_preun %{name}@.service
|
||||||
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
%if 0%{?suse_version} > 1320
|
||||||
%systemd_user_preun %{name}.service
|
%systemd_user_preun %{name}.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%service_del_postun %{name}@.service
|
%service_del_postun %{name}@.service
|
||||||
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
%if 0%{?suse_version} > 1320
|
||||||
%systemd_user_postun %{name}.service
|
%systemd_user_postun %{name}.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d
|
|||||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_unitdir}/%{name}@.service
|
%{_unitdir}/%{name}@.service
|
||||||
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
%if 0%{?suse_version} > 1320
|
||||||
%{_userunitdir}/%{name}.service
|
%{_userunitdir}/%{name}.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user