Browse Source

Update web statistics script

Kristan Kenney 7 years ago
parent
commit
300a033a6a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/v-add-web-domain-stats

+ 2 - 2
bin/v-add-web-domain-stats

@@ -67,11 +67,11 @@ cat $WEBTPL/$type/$type.tpl |\
         -e "s|%home%|$HOMEDIR|g" \
         -e "s|%alias%|${aliases//,/ }|g" \
         -e "s|%alias_idn%|${aliases_idn//,/ }|g" \
-    > $HOMEDIR/$user/conf/web/$type.$domain.conf
+    > $HOMEDIR/$user/conf/web/$domain/$type.conf
 
 if [ "$type" == 'awstats' ]; then
     rm -f /etc/awstats/$type.$domain_idn.conf
-    ln -s $HOMEDIR/$user/conf/web/$type.$domain.conf \
+    ln -s $HOMEDIR/$user/conf/web/$domain/$type.conf \
         /etc/awstats/$type.$domain_idn.conf
 fi