mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2025-02-10 12:26:20 +01:00
9 lines
227 B
Bash
9 lines
227 B
Bash
#!/bin/bash
|
|
#
|
|
# This script has basic functions like a random password generator
|
|
LXC_RANDOMPWD=32
|
|
|
|
random_password() {
|
|
set +o pipefail
|
|
LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom 2>/dev/null | head -c${LXC_RANDOMPWD}
|
|
} |