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

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

Issue 5667089633247232: Issue 479 - Make AWStats produce daily reports as well (Closed)
Patch Set: Created June 24, 2014, 6:08 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
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import subprocess 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
« no previous file with comments | « modules/statsmaster/templates/index_item.html.erb ('k') | modules/statsmaster/templates/process_logs_item.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld