mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Update _common.sh
This commit is contained in:
parent
70c56813b4
commit
7d706cdeed
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue