From a4faa89fec2519b4ef5bce3c0d1aebe8b992a88b Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 16 Sep 2017 12:34:25 +0200 Subject: [PATCH] Use ynh_string_random helper --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 4998136..444651f 100644 --- a/scripts/install +++ b/scripts/install @@ -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