X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ffetchdumps.pl;h=71f4e7e4835d4dd6d1ec20576e33e6a94c555239;hb=f79954caa064990f19788089b412b502369675de;hp=44a8d411eb7f00270ccb5c86545a78e70b61a67e;hpb=f7e7744546daea3bb524a6822e4028dcac2b4cde;p=ndwebbie.git diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 44a8d41..71f4e7e 100755 --- a/scripts/fetchdumps.pl +++ b/scripts/fetchdumps.pl @@ -27,7 +27,7 @@ use DBD::Pg qw(:pg_types); use LWP::Simple; -use lib qw{/var/www/ndawn/}; +use lib qw{/var/www/ndawn/lib/}; use ND::DB; our $dbh = ND::DB::DB(); @@ -50,7 +50,7 @@ for my $type ("planet","alliance","galaxy"){ $select->finish; } -if ($updated > 36){ +if ($updated){ `/var/www/ndawn/scripts/parsealliances.pl $updated`; `/var/www/ndawn/scripts/parseplanets.pl $updated`; `/var/www/ndawn/scripts/parsegalaxies.pl $updated`;