mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
indentation harmonization
This commit is contained in:
parent
5f4f3dd242
commit
ed17d98138
1 changed files with 26 additions and 26 deletions
|
@ -267,32 +267,32 @@ fi
|
||||||
# Upgrade from <0.8.0~ynh3:
|
# Upgrade from <0.8.0~ynh3:
|
||||||
if ynh_compare_current_package_version --comparison lt --version 0.8.0~ynh3
|
if ynh_compare_current_package_version --comparison lt --version 0.8.0~ynh3
|
||||||
then
|
then
|
||||||
# get settings from problem key
|
# get settings from problem key
|
||||||
allow_custom_css=$(ynh_app_setting_get --app="$app" --key=allow_custom_css)
|
allow_custom_css=$(ynh_app_setting_get --app="$app" --key=allow_custom_css)
|
||||||
approval_required=$(ynh_app_setting_get --app="$app" --key=approval_required)
|
approval_required=$(ynh_app_setting_get --app="$app" --key=approval_required)
|
||||||
reason_required=$(ynh_app_setting_get --app="$app" --key=reason_required)
|
reason_required=$(ynh_app_setting_get --app="$app" --key=reason_required)
|
||||||
registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
|
registration_open=$(ynh_app_setting_get --app="$app" --key=registration_open)
|
||||||
# apply setting to correct key if set on old key
|
# apply setting to correct key if set on old key
|
||||||
if [ -n "$allow_custom_css" ]
|
if [ -n "$allow_custom_css" ]
|
||||||
then
|
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
|
ynh_app_setting_delete --app="$app" --key=allow_custom_css
|
||||||
fi
|
fi
|
||||||
if [ -n "$approval_required" ]
|
if [ -n "$approval_required" ]
|
||||||
then
|
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
|
ynh_app_setting_delete --app="$app" --key=approval_required
|
||||||
fi
|
fi
|
||||||
if [ -n "$reason_required" ]
|
if [ -n "$reason_required" ]
|
||||||
then
|
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
|
ynh_app_setting_delete --app="$app" --key=reason_required
|
||||||
fi
|
fi
|
||||||
if [ -n "$registration_open" ]
|
if [ -n "$registration_open" ]
|
||||||
then
|
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
|
ynh_app_setting_delete --app="$app" --key=registration_open
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue