X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Freset_hosts.pl;h=81c4c0e5f0e99ef07947d95da8e206f9e197eeaa;hb=HEAD;hp=20f01028b9c93ada5cbd2d92b5d5334d9ff6119a;hpb=13e3df1e4218c19325ef732a4a2cb2b7db79a69c;p=ndwebbie.git diff --git a/scripts/reset_hosts.pl b/scripts/reset_hosts.pl index 20f0102..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/lib/}; +use FindBin; +use lib "$FindBin::Bin/../lib"; + use ND::DB; our $dbh = ND::DB::DB();