mirror of
https://github.com/YunoHost-Apps/piwigo_ynh.git
synced 2024-09-03 20:06:03 +02:00
Use ynh_string_random helper
This commit is contained in:
parent
600c4ff701
commit
a4faa89fec
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ yunohost app ssowatconf
|
|||
|
||||
# Generate random password for admin
|
||||
|
||||
adm_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')
|
||||
adm_pwd=$(ynh_string_random 24)
|
||||
ynh_app_setting_set $app admin_pwd "$adm_pwd"
|
||||
|
||||
# Configure piwigo via curl
|
||||
|
|
Loading…
Reference in a new issue