commit bd39eee7dc3cff5997eb8815b78bede2ffd089a2 Author: Karsten Loesing karsten.loesing@gmx.net Date: Wed Jan 22 13:10:03 2014 +0100
Don't imply that legacy code has to run first. --- shared/bin/10-legacy.sh | 10 ---------- shared/bin/50-run-legacy-stats.sh | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/shared/bin/10-legacy.sh b/shared/bin/10-legacy.sh deleted file mode 100755 index cd9131f..0000000 --- a/shared/bin/10-legacy.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -cd modules/legacy/ -ant | grep "[java]" -psql -U metrics tordir -c 'SELECT * FROM refresh_all();' -psql -c 'COPY (SELECT * FROM stats_servers) TO STDOUT WITH CSV HEADER;' tordir > stats/servers.csv -psql -c 'COPY (SELECT * FROM stats_bandwidth) TO STDOUT WITH CSV HEADER;' tordir > stats/bandwidth.csv -psql -c 'COPY (SELECT * FROM stats_torperf) TO STDOUT WITH CSV HEADER;' tordir > stats/torperf.csv -psql -c 'COPY (SELECT * FROM stats_connbidirect) TO STDOUT WITH CSV HEADER;' tordir > stats/connbidirect.csv -cd ../../ - diff --git a/shared/bin/50-run-legacy-stats.sh b/shared/bin/50-run-legacy-stats.sh new file mode 100755 index 0000000..cd9131f --- /dev/null +++ b/shared/bin/50-run-legacy-stats.sh @@ -0,0 +1,10 @@ +#!/bin/sh +cd modules/legacy/ +ant | grep "[java]" +psql -U metrics tordir -c 'SELECT * FROM refresh_all();' +psql -c 'COPY (SELECT * FROM stats_servers) TO STDOUT WITH CSV HEADER;' tordir > stats/servers.csv +psql -c 'COPY (SELECT * FROM stats_bandwidth) TO STDOUT WITH CSV HEADER;' tordir > stats/bandwidth.csv +psql -c 'COPY (SELECT * FROM stats_torperf) TO STDOUT WITH CSV HEADER;' tordir > stats/torperf.csv +psql -c 'COPY (SELECT * FROM stats_connbidirect) TO STDOUT WITH CSV HEADER;' tordir > stats/connbidirect.csv +cd ../../ +
tor-commits@lists.torproject.org