Explorar o código

fixed stats password generation

Serghey Rodin %!s(int64=14) %!d(string=hai) anos
pai
achega
7745157589
Modificáronse 1 ficheiros con 1 adicións e 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