diff --git a/src/functions.sh b/src/functions.sh index fa37998..0a89013 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -1,8 +1,9 @@ #!/bin/bash # # This script has basic functions like a random password generator +LXC_RANDOMPWD=32 random_password() { set +o pipefail - C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c32 + C_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c${LXC_RANDOMPWD} } \ No newline at end of file