bin/update-serial
branchhs12
changeset 85 c47953192c5c
parent 77 35905799cfd1
child 113 30bd047cd057
--- a/bin/update-serial	Sun Jan 16 17:28:48 2011 +0100
+++ b/bin/update-serial	Sun Jan 16 17:29:01 2011 +0100
@@ -4,7 +4,6 @@
 use strict;
 use warnings;
 
-use FindBin;
 use File::Basename;
 use Pod::Usage;
 use Getopt::Long;
@@ -51,7 +50,8 @@
     ) or pod2usage;
 
     # merge the config and the defined options from commandline
-    %config = get_config("$FindBin::Bin/dnstools.conf", "/etc/dnstools.conf", \%opt);
+    %config = get_config("$ENV{DNSTOOLS_CONF}", "dnstools.conf",
+        "$ENV{HOME}/.dnstools.conf", "/etc/dnstools.conf", \%opt);
 
     our $bind_dir = $config{bind_dir};
     our $conf_dir = $config{zone_conf_dir};