]> granicus.if.org Git - icinga2/commit
Re-add the 'su' directive to logrotate if supported
authorLouis Sautier <sautier.louis@gmail.com>
Sat, 26 Mar 2016 13:41:58 +0000 (14:41 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 20 Apr 2016 08:07:24 +0000 (10:07 +0200)
commit45786e2b81224f1308c299f5dd9b22261acf8655
treead3be200246cf2921b08b987c2d1469506269c07
parent98eef3339974d10d2d2422df296179308437b4f9
Re-add the 'su' directive to logrotate if supported

- try to detect a recent logrotate version which supports the 'su'
directive (added in 3.8.0, see
https://github.com/logrotate/logrotate/commit/5be96cf1822496f80227e9a446281c3fa42e7b67#diff-e4eb329834da3d36278b1b7d943b3bc9R6)
- if logrotate can't be found, assume an old version is used
- allow the parameter to be forced by the user

fixes #9249

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
CMakeLists.txt
etc/logrotate.d/icinga2.cmake