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

fix fixme

This commit is contained in:
OniriCorpe 2024-01-16 03:50:05 +01:00
parent 9e69150deb
commit ad4211f7e2

View file

@ -33,9 +33,9 @@ ynh_script_progression --message="Ensuring downward compatibility..."
if ynh_compare_current_package_version --comparison lt --version 0.2.1~ynh4 || [ -z "$db_user" ]
then
# import old parameters
#REMOVEME? registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
#REMOVEME? registration_approval=$(ynh_app_setting_get --app="$app" --key=registration_approval)
#REMOVEME? registration_reason=$(ynh_app_setting_get --app="$app" --key=registration_reason)
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"
@ -77,9 +77,9 @@ fi
if ynh_compare_current_package_version --comparison lt --version 0.3.7~ynh1 || [ -z "$instance_expose_peers" ]
then
# import old parameters
#REMOVEME? registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
#REMOVEME? registration_approval=$(ynh_app_setting_get --app="$app" --key=registration_approval)
#REMOVEME? registration_reason=$(ynh_app_setting_get --app="$app" --key=registration_reason)
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
instance_expose_peers="false"
instance_expose_suspended="false"
@ -183,10 +183,10 @@ fi
if ynh_compare_current_package_version --comparison lt --version 0.8.0~ynh3
then
# get settings from problem key
#REMOVEME? allow_custom_css=$(ynh_app_setting_get --app="$app" --key=allow_custom_css)
#REMOVEME? approval_required=$(ynh_app_setting_get --app="$app" --key=approval_required)
#REMOVEME? reason_required=$(ynh_app_setting_get --app="$app" --key=reason_required)
#REMOVEME? registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
allow_custom_css=$(ynh_app_setting_get --app="$app" --key=allow_custom_css)
approval_required=$(ynh_app_setting_get --app="$app" --key=approval_required)
reason_required=$(ynh_app_setting_get --app="$app" --key=reason_required)
registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
# apply setting to correct key if set on old key
if [ -n "$allow_custom_css" ]
then