diff --git a/gestion/squid-logrotate-script.sh b/gestion/squid-logrotate-script.sh index 9bee75a1..4619c6a3 100755 --- a/gestion/squid-logrotate-script.sh +++ b/gestion/squid-logrotate-script.sh @@ -5,7 +5,7 @@ umask 0177 logs_src=/var/log/squid logs_dst=/home/squid/logs -dernier_fichier=$(ls -tr "$logs_src" | grep access.log | head -1) +dernier_fichier=$logs_src/$(ls -tr "$logs_src" | grep access.log | head -1) timestamp=$(bzcat "$dernier_fichier" | head -1 | awk '{print $1}')