diff --git a/strongswan.spec b/strongswan.spec index db1da3a..5f903c9 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -58,7 +58,7 @@ chmod 700 %{buildroot}%{_sysconfdir}/%{name} # setup systemd unit or initscript %if 0%{?fedora} >= 15 || 0%{?rhel} >= 7 %else -rm %{buildroot}%{_unitdir}/%{name}.service +rm %{buildroot}/lib/systemd/system/%{name}.service install -m 755 init/sysvinit/%{name} %{buildroot}/%{_initddir}/%{name} %endif