make sure you create the target directory
This commit is contained in:
parent
9c2b0fc0f0
commit
81bf6131d6
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,9 @@ 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
|
||||
TEMP=$(echo ${FILE} | sed 's/\.xz$//')
|
||||
perl ${AWSTATS} ${HTTPLOG}/${FILE} > ${TARGET}/${TEMP}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue