mirror of
https://github.com/YunoHost-Apps/my_webapp_ynh.git
synced 2024-09-03 19:46:26 +02:00
Merge pull request #104 from YunoHost-Apps/fix-config-panel-install
Define PHP settings used by config panel to prevent the config panel from miserably crashing
This commit is contained in:
commit
563d0dadaa
1 changed files with 5 additions and 0 deletions
|
@ -178,6 +178,11 @@ then
|
||||||
|
|
||||||
# Create a dedicatedPHP-FPM config
|
# Create a dedicatedPHP-FPM config
|
||||||
ynh_add_fpm_config --usage=low --footprint=low --phpversion=$phpversion
|
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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue