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

Unified 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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: modules/statsmaster/templates/process_logs_head.erb
diff --git a/modules/statsmaster/templates/process_logs_head.erb b/modules/statsmaster/templates/process_logs_head.erb
deleted file mode 100644
index cfd9b6c2ede07bc023a01e6188a0d0c2ea4f3b18..0000000000000000000000000000000000000000
--- a/modules/statsmaster/templates/process_logs_head.erb
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env python
-
-import subprocess
-
-def process_logs(site, databasebreak):
- datadir = {
- 'month': '/var/www/awstatsdata',
- 'day': '/var/www/awstatsdatadaily',
- }[databasebreak]
-
- subprocess.check_output([
- '/usr/lib/cgi-bin/awstats.pl',
- '-configdir=/var/www/awstatsconf',
- '-config=%s' % site,
- '-databasebreak=%s' % databasebreak,
- '-update'
- ], env={'AWSTATSDATA': datadir})

Powered by Google App Engine
This is Rietveld