diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index c09f630e0..1b3bd7c5a 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -7,6 +7,7 @@ configure_file(syslog.conf.in "${CMAKE_CURRENT_BINARY_DIR}/syslog.conf" @ONLY) configure_file(com.zoneminder.systemctl.policy.in "${CMAKE_CURRENT_BINARY_DIR}/com.zoneminder.systemctl.policy" @ONLY) configure_file(com.zoneminder.systemctl.rules.in "${CMAKE_CURRENT_BINARY_DIR}/com.zoneminder.systemctl.rules" @ONLY) configure_file(zoneminder.service.in "${CMAKE_CURRENT_BINARY_DIR}/zoneminder.service" @ONLY) +configure_file(zoneminder-tmpfiles.conf.in "${CMAKE_CURRENT_BINARY_DIR}/zoneminder-tmpfiles.conf" @ONLY) # Do not install the misc files by default #install(FILES "${CMAKE_CURRENT_BINARY_DIR}/apache.conf" "${CMAKE_CURRENT_BINARY_DIR}/logrotate.conf" "${CMAKE_CURRENT_BINARY_DIR}/syslog.conf" DESTINATION "${CMAKE_INSTALL_DATADIR}/zoneminder/misc") diff --git a/misc/Makefile.am b/misc/Makefile.am index b854d66f6..5578e4373 100644 --- a/misc/Makefile.am +++ b/misc/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = \ apache.conf.in \ logrotate.conf.in \ syslog.conf.in \ + zoneminder-tmpfiles.conf.in \ zoneminder.service.in \ com.zoneminder.systemctl.policy.in \ com.zoneminder.systemctl.rules.in diff --git a/misc/zoneminder-tmpfiles.conf.in b/misc/zoneminder-tmpfiles.conf.in new file mode 100644 index 000000000..8f55ce295 --- /dev/null +++ b/misc/zoneminder-tmpfiles.conf.in @@ -0,0 +1 @@ +d @ZM_RUNDIR@ 0755 @WEB_USER@ @WEB_GROUP@