diff --git a/distros/redhat/CMakeLists.txt b/distros/redhat/CMakeLists.txt index 0334f1a7c..923367fa7 100644 --- a/distros/redhat/CMakeLists.txt +++ b/distros/redhat/CMakeLists.txt @@ -82,6 +82,6 @@ if(ZM_TARGET_DISTRO STREQUAL "el6") install(FILES zoneminder.sysvinit DESTINATION /etc/rc.d/init.d RENAME zoneminder PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) else(ZM_TARGET_DISTRO STREQUAL "el6") install(FILES zoneminder.service DESTINATION /usr/lib/systemd/system PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) - install(FILES zoneminder.tmpfiles DESTINATION /etc/tmpfiles.d RENAME zoneminder.conf PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) + install(FILES zoneminder.tmpfiles DESTINATION /usr/lib/tmpfiles.d RENAME zoneminder.conf PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ) endif(ZM_TARGET_DISTRO STREQUAL "el6") diff --git a/distros/redhat/zoneminder.spec b/distros/redhat/zoneminder.spec index e9ad7182a..a5b9da92c 100644 --- a/distros/redhat/zoneminder.spec +++ b/distros/redhat/zoneminder.spec @@ -250,7 +250,7 @@ rm -rf %{_docdir}/%{name}-%{version} %endif %if 0%{?with_init_systemd} -%config(noreplace) /etc/tmpfiles.d/zoneminder.conf +%{_tmpfilesdir}/zoneminder.conf %{_unitdir}/zoneminder.service %endif