diff options
Diffstat (limited to 'templates/ingress/usr_local_bin_gen_goaccess.sh.j2')
| -rw-r--r-- | templates/ingress/usr_local_bin_gen_goaccess.sh.j2 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/ingress/usr_local_bin_gen_goaccess.sh.j2 b/templates/ingress/usr_local_bin_gen_goaccess.sh.j2 index fb7a7bc..2cfc93a 100644 --- a/templates/ingress/usr_local_bin_gen_goaccess.sh.j2 +++ b/templates/ingress/usr_local_bin_gen_goaccess.sh.j2 @@ -1,6 +1,8 @@ #!/bin/sh -cat /var/log/nginx/access.log | awk '$8=$1$8' | /usr/local/bin/goaccess --log-format=VCOMBINED -j "$(($(nproc) + 1))" --keep-last=30 -a -o /var/www/goaccess/index.html --persist --restore -chmod 644 /var/www/goaccess/index.html -chown www /var/www/goaccess/index.html -chgrp www /var/www/goaccess/index.html +TARGET=/mnt/www_goaccess/index.html + +cat /var/log/nginx/access.log | awk '$8=$1$8' | /usr/local/bin/goaccess --log-format=VCOMBINED -j "$(($(nproc) + 1))" --keep-last=30 -a -o $TARGET --restore --persist +chmod 644 $TARGET +chown www $TARGET +chgrp www $TARGET |
