Browse Source

forcibly rebuild symlink

Serghey Rodin 13 years ago
parent
commit
5a6bef5e2f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      func/rebuild.sh

+ 1 - 1
func/rebuild.sh

@@ -228,7 +228,7 @@ rebuild_web_domain_conf() {
 
 
         if [ "$STATS" == 'awstats' ]; then
         if [ "$STATS" == 'awstats' ]; then
             if [ ! -e "/etc/awstats/$STATS.$domain_idn.conf" ]; then
             if [ ! -e "/etc/awstats/$STATS.$domain_idn.conf" ]; then
-                ln -s $HOMEDIR/$user/conf/web/$STATS.$domain.conf \
+                ln -f -s $HOMEDIR/$user/conf/web/$STATS.$domain.conf \
                     /etc/awstats/$STATS.$domain_idn.conf
                     /etc/awstats/$STATS.$domain_idn.conf
             fi
             fi
         fi
         fi