diff --git a/roles/awstats/files/awstats.conf b/roles/awstats/files/awstats.conf deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/roles/awstats/files/combineHttpLogs.sh b/roles/awstats/files/combineHttpLogs.sh index c825c49c42..4389d814bb 100644 --- a/roles/awstats/files/combineHttpLogs.sh +++ b/roles/awstats/files/combineHttpLogs.sh @@ -1,13 +1,27 @@ #!/bin/bash +# This file is part of Fedora Project Infrastructure Ansible +# Repository. # -# The object of this script is to combine multiple http logs from the -# proxy servers and put them into an NFS directory where they can be -# analyzed by other software on other systems. +# Fedora Project Infrastructure Ansible Repository is free software: +# you can redistribute it and/or modify it under the terms of the GNU +# General Public License as published by the Free Software Foundation, +# either version 3 of the License, or (at your option) any later +# version. # +# Fedora Project Infrastructure Ansible Repository is distributed in +# the hope that it will be useful, but WITHOUT ANY WARRANTY; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License +# along with Fedora Project Infrastructure Ansible Repository. If +# not, see . # Because sync-http may not get all logs for 3 days, we only merge # things after 4 days. + NUMDAYS=4 YEAR=$(/bin/date -d "-${NUMDAYS} days" +%Y) MONTH=$(/bin/date -d "-${NUMDAYS} days" +%m) @@ -22,7 +36,6 @@ AWSTATS=/usr/share/awstats/tools/logresolvemerge.pl FILES=$( ls -1 ${HTTPLOG}/*access.log.xz | awk '{x=split($0,a,"/"); print a[x]}' | sort -u ) - mkdir -p ${TARGET} for FILE in ${FILES}; do