]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Use fixed 20 chars lenght for default_password
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Jul 2017 21:14:24 +0000 (18:14 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Jul 2017 21:14:24 +0000 (18:14 -0300)
kvmx-create

index ee0393a54519448bf67d5afbb1789585990211f8..cb0f3c4dfe3e4347ad7f72de5489766d3cd565c1 100755 (executable)
@@ -103,7 +103,7 @@ function kvmx_config {
     source $GLOBAL_USER_CONFIG_FILE
   fi
 
-  local default_password="`head -c ${1:-20} /dev/urandom | base64`"
+  local default_password="`head -c 20 /dev/urandom | base64`"
 
   kvmx_user_config   hostname          machine                          "Hostname"
   kvmx_user_config   domain            example.org                      "Domain"