diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 17:06:56 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-05-12 17:40:04 +0200 |
commit | 9129f327844ca58af61a20582b04e35762c63e35 (patch) | |
tree | 6e80c877c5d2bfd9af31983361c183dd4d7f5155 /modules/webapps | |
parent | d7d031b69f7dfa958d38e96e5ace4b2db023dade (diff) | |
download | Nix-9129f327844ca58af61a20582b04e35762c63e35.tar.gz Nix-9129f327844ca58af61a20582b04e35762c63e35.tar.zst Nix-9129f327844ca58af61a20582b04e35762c63e35.zip |
Upgrade httpd config
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} |