blob: beb6b28612dbe149858380b8fb6836e240b0ed6e (
plain)
1
2
3
4
5
6
7
8
9
10
|
--- a/etc/initsystem/prepare-dirs
+++ b/etc/initsystem/prepare-dirs
@@ -31,3 +31,7 @@
mkdir -p $ICINGA2_RUN_DIR/icinga2/cmd
chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_RUN_DIR/icinga2/cmd
chmod 2750 $ICINGA2_RUN_DIR/icinga2/cmd
+
+mkdir -p $ICINGA2_STATE_DIR/cache/icinga2
+chown $ICINGA2_USER:$ICINGA2_COMMAND_GROUP $ICINGA2_STATE_DIR/cache/icinga2
+chmod 750 $ICINGA2_STATE_DIR/cache/icinga2
|