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 #=================================================