enh(statefile) Use a windir on Windows

This commit is contained in:
UrBnW 2020-08-05 10:40:29 +02:00
parent 727f2c819d
commit dc7f99df75
1 changed files with 3 additions and 0 deletions

View File

@ -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) = @_;