Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/statsmaster/templates/process_logs_head.erb

Issue 29464559: #1538 - Remove class statsmaster and associated resources (Closed)
Patch Set: Created June 13, 2017, 9:43 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 import subprocess
4
5 def process_logs(site, databasebreak):
6 datadir = {
7 'month': '/var/www/awstatsdata',
8 'day': '/var/www/awstatsdatadaily',
9 }[databasebreak]
10
11 subprocess.check_output([
12 '/usr/lib/cgi-bin/awstats.pl',
13 '-configdir=/var/www/awstatsconf',
14 '-config=%s' % site,
15 '-databasebreak=%s' % databasebreak,
16 '-update'
17 ], env={'AWSTATSDATA': datadir})
OLDNEW

Powered by Google App Engine
This is Rietveld