mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Fix
This commit is contained in:
parent
597719c5ae
commit
9b31c26db6
2 changed files with 2 additions and 4 deletions
|
@ -19,10 +19,9 @@ mysql-to-pg() {
|
|||
|
||||
mysql_db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
|
||||
db_pwd=$(ynh_string_random --length=24)
|
||||
ynh_app_setting_set --app=$app --key=db_pwd --value=$db_pwd
|
||||
ynh_psql_test_if_first_run
|
||||
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
|
||||
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
|
||||
|
||||
# Migrating from MySQL to PostgreSQL
|
||||
pgloader mysql://mattermost:$mysql_db_pwd@localhost:3306/mattermost postgresql://mattermost:$db_pwd@localhost:5432/mattermost
|
||||
|
|
|
@ -173,7 +173,6 @@ ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
|
|||
#=================================================
|
||||
# MIGRATING DATABASE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Migrating from MySQL to PostgreSQL..." --weight=10
|
||||
|
||||
# Migrating from MySQL to PostgreSQL
|
||||
mysql-to-pg
|
||||
|
|
Loading…
Add table
Reference in a new issue