diff --git a/Makefile.in b/Makefile.in index 0789e183..5f0ad31c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -58,7 +58,7 @@ user_unit_files = contrib/systemd/onedrive.service DOCFILES = README.md config LICENSE CHANGELOG.md docs/Docker.md docs/INSTALL.md docs/SharePoint-Shared-Libraries.md docs/USAGE.md docs/BusinessSharedFolders.md docs/advanced-usage.md docs/application-security.md ifneq ("$(wildcard /etc/redhat-release)","") -RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux Server|CentOS)" | wc -l) +RHEL = $(shell cat /etc/redhat-release | grep -E "(Red Hat Enterprise Linux|CentOS)" | wc -l) RHEL_VERSION = $(shell rpm --eval "%{rhel}") else RHEL = 0 diff --git a/contrib/spec/onedrive.spec.in b/contrib/spec/onedrive.spec.in index 427a17f4..ac1542c4 100644 --- a/contrib/spec/onedrive.spec.in +++ b/contrib/spec/onedrive.spec.in @@ -5,10 +5,10 @@ %global with_systemd 0 %endif -%if 0%{?rhel} == 7 -%global rhel_7 1 +%if 0%{?rhel} >= 7 +%global rhel_unitdir 1 %else -%global rhel_7 0 +%global rhel_unitdir 0 %endif Name: onedrive @@ -65,7 +65,7 @@ make %{_docdir}/%{name} %{_bindir}/%{name} %if 0%{?with_systemd} -%if 0%{?rhel_7} +%if 0%{?rhel_unitdir} %{_unitdir}/%{name}.service %{_unitdir}/%{name}@.service %else