1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Remove legacy code

This commit is contained in:
Maniack Crudelis 2019-05-21 12:14:55 +02:00 committed by GitHub
parent 87e36e665c
commit cdcc8dba72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,13 +122,8 @@ ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --targ
for i in 1 2 3 4 5 6 7 8
do
j=$(ynh_string_random --length=40)
if [ "$j" = "" ];
then
# For obscure reasons, the loop is too fast at execution
sleep 1
j=$(ynh_string_random --length=40)
fi
ynh_replace_string --match_string="KEY$i" --replace_string="$j" --target_file=$final_path/wp-config.php
sleep 0.5
done
#=================================================