File tree Expand file tree Collapse file tree 5 files changed +14
-5
lines changed
Expand file tree Collapse file tree 5 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ cat $WEBTPL/$type.tpl |\
6666 > $HOMEDIR /$user /conf/web/$type .$domain .conf
6767
6868if [ " $type " == ' awstats' ]; then
69- ln -s $HOMEDIR /$user /conf/web/$type .$domain .conf /etc/awstats/
69+ ln -s $HOMEDIR /$user /conf/web/$type .$domain .conf \
70+ /etc/awstats/$type .$domain_idn .conf
7071fi
7172
7273
Original file line number Diff line number Diff line change @@ -77,6 +77,11 @@ cat $WEBTPL/$type.tpl |\
7777 -e " s/%alias_idn%/${aliases_idn// ,/ } /g" \
7878 > $HOMEDIR /$user /conf/web/$type .$domain .conf
7979
80+ if [ " $type " == ' awstats' ]; then
81+ ln -s $HOMEDIR /$user /conf/web/$type .$domain .conf \
82+ /etc/awstats/$type .$domain_idn .conf
83+ fi
84+
8085
8186# ----------------------------------------------------------#
8287# Vesta #
Original file line number Diff line number Diff line change 1313# Argument defenition
1414user=$1
1515domain=$( idn -t --quiet -u " $2 " )
16+ domain_idn=$( idn -t --quiet -a " $domain " )
1617
1718# Includes
1819source $VESTA /conf/vesta.conf
@@ -48,7 +49,7 @@ stats_dir="$HOMEDIR/$user/web/$domain/stats"
4849rm -rf $stats_dir /*
4950
5051# Deleting config
51- rm -f /etc/awstats/$STATS .$domain .conf
52+ rm -f /etc/awstats/$STATS .$domain_idn .conf
5253rm -f $HOMEDIR /$user /conf/web/$STATS .$domain .conf
5354
5455
Original file line number Diff line number Diff line change @@ -136,9 +136,11 @@ for domain in $(shell_list) ; do
136136 -e " s/%alias_idn%/${aliases_idn// ,/ } /g" \
137137 > $HOMEDIR /$user /conf/web/$STATS .$domain .conf
138138
139+
139140 if [ " $STATS " == ' awstats' ]; then
140- if [ ! -e " /etc/awstats/$STATS .$domain .conf" ]; then
141- ln -s $HOMEDIR /$user /conf/web/$STATS .$domain .conf /etc/awstats/
141+ if [ ! -e " /etc/awstats/$STATS .$domain_idn .conf" ]; then
142+ ln -s $HOMEDIR /$user /conf/web/$STATS .$domain .conf \
143+ /etc/awstats/$STATS .$domain_idn .conf
142144 fi
143145 fi
144146
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ build_webalizer() {
6262build_awstats () {
6363 awstats=" /usr/share/awstats/wwwroot/cgi-bin/awstats.pl"
6464 wwwroot=" /usr/share/awstats/wwwroot"
65- opts=" -config=$domain -staticlinks -update -output"
65+ opts=" -config=$domain_idn -staticlinks -update -output"
6666 month=$( date " +%Y-%m" )
6767 output=' alldomains allhosts lasthosts unknownip allrobots lastrobots
6868 urldetail urlentry urlexit osdetail browserdetail unknownbrowser
You can’t perform that action at this time.
0 commit comments