1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

fix missing parametters import

This commit is contained in:
OniriCorpe 2022-07-04 20:09:18 +02:00
parent f66ed50142
commit 9a17d1b46c

View file

@ -92,6 +92,10 @@ 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 || [ -z "$db_user" ]
then
# import old parameters
registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
registration_approval=$(ynh_app_setting_get --app="$app" --key=registration_approval)
registration_reason=$(ynh_app_setting_get --app="$app" --key=registration_reason)
# declaration of new parameters
client_max_body_size="100M"
media_image_max_size="2097152"