From 6c790a281f8f927cc9f1a3c6d9210bd76f959407 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 11 Jul 2021 13:52:36 +0200 Subject: [PATCH] Update install --- scripts/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index b9daac6..6005ea4 100644 --- a/scripts/install +++ b/scripts/install @@ -161,7 +161,7 @@ ynh_replace_string "__SKPATH__" "$path_sk_file" ../conf/settings.php # CREATE A SALTKEY #================================================= -saltkey=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{32\}\).*/\1/p') +saltkey=$(ynh_string_random --length=32) ynh_replace_string "__SALTKEY__" "$saltkey" ../conf/sk.php #=================================================