From 7d706cdeed87983d0c69341deda86fac4552a6eb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 30 Sep 2022 11:58:26 +0200 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a5065cc..dbf423a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -26,7 +26,7 @@ mysql-to-pg() { # Migrating from MySQL to PostgreSQL - pgloader mysql://mattermost:${db_pwd}@localhost:3306/mattermost postgresql://mattermost:${db_pwd}@localhost:5432/mattermost + pgloader mysql://$db_user:$db_pwd@localhost:3306/$db_name postgresql://$db_user:$db_pwd@localhost:5432/$db_name ynh_replace_string --match_string="\"DriverName\":*," --replace_string="\"DriverName\": \"postgres\"," --target_file="$final_path/config/config.json" ynh_replace_string --match_string="\"DataSource\":*," --replace_string="\"DataSource\": \"postgres://$db_user:$db_pwd@localhost:5432/$db_name?sslmode=disable&connect_timeout=10\"," --target_file="$final_path/config/config.json"