Take the old file as param for the sensor converter script

This commit is contained in:
Daniel Berteaud 2015-07-09 17:39:33 +02:00
parent b9df71e9ba
commit b571fa5509
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ use warnings;
use Config::Simple '-strict';
use JSON;
my $old = '/etc/zabbix/sensors.conf';
my $old = shift;
$old ||= '/etc/zabbix/sensors.conf';
my $new = '/etc/zabbix/sensors.ini';
my $sensors = {};