X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ffetchdumps.pl;h=2579f38532688463e9b3a7a4ad07f0c6da32f7eb;hb=5b6c3c7d0003d636c1c3da6d25734e4aad5736a5;hp=65942b76951038003058f3f7f8e9bb892259b374;hpb=4c37bdde40b1abcc5b93337f39b2935e3de700be;p=ndwebbie.git diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 65942b7..2579f38 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,10 +50,13 @@ for my $type ("planet","alliance","galaxy"){ $select->finish; } -if ($updated > 36){ - `/var/www/ndawn/scripts/parsedumps.pl $updated`; +if ($updated){ + `/var/www/ndawn/scripts/parsealliances.pl $updated`; + `/var/www/ndawn/scripts/parseplanets.pl $updated`; + `/var/www/ndawn/scripts/parsegalaxies.pl $updated`; `/var/www/ndawn/scripts/ndrank.pl`; $dbh->do(q{UPDATE misc SET value = ? WHERE id = 'TICK'}, undef, $updated); + local $dbh->{Warn} = 0; $dbh->do(q{VACUUM ANALYZE}); }