1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/joomla_ynh.git synced 2024-09-03 19:26:34 +02:00

missing db_prefix during upgrade

This commit is contained in:
yalh76 2022-03-22 23:31:26 +01:00
parent 49766be52d
commit eb431ce802

View file

@ -23,6 +23,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
db_prefix=$(ynh_app_setting_get --app=$app --key=db_prefix)
#=================================================
# CHECK VERSION
@ -52,6 +53,12 @@ ynh_abort_if_errors
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..."
# If db_prefix doesn't exist, create it
if [ -z "$db_prefix" ]; then
db_prefix=""
ynh_app_setting_set --app=$app --key=db_prefix --value=$db_prefix
fi
#=================================================
# CREATE DEDICATED USER
#=================================================