enh(statefile) Use a windir on Windows
This commit is contained in:
parent
727f2c819d
commit
dc7f99df75
|
@ -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) = @_;
|
||||
|
|
Loading…
Reference in New Issue