on first start generate password with 16 chars
This commit is contained in:
parent
41ca1738b6
commit
87e9b122a8
@ -32,7 +32,7 @@ generate_commandkey() {
|
||||
commandkey=$(get_key $commandkeyid)
|
||||
[ -z "$commandkey" ] || return 0
|
||||
|
||||
commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 8)
|
||||
commandkey=$(tr -c -d '[\041-\176]' < /dev/urandom | head -c 16)
|
||||
[ -n "$commandkey" ] && echo "$commandkeyid $commandkey" >> $keyfile
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user