From a07b5b66460cc679b7fb5801af9729026199a7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 29 Jun 2022 11:57:39 +0200 Subject: [PATCH] Fix --- conf/config.json | 2 +- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/config.json b/conf/config.json index dffd943..1636a5d 100644 --- a/conf/config.json +++ b/conf/config.json @@ -131,7 +131,7 @@ }, "SqlSettings": { "DriverName": "postgres", - "DataSource": "postgres://__DB_USER__:__DB_PWD__@localhost:5432/__DB_NAME__?sslmode=disable&connect_timeout=10", + "DataSource": "__DB_USER__:__DB_PWD__@localhost:5432/__DB_NAME__?sslmode=disable&connect_timeout=10", "DataSourceReplicas": [], "DataSourceSearchReplicas": [], "MaxIdleConns": 20, diff --git a/scripts/_common.sh b/scripts/_common.sh index cfb7b4b..dea3986 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -28,7 +28,7 @@ mysql-to-pg() { pgloader mysql://mattermost:$mysql_db_pwd@localhost:3306/mattermost postgresql://mattermost:$db_pwd@localhost:5432/mattermost 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" + ynh_replace_string --match_string="\(\"DataSource\" *: \).*," --replace_string="\"DataSource\": \"$db_user:$db_pwd@localhost:5432/$db_name?sslmode=disable&connect_timeout=10\"," --target_file="$final_path/config/config.json" # Removinging MySQL database ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name