mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Fixed webalizer and awstats support for Debian/Ubuntu
This commit is contained in:
parent
170098c54e
commit
6a80e6b218
3 changed files with 19 additions and 4 deletions
|
@ -60,8 +60,13 @@ build_webalizer() {
|
|||
}
|
||||
|
||||
build_awstats() {
|
||||
awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"
|
||||
wwwroot="/usr/share/awstats/wwwroot"
|
||||
if [ -e "/etc/redhat-release" ]; then
|
||||
awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"
|
||||
wwwroot="/usr/share/awstats/wwwroot"
|
||||
else
|
||||
awstats="/usr/lib/cgi-bin/awstats.pl"
|
||||
wwwroot="/usr/share/awstats"
|
||||
fi
|
||||
opts="-config=$domain_idn -staticlinks -update -output"
|
||||
month=$(date "+%Y-%m")
|
||||
output='alldomains allhosts lasthosts unknownip allrobots lastrobots
|
||||
|
@ -116,8 +121,6 @@ build_awstats() {
|
|||
11) month='November';;
|
||||
12) month='December';;
|
||||
esac
|
||||
echo $month
|
||||
|
||||
select_m="$select_m<option value=$link>$month $year<\/option>\n"
|
||||
done
|
||||
cat $WEBTPL/awstats/nav.tpl | sed "s/%select_month%/$select_m/" >\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue