From dc7f99df75b185e7bf743e921d0eaec15b9a1a95 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Wed, 5 Aug 2020 10:40:29 +0200 Subject: [PATCH] enh(statefile) Use a windir on Windows --- centreon/plugins/statefile.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/centreon/plugins/statefile.pm b/centreon/plugins/statefile.pm index 6efcb2aeb..c165931cf 100644 --- a/centreon/plugins/statefile.pm +++ b/centreon/plugins/statefile.pm @@ -27,6 +27,9 @@ use vars qw($datas); use centreon::plugins::misc; my $default_dir = '/var/lib/centreon/centplugins'; +if ($^O eq 'MSWin32') { + $default_dir = 'C:/Windows/Temp'; +} sub new { my ($class, %options) = @_;