From: Frank Brehm Date: Wed, 20 Mar 2019 15:08:53 +0000 (+0100) Subject: Bugfixing X-Git-Tag: 0.4.1~14 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=37c628bdef9a86809cda63c8f6261dcfb8f7d22b;p=pixelpark%2Fpp-admin-tools.git Bugfixing --- diff --git a/sbin/cleanup-loghosts-hosts b/sbin/cleanup-loghosts-hosts index cda7654..2128315 100755 --- a/sbin/cleanup-loghosts-hosts +++ b/sbin/cleanup-loghosts-hosts @@ -226,7 +226,7 @@ compress_old_files() { echo "[$( my_date )]: Compressing files older than ${MIN_AGE_COMPRESS} days:" for fname in $( find "${HOSTS_DIR}" -type f -size +50c -mtime +${MIN_AGE_COMPRESS} | \ egrep -vi '\.(gz|bz2)$' | head -n 10000 ) ; do - if [[ -f "${fname}" && ]] ; then + if [[ -f "${fname}" ]] ; then echo " * '${fname}'" ls -l "${fname}" gzip -9 "${fname}"