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

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

Issue 6293281981857792: Issue 239 - Move AWStats processing to the stats server (Closed)
Patch Set: Created April 23, 2014, 1:14 p.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 dir = dirtemplate % '<%= title %>'
2 if not os.path.exists(dir):
3 os.mkdir(dir, 0755)
4
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

Powered by Google App Engine
This is Rietveld