Merge pull request #2135 from UrBnW/statewin

enh(statefile) Use a windir on Windows
This commit is contained in:
qgarnier 2020-08-05 10:47:44 +02:00 committed by GitHub
commit c856ee7a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) = @_;