]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Better default password
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Apr 2017 12:28:23 +0000 (09:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 4 Apr 2017 12:28:23 +0000 (09:28 -0300)
kvmx-create

index fdc3c7b56f7582429d6f317c1730dfd9652f43fb..16349c04cc9f6f0a495497d1312fa66d5d76a6ea 100755 (executable)
@@ -103,6 +103,8 @@ function kvmx_config {
     source $GLOBAL_USER_CONFIG_FILE
   fi
 
+  local default_password="`head -c ${1:-20} /dev/urandom | base64`"
+
   kvmx_user_config   hostname          machine                          "Hostname"
   kvmx_user_config   domain            example.org                      "Domain"
   kvmx_user_config   arch              amd64                            "System arch"