1
0
Fork 0
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:
Éric Gaspar 2022-06-26 11:07:34 +02:00
parent 255876a3f8
commit 3cbda20ca1
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -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