mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
fix upgrade from old variables
This commit is contained in:
parent
7875dc2072
commit
1d8e03322c
1 changed files with 10 additions and 0 deletions
|
@ -31,6 +31,16 @@ cache=$(ynh_app_setting_get "$app" cache)
|
|||
size=$(ynh_app_setting_get "$app" size)
|
||||
registration=$(ynh_app_setting_get "$app" registration)
|
||||
|
||||
|
||||
if [$(ynh_app_setting_get "$app" psql_db)]
|
||||
then
|
||||
db_name=$(ynh_app_setting_get "$app" psql_db)
|
||||
db_pwd=$(ynh_app_setting_get "$app" psqlpwd)
|
||||
ynh_app_setting_set "$app" db_name "$db_name"
|
||||
ynh_app_setting_set "$app" db_pwd "$db_pwd"
|
||||
fi
|
||||
|
||||
|
||||
#=================================================
|
||||
# ENSURE DOWNWARD COMPATIBILITY
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue