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

correction of an omission and moving parametters

This commit is contained in:
OniriCorpe 2022-07-04 18:45:07 +02:00
parent f6dad8292a
commit f66ed50142

View file

@ -30,10 +30,8 @@ db_pwd=$(ynh_app_setting_get --app="$app" --key=db_pwd)
datadir=$(ynh_app_setting_get --app="$app" --key=datadir)
# reliquat <0.3.7~ynh1
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)
instance_expose_peers=$(ynh_app_setting_get --app="$app" --key=instance_expose_peers)
instance_expose_suspended=$(ynh_app_setting_get --app="$app" --key=instance_expose_suspended)
accounts_registration_open=$(ynh_app_setting_get --app="$app" --key=accounts_registration_open)
accounts_approval_required=$(ynh_app_setting_get --app="$app" --key=accounts_approval_required)
@ -134,6 +132,10 @@ fi
# Upgrade from <0.3.7~ynh1:
if ynh_compare_current_package_version --comparison lt --version 0.3.7~ynh1 || [ -z "$instance_expose_peers" ]
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
instance_expose_peers="false"
instance_expose_suspended="false"