Making sure is always reseted in possible loops

This commit is contained in:
dpeca 2017-03-14 01:56:28 +01:00
commit 56cdadbe5c
2 changed files with 6 additions and 9 deletions

View file

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