mirror of
https://git.bashclub.org/bashclub/zamba-lxc-toolbox.git
synced 2025-07-22 19:54:26 +02:00
9 lines
No EOL
214 B
Bash
9 lines
No EOL
214 B
Bash
#!/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 -c${LXC_RANDOMPWD}
|
|
} |