1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Define PHP settings used by config panel to prevent the config panel from miserably crashing

This commit is contained in:
Alexandre Aubin 2023-01-21 22:50:20 +01:00 committed by GitHub
parent ad2184d999
commit 700c765839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,6 +170,11 @@ then
# Create a dedicatedPHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low --phpversion=$phpversion
else
# This is needed for the config panel to work even though PHP is not actually used
ynh_app_setting_set --app=$app --key=fpm_footprint --value=low
ynh_app_setting_set --app=$app --key=fpm_usage --value=low
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=0
fi
#=================================================