mirror of
https://github.com/myvesta/vesta
synced 2025-07-31 03:51:14 -07:00
Merge pull request #742 from mzf/master
Fix hanging processes when generate api-key
This commit is contained in:
commit
4ad29ac76c
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
keygen()
|
||||
{
|
||||
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
|
||||
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
|
||||
}
|
||||
KEYS='/usr/local/vesta/data/keys/'
|
||||
HASH=$(keygen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue