aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-04-04 09:28:23 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-04-04 09:28:23 -0300
commitf104f8018b50ff0b4f1fd7de7c79a4f74e3574dc (patch)
treef29f6b3958887a1423bbceeeda6a8994cb9d7c55
parentde8acc854e213feb42acd46eb3c302f13b988a7f (diff)
downloadkvmx-f104f8018b50ff0b4f1fd7de7c79a4f74e3574dc.tar.gz
kvmx-f104f8018b50ff0b4f1fd7de7c79a4f74e3574dc.tar.bz2
Better default password
-rwxr-xr-xkvmx-create2
1 files changed, 2 insertions, 0 deletions
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"