X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Freset_hosts.pl;h=81c4c0e5f0e99ef07947d95da8e206f9e197eeaa;hb=HEAD;hp=a86ea3c6eb0959a63a32183984ecc346e7c6c2b0;hpb=83be73d01437ba9841257bb9064314d63fab9487;p=ndwebbie.git diff --git a/scripts/reset_hosts.pl b/scripts/reset_hosts.pl index a86ea3c..81c4c0e 100755 --- a/scripts/reset_hosts.pl +++ b/scripts/reset_hosts.pl @@ -2,11 +2,13 @@ use strict; use warnings; +use local::lib; use DBI; use DBD::Pg qw(:pg_types); -use LWP::Simple; -use lib qw{/var/www/ndawn/}; +use FindBin; +use lib "$FindBin::Bin/../lib"; + use ND::DB; our $dbh = ND::DB::DB();