contrib/eddn-logs-archive: Make non-verbose

This script has been proven for months, quieten it for potentially no
crontab output unless there's a problem.
This commit is contained in:
Athanasius 2022-08-31 07:28:50 +00:00
parent efd9905c17
commit 53e099a9f4

View File

@ -78,7 +78,7 @@ for service in gateway monitor relay ;
do
log "Service: ${service}"
log " Expiring old logs..."
find . -name "${service}.log.*.gz" -a -atime +${MAX_LOGFILE_AGE} -exec rm -fv {} \;
find . -name "${service}.log.*.gz" -a -atime +${MAX_LOGFILE_AGE} -exec rm -f {} \;
log " DONE"
log " Checking if current logfile needs archiving..."
@ -106,7 +106,7 @@ do
fi
# Now compress the newly archived log
gzip -9v "${ARCHIVED_NAME}"
gzip -9 "${ARCHIVED_NAME}"
log " DONE"
else
log " No"