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