I have a script named run_logs.sh with the contents:
#!/bin/bash
source /root/.profile
zcat /var/log/apache2/access.log.*.gz | /usr/bin/goaccess - access.log
when I run that script as root (both with and without a 'bash' prefix', on the command line the goaccess software processes both access.log and all of the gzipped logs. But when cron runs it, it only processes the access.log. What can I do to correct this?
My root crontab looks like:
0 * * * * /root/run_logs.sh