mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Update upgrade
This commit is contained in:
parent
255876a3f8
commit
3cbda20ca1
1 changed files with 5 additions and 2 deletions
|
@ -91,6 +91,11 @@ if [ -z "$db_name" ]; then
|
|||
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
|
||||
fi
|
||||
|
||||
if [ -z "$db_pwd" ]; then
|
||||
db_pwd=$(ynh_string_random --length=24)
|
||||
ynh_app_setting_set --app=$app --key=psqlpwd --value=$db_pwd
|
||||
fi
|
||||
|
||||
# If final_path doesn't exist, create it
|
||||
if [ -z "$data_path" ]; then
|
||||
data_path="/home/yunohost.app/$app"
|
||||
|
@ -180,8 +185,6 @@ if mysqlshow | grep -q "^| $db_name "; then
|
|||
|
||||
ynh_script_progression --message="Creating a PostgreSQL database..." --weight=10
|
||||
|
||||
#postgresql_db_pwd=$(ynh_string_random --length=24)
|
||||
#ynh_app_setting_set --app=$app --key=postgresql_db_pwd --value=$postgresql_db_pwd
|
||||
ynh_psql_test_if_first_run
|
||||
ynh_psql_setup_db --db_user=$db_user --db_name=$db_name --db_pwd=$db_pwd
|
||||
# Migrating from MySQL to PostgreSQL
|
||||
|
|
Loading…
Reference in a new issue