瀏覽代碼

fixed stats password generation

Serghey Rodin 13 年之前
父節點
當前提交
7745157589
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      bin/v_rebuild_web_domains

+ 1 - 3
bin/v_rebuild_web_domains

@@ -153,9 +153,7 @@ for domain in $(shell_list) ; do
             echo "Require valid-user" >> $stats_dir/.htaccess
             echo "Require valid-user" >> $stats_dir/.htaccess
 
 
             # Generating htaccess user and password
             # Generating htaccess user and password
-            rm -f $stats_dir/.htpasswd
-            htpasswd -bc $stats_dir/.htpasswd "$STATS_USER" "$STATS_CRYPT" \
-                &>/dev/null
+            echo "$STATS_USER:$STATS_CRYPT" > $stats_dir/.htpasswd
         fi
         fi
     fi
     fi