fixed webstatics generator

This commit is contained in:
Serghey Rodin 2012-07-11 12:04:38 +03:00
commit 1ebb7645bf
3 changed files with 8 additions and 1 deletions

View file

@ -80,4 +80,7 @@ update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
log_history "$EVENT"
log_event "$OK" "$EVENT"
# Build stats
exec $BIN/v_update_web_domain_stat $user $domain
exit

View file

@ -13,6 +13,7 @@
# Argument defenition
user=$1
domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain")
type=$3
# Includes
@ -88,4 +89,7 @@ update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
log_history "$EVENT"
log_event "$OK" "$EVENT"
# Build stats
exec $BIN/v_update_web_domain_stat $user $domain
exit

View file

@ -104,7 +104,7 @@ build_awstats() {
}
# Switching on statistics type
case $stats in
case $STATS in
webalizer) build_webalizer ;;
awstats) build_awstats ;;
esac