change :print: for :alnum: in tr

This commit is contained in:
mischa 2018-09-25 00:02:25 +02:00
parent 155b19e1a7
commit d738619ffe
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ fetch_ipv6() {
generate_passwd() {
# Generate a random password for the install-<MAC>.conf file.
# 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() {