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

correct variable reference in value

This commit is contained in:
Eric Geldmacher 2023-04-11 10:38:50 -05:00
parent 9fe96b1b9b
commit 3301c6929e

View file

@ -275,22 +275,22 @@ then
# apply setting to correct key if set on old key
if [ -n "$allow_custom_css" ]
then
ynh_app_setting_set --app="$app" --key=accounts_allow_custom_css --value="allow_custom_css"
ynh_app_setting_set --app="$app" --key=accounts_allow_custom_css --value="$allow_custom_css"
ynh_app_setting_delete --app="$app" --key=allow_custom_css
fi
if [ -n "$approval_required" ]
then
ynh_app_setting_set --app="$app" --key=accounts_approval_required --value="approval_required"
ynh_app_setting_set --app="$app" --key=accounts_approval_required --value="$approval_required"
ynh_app_setting_delete --app="$app" --key=approval_required
fi
if [ -n "$reason_required" ]
then
ynh_app_setting_set --app="$app" --key=accounts_reason_required --value="reason_required"
ynh_app_setting_set --app="$app" --key=accounts_reason_required --value="$reason_required"
ynh_app_setting_delete --app="$app" --key=reason_required
fi
if [ -n "$registration_open" ]
then
ynh_app_setting_set --app="$app" --key=accounts_registration_open --value="registration_open"
ynh_app_setting_set --app="$app" --key=accounts_registration_open --value="$registration_open"
ynh_app_setting_delete --app="$app" --key=registration_open
fi
fi