Explorar o código

forcibly rebuild symlink

Serghey Rodin %!s(int64=13) %!d(string=hai) anos
pai
achega
5a6bef5e2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      func/rebuild.sh

+ 1 - 1
func/rebuild.sh

@@ -228,7 +228,7 @@ rebuild_web_domain_conf() {
 
         if [ "$STATS" == 'awstats' ]; 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
             fi
         fi