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

Update install: simplify php config hell

This commit is contained in:
Alexandre Aubin 2024-04-07 17:11:51 +02:00 committed by Félix Piédallu
parent 2760c3ddd6
commit 3fc42f1cd5

View file

@ -7,18 +7,6 @@
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# INITIALIZE AND STORE SETTINGS
#=================================================
fpm_footprint="low"
fpm_free_footprint=0
fpm_usage="low"
ynh_app_setting_set --app="$app" --key="fpm_footprint" --value="$fpm_footprint"
ynh_app_setting_set --app="$app" --key="fpm_free_footprint" --value="$fpm_free_footprint"
ynh_app_setting_set --app="$app" --key="fpm_usage" --value="$fpm_usage"
#=================================================
# CONFIGURING RIGHTS
#=================================================
@ -74,7 +62,7 @@ chown -R "$app:www-data" "$install_dir"
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage="$fpm_usage" --footprint="$fpm_footprint"
ynh_add_fpm_config
# Create a dedicated NGINX config
ynh_add_nginx_config