From 4d7a7450463d04a30e06cc3c101723edf07271e1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 7 Jul 2021 11:24:41 +0200 Subject: [PATCH] Update install --- scripts/install | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/install b/scripts/install index 5f184be..47b454b 100644 --- a/scripts/install +++ b/scripts/install @@ -95,6 +95,15 @@ if [[ $login -eq 1 ]]; then sed -i -- 's/\[LOGIN_REQUIRED\] = 1/\[LOGIN_REQUIRED\] = 0/g' $final_path/index.php fi +#================================================= +# HASH PASSWORD +#================================================= + +cp ../conf/password.php $final_path/ynh_password.php +cd $final_path +hash=$(php${phpversion} ynh_password.php $password) +rm ynh_password.php + #================================================= # SETUP SSOWAT #=================================================