aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-07-11 18:14:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-07-11 18:14:24 -0300
commitb519ba1e41c58369428a8b74ffc2b313b6ecf054 (patch)
treee09f16f9a78c1ca4ca407a66025c4c255e71a3d6 /kvmx-create
parent7927f9a1e5c4c77cf4d25721827d09620aa37534 (diff)
downloadkvmx-b519ba1e41c58369428a8b74ffc2b313b6ecf054.tar.gz
kvmx-b519ba1e41c58369428a8b74ffc2b313b6ecf054.tar.bz2
Use fixed 20 chars lenght for default_password
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create
index ee0393a..cb0f3c4 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -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"