Making sure domain_idn is always set

This commit is contained in:
dpeca 2017-03-05 23:34:07 +01:00
commit 6d88ca31c3
74 changed files with 142 additions and 1 deletions

View file

@ -227,6 +227,9 @@ rebuild_web_domain_conf() {
# Adding web stats parser
if [ ! -z "$STATS" ]; then
if [ -z "$domain_idn" ]; then
format_domain_idn
fi
cat $WEBTPL/$STATS/$STATS.tpl |\
sed -e "s|%ip%|$local_ip|g" \
-e "s|%web_system%|$WEB_SYSTEM|g" \