diff --git a/scripts/install b/scripts/install index 26cbd4a..2615200 100755 --- a/scripts/install +++ b/scripts/install @@ -33,7 +33,8 @@ sudo cp ../conf/wp-config.php $final_path/wp-config.php sudo sed -i "s/yunouser/$db_user/g" $final_path/wp-config.php sudo sed -i "s/yunopass/$db_pwd/g" $final_path/wp-config.php sudo sed -i "s/yunobase/$db_user/g" $final_path/wp-config.php -sudo sed -i "s/KEYSTOCHANGE/$(curl https://api.wordpress.org/secret-key/1.1/salt/)/g" $final_path/wp-config.php +keys=$(curl https://api.wordpress.org/secret-key/1.1/salt/ -kL) +sudo sed -i "s/KEYSTOCHANGE/$keys/g" $final_path/wp-config.php sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/wp-config.php sudo sed -i "s@URLWORDPRESS@$domain$path@g" ../conf/*.sql