File tree 5 files changed +14
-5
lines changed
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 |\
66
66
> $HOMEDIR /$user /conf/web/$type .$domain .conf
67
67
68
68
if [ " $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
70
71
fi
71
72
72
73
Original file line number Diff line number Diff line change @@ -77,6 +77,11 @@ cat $WEBTPL/$type.tpl |\
77
77
-e " s/%alias_idn%/${aliases_idn// ,/ } /g" \
78
78
> $HOMEDIR /$user /conf/web/$type .$domain .conf
79
79
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
+
80
85
81
86
# ----------------------------------------------------------#
82
87
# Vesta #
Original file line number Diff line number Diff line change 13
13
# Argument defenition
14
14
user=$1
15
15
domain=$( idn -t --quiet -u " $2 " )
16
+ domain_idn=$( idn -t --quiet -a " $domain " )
16
17
17
18
# Includes
18
19
source $VESTA /conf/vesta.conf
@@ -48,7 +49,7 @@ stats_dir="$HOMEDIR/$user/web/$domain/stats"
48
49
rm -rf $stats_dir /*
49
50
50
51
# Deleting config
51
- rm -f /etc/awstats/$STATS .$domain .conf
52
+ rm -f /etc/awstats/$STATS .$domain_idn .conf
52
53
rm -f $HOMEDIR /$user /conf/web/$STATS .$domain .conf
53
54
54
55
Original file line number Diff line number Diff line change @@ -136,9 +136,11 @@ for domain in $(shell_list) ; do
136
136
-e " s/%alias_idn%/${aliases_idn// ,/ } /g" \
137
137
> $HOMEDIR /$user /conf/web/$STATS .$domain .conf
138
138
139
+
139
140
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
142
144
fi
143
145
fi
144
146
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ build_webalizer() {
62
62
build_awstats () {
63
63
awstats=" /usr/share/awstats/wwwroot/cgi-bin/awstats.pl"
64
64
wwwroot=" /usr/share/awstats/wwwroot"
65
- opts=" -config=$domain -staticlinks -update -output"
65
+ opts=" -config=$domain_idn -staticlinks -update -output"
66
66
month=$( date " +%Y-%m" )
67
67
output=' alldomains allhosts lasthosts unknownip allrobots lastrobots
68
68
urldetail urlentry urlexit osdetail browserdetail unknownbrowser
You can’t perform that action at this time.
0 commit comments