From c8ef25de200119793328b6c03e6707bf857e31c7 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Thu, 9 Mar 2017 16:06:32 +0100 Subject: [PATCH] =?UTF-8?q?Correction=20sur=20le=20connect.php=20pour=20re?= =?UTF-8?q?mplacer=20les=20bons=20param=C3=A8tres=20de=20connexion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/restore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index 152605d..b73df61 100644 --- a/scripts/restore +++ b/scripts/restore @@ -45,8 +45,10 @@ if [[ $with_mysql -eq 1 ]]; then ynh_mysql_create_db $db_user $db_user $db_pwd sudo su -c "mysql -u $db_user -p$db_pwd $app < ./db.sql" sudo rm -f "./db.sql" - sudo sed -i -e "s/'__DB_USER__', *'[^']*'/'__DB_USER__', '$app'/g" $final_path/config/connect.php + # sudo sed -i -e "s/'__DB_USER__', *'[^']*'/'__DB_USER__', '$app'/g" $final_path/config/connect.php # sudo sed -i -e "s/'__DB_PWD__', *'[^']*'/'__DB_PWD__', '$app'/g" $final_path/config/connect.php + sudo sed -i "s@__DB_USER__@$db_user@g" $final_path/config/connect.php + sudo sed -i "s@__DB_PWD__@$db_pwd@g" $final_path/config/connect.php fi # Set permissions