From 62a3e9fc0981b9adf378dd507f0ab06078635110 Mon Sep 17 00:00:00 2001 From: pLAn3tT30 <106966424+pLAn3tT30@users.noreply.github.com> Date: Mon, 6 Jun 2022 15:59:44 +0200 Subject: [PATCH] default password length --- src/functions.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index 58fa140..3f43ecc 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -4,10 +4,5 @@ random_password() { set +o pipefail - C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c32 -} - -random_password_open3a() { - set +o pipefail - C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c20 -} + C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c$LXC_RANDOMPWD + }