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

Side by Side Diff: modules/statsmaster/templates/build_static_item.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 dir = dirtemplate % '<%= title %>' 1 build_pages('<%= title %>', dirtemplate % '<%= title %>', 'month')
2 if not os.path.exists(dir): 2 if day:
3 os.mkdir(dir, 0755) 3 dir = os.path.join('/var/www/awstats/daily', '<%= title %>', day)
4 4 build_pages('<%= title %>', dir, 'day')
5 subprocess.check_output([
6 '/usr/share/awstats/tools/awstats_buildstaticpages.pl',
7 '-configdir=/var/www/awstatsconf',
8 '-config=<%= title %>',
9 '-dir=%s' % dir
10 ] + additional_params)
11
12 index = os.path.join(dir, 'index.html')
13 if not os.path.exists(index):
14 os.symlink(os.path.join(dir, 'awstats.<%= title %>.html'), index)
OLDNEW
« no previous file with comments | « modules/statsmaster/templates/build_static_head.erb ('k') | modules/statsmaster/templates/index_item.html.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld