mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
fixed webstatics generator
This commit is contained in:
parent
4082c22f28
commit
1ebb7645bf
3 changed files with 8 additions and 1 deletions
|
@ -80,4 +80,7 @@ update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
|
||||||
log_history "$EVENT"
|
log_history "$EVENT"
|
||||||
log_event "$OK" "$EVENT"
|
log_event "$OK" "$EVENT"
|
||||||
|
|
||||||
|
# Build stats
|
||||||
|
exec $BIN/v_update_web_domain_stat $user $domain
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
# Argument defenition
|
# Argument defenition
|
||||||
user=$1
|
user=$1
|
||||||
domain=$(idn -t --quiet -u "$2" )
|
domain=$(idn -t --quiet -u "$2" )
|
||||||
|
domain_idn=$(idn -t --quiet -a "$domain")
|
||||||
type=$3
|
type=$3
|
||||||
|
|
||||||
# Includes
|
# Includes
|
||||||
|
@ -88,4 +89,7 @@ update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
|
||||||
log_history "$EVENT"
|
log_history "$EVENT"
|
||||||
log_event "$OK" "$EVENT"
|
log_event "$OK" "$EVENT"
|
||||||
|
|
||||||
|
# Build stats
|
||||||
|
exec $BIN/v_update_web_domain_stat $user $domain
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -104,7 +104,7 @@ build_awstats() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Switching on statistics type
|
# Switching on statistics type
|
||||||
case $stats in
|
case $STATS in
|
||||||
webalizer) build_webalizer ;;
|
webalizer) build_webalizer ;;
|
||||||
awstats) build_awstats ;;
|
awstats) build_awstats ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue