diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-20 21:10:47 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-20 21:10:47 +0200 |
| commit | 5ebb5cea738fdd2dcb057259c4235ccaa8d2cd15 (patch) | |
| tree | 927cf7a344f686db3cf01998e2a9d3366ee68e0d /templates/ingress/usr_local_bin_gen_goaccess.sh.j2 | |
| parent | 1c90ac78adc7f7b6b45be9d47f70ee3591c45454 (diff) | |
Move goaccess to own jail
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 |
