mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-02 06:02:53 +02:00
Restore RHEL7 spec file compatibility (#2254)
* Restore RHEL7 spec file compatibility caused by a348750ec6
This commit is contained in:
parent
72898345e7
commit
b2cea4b1dd
|
@ -5,6 +5,12 @@
|
|||
%global with_systemd 0
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 7
|
||||
%global rhel_7 1
|
||||
%else
|
||||
%global rhel_7 0
|
||||
%endif
|
||||
|
||||
Name: onedrive
|
||||
Version: 2.4.22
|
||||
Release: 1%{?dist}
|
||||
|
@ -59,8 +65,13 @@ make
|
|||
%{_docdir}/%{name}
|
||||
%{_bindir}/%{name}
|
||||
%if 0%{?with_systemd}
|
||||
%if 0%{?rhel_7}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_unitdir}/%{name}@.service
|
||||
%else
|
||||
%{_userunitdir}/%{name}.service
|
||||
%{_unitdir}/%{name}@.service
|
||||
%endif
|
||||
%else
|
||||
%{_bindir}/onedrive_service.sh
|
||||
/etc/init.d/onedrive
|
||||
|
|
Loading…
Reference in a new issue