From b571fa550921f102a304c7b8c7a274a31cf56b2b Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 9 Jul 2015 17:39:33 +0200 Subject: [PATCH] Take the old file as param for the sensor converter script --- zabbix_scripts/util_convert_sensors_ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix_scripts/util_convert_sensors_ini b/zabbix_scripts/util_convert_sensors_ini index 1ab3ec8..b5b6501 100644 --- a/zabbix_scripts/util_convert_sensors_ini +++ b/zabbix_scripts/util_convert_sensors_ini @@ -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 = {};