change :print: for :alnum: in tr
This commit is contained in:
parent
155b19e1a7
commit
d738619ffe
|
@ -111,7 +111,7 @@ fetch_ipv6() {
|
||||||
generate_passwd() {
|
generate_passwd() {
|
||||||
# Generate a random password for the install-<MAC>.conf file.
|
# Generate a random password for the install-<MAC>.conf file.
|
||||||
# Doesn't take variables
|
# Doesn't take variables
|
||||||
tr -cd '[:print:]' < /dev/urandom | fold -w 20 | head -n 1
|
tr -cd '[:alnum:]' < /dev/urandom | fold -w 20 | head -n 1
|
||||||
}
|
}
|
||||||
|
|
||||||
check_instance() {
|
check_instance() {
|
||||||
|
|
Loading…
Reference in New Issue