X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ffetchdumps.pl;h=71c0c2b88c350c5eae4f48c88e309e885383d610;hb=d7a6ccfe91936435b4e2cff7ab1ffcf8967ed69d;hp=1bb0736fb3093e04bbd51069f203666a43df77ed;hpb=b52c7c95096825846f53e73de627e6cda01d9bca;p=ndwebbie.git diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 1bb0736..71c0c2b 100755 --- a/scripts/fetchdumps.pl +++ b/scripts/fetchdumps.pl @@ -22,10 +22,12 @@ q{ use strict; use warnings; +use local::lib; use DBI; use DBD::Pg qw(:pg_types); -use LWP::Simple; +use LWP::Simple qw/head get $ua/; +$ua->agent("Stupid user agent check is stupid"); use FindBin; use lib "$FindBin::Bin/../lib"; @@ -53,14 +55,11 @@ for my $type ("planet","alliance","galaxy"){ } if ($updated){ - `perl $FindBin::Bin/parsealliances.pl $updated`; - `perl $FindBin::Bin/parseplanets.pl $updated`; - `perl $FindBin::Bin/parsegalaxies.pl $updated`; - `perl $FindBin::Bin/ndrank.pl`; + system("$FindBin::Bin/parsetick.sh", $updated); + system("$FindBin::Bin/ndrank.pl"); $dbh->do(q{UPDATE misc SET value = ? WHERE id = 'TICK'}, undef, $updated); - system 'killall','-USR1', 'irssi'; + system 'killall','-USR1', 'ndbot.pl'; local $dbh->{Warn} = 0; - $dbh->do(q{VACUUM ANALYZE}); }