Skip to content
Snippets Groups Projects
Verified Commit cf5c468e authored by David Beniamine's avatar David Beniamine
Browse files

Improve logs

parent 1a3b3935
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment