mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
random generation
This commit is contained in:
parent
0c17bf13a7
commit
5e119882fe
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ sudo yunohost app setting movim public_site -v $public_site
|
|||
sudo yunohost app setting movim port -v $port
|
||||
|
||||
# Generate random password
|
||||
db_pwd=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 24 | tr -d '\n'; echo)
|
||||
#db_pwd=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 24 | tr -d '\n'; echo)
|
||||
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[[:alnum:]]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||
|
||||
# Use 'movim' as database name and user
|
||||
db_user=movim
|
||||
|
|
Loading…
Add table
Reference in a new issue