mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
cleaner password gen
This commit is contained in:
parent
83529d4b69
commit
969239a910
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ if [[ ! $? -eq 0 ]]; then
|
|||
fi
|
||||
|
||||
# Generate random password
|
||||
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||
db_pwd=$(openssl rand -hex 15)
|
||||
|
||||
# Initialize database and store mysql password for upgrade
|
||||
sudo yunohost app initdb $app -p $db_pwd
|
||||
|
|
Loading…
Add table
Reference in a new issue