From 91dd2105d2736d51917414d45512f2d694107513 Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Wed, 8 Feb 2017 20:44:00 -0600 Subject: [PATCH] rpmspecfile - use %{_sysconfdir} macro --- distros/redhat/zoneminder.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index 53187fd94..f562b1159 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -6,9 +6,9 @@ %if "%{zmuid_final}" == "nginx" %global with_nginx 1 -%global wwwconfdir /etc/nginx/default.d +%global wwwconfdir %{_sysconfdir}/nginx/default.d %else -%global wwwconfdir /etc/httpd/conf.d +%global wwwconfdir %{_sysconfdir}/httpd/conf.d %endif %global sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt @@ -274,9 +274,9 @@ rm -rf %{_docdir}/%{name}-%{version} %files %license COPYING %doc AUTHORS README.md distros/redhat/readme/README.%{readme_suffix} distros/redhat/readme/README.https distros/redhat/jscalendar-doc -%config(noreplace) %attr(640,root,%{zmgid_final}) /etc/zm/zm.conf +%config(noreplace) %attr(640,root,%{zmgid_final}) %{_sysconfdir}/zm/zm.conf %config(noreplace) %attr(644,root,root) %{wwwconfdir}/zoneminder.conf -%config(noreplace) /etc/logrotate.d/zoneminder +%config(noreplace) %{_sysconfdir}/logrotate.d/zoneminder %if 0%{?with_nginx} %config(noreplace) %{_sysconfdir}/php-fpm.d/zoneminder.conf