mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
in some case "db_user" doesn't exist, trying to fix that
This commit is contained in:
parent
4d3897592f
commit
c3678fd7a2
1 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a
|
|||
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||
|
||||
# Upgrade from <0.2.1~ynh4:
|
||||
if ynh_compare_current_package_version --comparison lt --version 0.2.1~ynh4
|
||||
if ynh_compare_current_package_version --comparison lt --version 0.2.1~ynh4 || [ -n "$db_user" ]
|
||||
then
|
||||
# declaration of new parameters
|
||||
client_max_body_size="100M"
|
||||
|
@ -107,7 +107,7 @@ then
|
|||
registration_reason=$(convert_bool "$registration_reason")
|
||||
# fix db_user existence
|
||||
db_user=$db_name
|
||||
ynh_app_setting_set --app=$app --key=db_user --value=$db_user
|
||||
ynh_app_setting_set --app="$app" --key=db_user --value="$db_user"
|
||||
# registration of new parameters
|
||||
ynh_app_setting_set --app="$app" --key=client_max_body_size --value="$client_max_body_size"
|
||||
ynh_app_setting_set --app="$app" --key=media_image_max_size --value="$media_image_max_size"
|
||||
|
|
Loading…
Add table
Reference in a new issue