From 0975d24a942838d37124117f03b751a34ca48296 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Wed, 11 Dec 2013 18:26:57 +0100 Subject: [PATCH] Debian: Added spool directory and set correct permissions. Fixes #5293 --- debian/icinga2-common.dirs | 1 + debian/icinga2-common.postinst | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/icinga2-common.dirs b/debian/icinga2-common.dirs index 083d2f18b..60027ed83 100644 --- a/debian/icinga2-common.dirs +++ b/debian/icinga2-common.dirs @@ -6,3 +6,4 @@ var/log/icinga2 var/log/icinga2/compat/archives var/spool/icinga2 var/spool/icinga2/perfdata +var/spool/icinga2/tmp diff --git a/debian/icinga2-common.postinst b/debian/icinga2-common.postinst index 04cffed03..0be77b9d5 100644 --- a/debian/icinga2-common.postinst +++ b/debian/icinga2-common.postinst @@ -56,7 +56,10 @@ case "$1" in setperm nagios nagios 0750 /var/lib/icinga2/cluster/log setperm nagios www-data 0750 /var/cache/icinga2 + setperm nagios nagios 0750 /var/spool/icinga2 + setperm nagios nagios 0750 /var/spool/icinga2/perfdata + setperm nagios nagios 0750 /var/spool/icinga2/tmp # enable default features enable_default_features $@