]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/reset_hosts.pl
Use FindBin and send USR1 to irssi
[ndwebbie.git] / scripts / reset_hosts.pl
index 20f01028b9c93ada5cbd2d92b5d5334d9ff6119a..040445b90b786fa9de102df85c3cba29a9f59dc1 100755 (executable)
@@ -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();