X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Freset_hosts.pl;h=040445b90b786fa9de102df85c3cba29a9f59dc1;hb=0dc4622c02076fcd47acc56ad60511b10fb522b9;hp=a86ea3c6eb0959a63a32183984ecc346e7c6c2b0;hpb=f2c438684b7835e8c2033999fcc020d9352afca8;p=ndwebbie.git diff --git a/scripts/reset_hosts.pl b/scripts/reset_hosts.pl index a86ea3c..040445b 100755 --- a/scripts/reset_hosts.pl +++ b/scripts/reset_hosts.pl @@ -6,7 +6,10 @@ 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();