Explorar el Código

fixed stats password generation

Serghey Rodin hace 14 años
padre
commit
7745157589
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  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
 
             # 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