]> granicus.if.org Git - icinga2/blobdiff - CMakeLists.txt
Merge pull request #7065 from uubk/logrotate-fix
[icinga2] / CMakeLists.txt
index ac57471fd98ff302b15aa7a1bc137fdb150c699a..ac6151796d4cbeba6c94f2109b3747f8ee8e6caf 100644 (file)
@@ -148,6 +148,8 @@ if(NOT DEFINED LOGROTATE_HAS_SU)
 endif()
 if(LOGROTATE_HAS_SU)
   set(LOGROTATE_USE_SU "\n\tsu ${ICINGA2_USER} ${ICINGA2_GROUP}")
+else()
+  set(LOGROTATE_CREATE "\n\tcreate 644 ${ICINGA2_USER} ${ICINGA2_GROUP}")
 endif()
 
 find_package(Boost ${BOOST_MIN_VERSION} COMPONENTS context coroutine date_time filesystem thread system program_options regex REQUIRED)