Take the old file as param for the sensor converter script
This commit is contained in:
parent
b9df71e9ba
commit
b571fa5509
|
@ -6,7 +6,8 @@ use warnings;
|
||||||
use Config::Simple '-strict';
|
use Config::Simple '-strict';
|
||||||
use JSON;
|
use JSON;
|
||||||
|
|
||||||
my $old = '/etc/zabbix/sensors.conf';
|
my $old = shift;
|
||||||
|
$old ||= '/etc/zabbix/sensors.conf';
|
||||||
my $new = '/etc/zabbix/sensors.ini';
|
my $new = '/etc/zabbix/sensors.ini';
|
||||||
|
|
||||||
my $sensors = {};
|
my $sensors = {};
|
||||||
|
|
Loading…
Reference in New Issue