1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpmyadmin_ynh.git synced 2024-09-03 19:56:46 +02:00

Put db_pwd out of the condition

This commit is contained in:
Maniack Crudelis 2019-05-03 13:07:08 +02:00 committed by GitHub
parent 96a084065c
commit 60737ae672
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,11 +135,12 @@ ynh_add_fpm_config
# UPGRADE THE DATABASE
#=================================================
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading database..." --weight=2
db_pwd=$(ynh_app_setting_get $app mysqlpwd)
# Handle upgrade from a version before latest version
# Ignore warnings and failures that will occur if already on latest version
ynh_replace_string "phpmyadmin" "$db_name" $final_path/sql/upgrade_column_info_4_3_0+.sql