Merge pull request #2135 from UrBnW/statewin
enh(statefile) Use a windir on Windows
This commit is contained in:
commit
c856ee7a71
|
@ -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