added --phpversion option to ynh_add_fpm_config

This commit is contained in:
Eclipse 2023-09-30 20:17:35 +02:00
parent 51b506b232
commit 6e6347584e

View File

@ -43,8 +43,8 @@ ynh_script_progression --message="Adding php-fpm configuration …" --weight=1
# find default php version
php_executable=$(readlink -f "$(which php)")
echo "${php_executable:(-3)}"
ynh_app_setting_set --app=$app --key="phpversion" --value="${php_executable:(-3)}"
ynh_add_fpm_config
#ynh_app_setting_set --app=$app --key="phpversion" --value="${php_executable:(-3)}"
ynh_add_fpm_config --phpversion="${php_executable:(-3)}"
ynh_script_progression --message="Adding nginx configuration …" --weight=1