From 969239a9103e2ac99d690f1451f29eb0df84d9c1 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Wed, 13 May 2015 16:01:26 +0200 Subject: [PATCH] cleaner password gen --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 063eebe..664e4f5 100644 --- a/scripts/install +++ b/scripts/install @@ -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