Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deployer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Sistemisti
deployer
Commits
29981df3
Commit
29981df3
authored
Nov 18, 2020
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more rubost dir looping
Signed-off-by:
Mattia Rizzolo
<
mapreri@ubuntu.com
>
parent
40e552b4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
scripts/stats.ubuntu-it.org
scripts/stats.ubuntu-it.org
+8
-5
No files found.
scripts/stats.ubuntu-it.org
View file @
29981df3
...
@@ -24,15 +24,18 @@ echo "${today}" > "${deploy}/.day"
...
@@ -24,15 +24,18 @@ echo "${today}" > "${deploy}/.day"
echo
"Options Indexes FollowSymLinks MultiViews"
>
"
${
deploy
}
/.htaccess"
echo
"Options Indexes FollowSymLinks MultiViews"
>
"
${
deploy
}
/.htaccess"
echo
"IndexOptions FancyIndexing"
>>
"
${
deploy
}
/.htaccess"
echo
"IndexOptions FancyIndexing"
>>
"
${
deploy
}
/.htaccess"
for
dir
in
$(
ls
"
${
LOGS_DIR
}
"
)
;
do
if
[[
-d
"
${
LOGS_DIR
}
/
${
dir
}
"
]]
;
then
mapfile
-t
logdirs < <
(
find
"
$LOGS_DIR
"
-mindepth
1
-maxdepth
1
-type
d
)
echo
"Generating stats for
${
dir
}
..."
for
dir
in
"
${
logdirs
[@]
}
"
;
do
sitename
=
$(
basename
"
$dir
"
)
if
[[
-d
"
${
dir
}
"
]]
;
then
echo
"Generating stats for
${
sitename
}
..."
# blackhole stderr because that's where the progress counter goes,
# blackhole stderr because that's where the progress counter goes,
# filling up the log/screen/terminal
# filling up the log/screen/terminal
zgrep
-h
""
"
${
LOGS_DIR
}
/
${
dir
}
"
/access
*
| goaccess -
\
zgrep
-h
""
"
${
dir
}
"
/access
*
| goaccess -
\
--log-format
=
COMBINED
--http-protocol
=
no
--ignore-panel
=
HOSTS
\
--log-format
=
COMBINED
--http-protocol
=
no
--ignore-panel
=
HOSTS
\
--all-static-files
--ignore-crawlers
--real-os
\
--all-static-files
--ignore-crawlers
--real-os
\
>
"
${
deploy
}
/
${
dir
}
.html"
2> /dev/null
>
"
${
deploy
}
/
${
sitename
}
.html"
2> /dev/null
fi
fi
done
done
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment