diff options
Diffstat (limited to 'modules/webapps')
-rw-r--r-- | modules/webapps/webstats/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/webapps/webstats/default.nix b/modules/webapps/webstats/default.nix index feff951..3650e1e 100644 --- a/modules/webapps/webstats/default.nix +++ b/modules/webapps/webstats/default.nix | |||
@@ -59,8 +59,8 @@ in { | |||
59 | trap "rm -f $TMPFILE" EXIT | 59 | trap "rm -f $TMPFILE" EXIT |
60 | 60 | ||
61 | mkdir -p ${cfg.dataDir}/${domain} | 61 | mkdir -p ${cfg.dataDir}/${domain} |
62 | cat /var/log/httpd/access_log-${domain} | sed -n "/\\[$date_regex/ p" > $TMPFILE | 62 | cat /var/log/httpd/access-${domain}.log | sed -n "/\\[$date_regex/ p" > $TMPFILE |
63 | for i in /var/log/httpd/access_log-${domain}*.gz; do | 63 | for i in /var/log/httpd/access-${domain}*.gz; do |
64 | zcat "$i" | sed -n "/\\[$date_regex/ p" >> $TMPFILE | 64 | zcat "$i" | sed -n "/\\[$date_regex/ p" >> $TMPFILE |
65 | done | 65 | done |
66 | ${pkgs.goaccess}/bin/goaccess $TMPFILE --no-progress -o ${cfg.dataDir}/${domain}/index.html -p ${config} | 66 | ${pkgs.goaccess}/bin/goaccess $TMPFILE --no-progress -o ${cfg.dataDir}/${domain}/index.html -p ${config} |