From f104f8018b50ff0b4f1fd7de7c79a4f74e3574dc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 4 Apr 2017 09:28:23 -0300 Subject: Better default password --- kvmx-create | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kvmx-create b/kvmx-create index fdc3c7b..16349c0 100755 --- a/kvmx-create +++ b/kvmx-create @@ -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" -- cgit v1.2.3