Commit 4c78c9f1 authored by Mattia Rizzolo's avatar Mattia Rizzolo

stats: process the logs in order

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent de10d49a
...@@ -25,7 +25,7 @@ echo "Options Indexes FollowSymLinks MultiViews" > "${deploy}/.htaccess" ...@@ -25,7 +25,7 @@ echo "Options Indexes FollowSymLinks MultiViews" > "${deploy}/.htaccess"
echo "IndexOptions FancyIndexing" >> "${deploy}/.htaccess" echo "IndexOptions FancyIndexing" >> "${deploy}/.htaccess"
mapfile -t logdirs < <(find "$LOGS_DIR" -mindepth 1 -maxdepth 1 -type d) mapfile -t logdirs < <(find "$LOGS_DIR" -mindepth 1 -maxdepth 1 -type d | sort -V)
for dir in "${logdirs[@]}"; do for dir in "${logdirs[@]}"; do
sitename=$(basename "$dir") sitename=$(basename "$dir")
if [[ -d "${dir}" ]]; then if [[ -d "${dir}" ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment