Restore RHEL7 spec file compatibility (#2254)

* Restore RHEL7 spec file compatibility caused by a348750ec6
This commit is contained in:
abraunegg 2022-12-07 09:01:21 +11:00 committed by GitHub
parent 72898345e7
commit b2cea4b1dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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