diff --git a/doli b/doli index 300c2c5eb481605f3e0a4128688a3e8f7efe9d1d..97a4682a4f5b3fc2c910673bf7dc4555438f5cef 100755 --- a/doli +++ b/doli @@ -70,6 +70,13 @@ else cmdrestart="apache2ctl restart" fi + +if [ ! -z "$(which cczf)" ]; then + reader="ccze -A" +else + reader="tee" +fi + pass=$(get_conf_val main_db_pass) mysql="mariadb -u $user $db -p$pass" DIR="$(dirname $0)" @@ -95,8 +102,9 @@ case $action in $document_path/cron_run_jobs.php.log \ $document_path/dolibarr.log \ /var/log/apache2/access.log \ - /var/log/apache2/error.log \ - /var/log/apache2/erro..log + /var/log/apache2/dolibarr_access.log \ + /var/log/apache2/dolibarr_error.log \ + /var/log/apache2/dolibarr_erro..log | $reader set +x ;; "mysql")