1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/selfoss_ynh.git synced 2024-09-03 20:16:21 +02:00

Update config

This commit is contained in:
Éric Gaspar 2022-12-24 18:51:20 +01:00
parent 34a8d38e13
commit 66b4f240dd

View file

@ -56,10 +56,10 @@ set__fpm_footprint() {
fi fi
} }
set__free_footprint() { set__fpm_free_footprint() {
if [ "$fpm_footprint" == "specific" ] if [ "$fpm_footprint" = "specific" ]
then then
ynh_app_setting_set --app=$app --key=fpm_footprint --value="$free_footprint" ynh_app_setting_set --app=$app --key=fpm_footprint --value="$fpm_free_footprint"
fi fi
} }
@ -70,11 +70,11 @@ set__free_footprint() {
ynh_app_config_validate() { ynh_app_config_validate() {
_ynh_app_config_validate _ynh_app_config_validate
if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then if [ "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[fpm_free_footprint]}" == "true" ]; then
# If fpm_footprint is set to 'specific', use $free_footprint value. # If fpm_footprint is set to 'specific', use $fpm_free_footprint value.
if [ "$fpm_footprint" == "specific" ] if [ "$fpm_footprint" = "specific" ]
then then
fpm_footprint=$free_footprint fpm_footprint=$fpm_free_footprint
fi fi
if [ "$fpm_footprint" == "0" ] if [ "$fpm_footprint" == "0" ]