idn support for awstats

This commit is contained in:
Serghey Rodin 2013-01-21 21:25:54 +02:00
commit ebdbe965e8
5 changed files with 14 additions and 5 deletions

View file

@ -136,9 +136,11 @@ for domain in $(shell_list) ; do
-e "s/%alias_idn%/${aliases_idn//,/ }/g" \
> $HOMEDIR/$user/conf/web/$STATS.$domain.conf
if [ "$STATS" == 'awstats' ]; then
if [ ! -e "/etc/awstats/$STATS.$domain.conf" ]; then
ln -s $HOMEDIR/$user/conf/web/$STATS.$domain.conf /etc/awstats/
if [ ! -e "/etc/awstats/$STATS.$domain_idn.conf" ]; then
ln -s $HOMEDIR/$user/conf/web/$STATS.$domain.conf \
/etc/awstats/$STATS.$domain_idn.conf
fi
fi