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