X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Freset_hosts.pl;h=040445b90b786fa9de102df85c3cba29a9f59dc1;hb=6772ec335287679e8837ebe85b8b1218cc2be8ff;hp=a86ea3c6eb0959a63a32183984ecc346e7c6c2b0;hpb=83be73d01437ba9841257bb9064314d63fab9487;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();