Fix empty %pre section if !systemd_enabled

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/ocfs2-tools?expand=0&rev=114
This commit is contained in:
Kristoffer Gronlund 2018-08-14 14:08:06 +00:00 committed by Git OBS Bridge
parent 1c09ae681b
commit 2d6547bf4a

View File

@ -225,8 +225,8 @@ chmod a-x %{buildroot}/%{_libdir}/libocfs2.a
python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')" python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir}/ocfs2interface', ddir='%{py_sitedir}/ocfs2interface')"
%endif %endif
%pre o2cb
%if %{systemd_enabled} %if %{systemd_enabled}
%pre o2cb
%service_add_pre ocfs2.service o2cb.service %service_add_pre ocfs2.service o2cb.service
%endif %endif