X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Freset_hosts.pl;h=53f82a0d2ff789fdf59b31dae69781b29ac6cfba;hb=44d272d9a8cff54ec21b9fb07325a0c63a5b1121;hp=a86ea3c6eb0959a63a32183984ecc346e7c6c2b0;hpb=f2c438684b7835e8c2033999fcc020d9352afca8;p=ndwebbie.git diff --git a/scripts/reset_hosts.pl b/scripts/reset_hosts.pl index a86ea3c..53f82a0 100755 --- a/scripts/reset_hosts.pl +++ b/scripts/reset_hosts.pl @@ -2,11 +2,15 @@ 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();