ericgaspar
5 years ago
No known key found for this signature in database
GPG Key ID: 574F281483054D44
3 changed files with
3 additions and
3 deletions
-
scripts/install
-
scripts/restore
-
scripts/upgrade
|
|
@ -98,7 +98,7 @@ ynh_system_user_create --username=$app |
|
|
ynh_script_progression --message="Configuring PHP-FPM..." --weight=50 |
|
|
ynh_script_progression --message="Configuring PHP-FPM..." --weight=50 |
|
|
|
|
|
|
|
|
# Create a dedicated php-fpm config |
|
|
# Create a dedicated php-fpm config |
|
|
ynh_add_fpm_config --usage=medium --footprint=high --package="$extra_php_dependencies" |
|
|
|
|
|
|
|
|
ynh_add_fpm_config --usage=medium --footprint=high --phpversion=$YNH_PHP_VERSION --package="$extra_php_dependencies" |
|
|
# Used by ynh_add_nginx_config |
|
|
# Used by ynh_add_nginx_config |
|
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) |
|
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) |
|
|
|
|
|
|
|
|
|
|
|
@ -102,7 +102,7 @@ ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=50 |
|
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" |
|
|
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" |
|
|
|
|
|
|
|
|
# Recreate a dedicated php-fpm config |
|
|
# Recreate a dedicated php-fpm config |
|
|
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies" |
|
|
|
|
|
|
|
|
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --phpversion=$phpversion --package="$extra_php_dependencies" |
|
|
|
|
|
|
|
|
#================================================= |
|
|
#================================================= |
|
|
# RESTORE THE CRON FILE |
|
|
# RESTORE THE CRON FILE |
|
|
|
|
|
@ -148,7 +148,7 @@ ynh_system_user_create --username=$app |
|
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 |
|
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 |
|
|
|
|
|
|
|
|
# Recreate a dedicated PHP-FPM config |
|
|
# Recreate a dedicated PHP-FPM config |
|
|
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies" |
|
|
|
|
|
|
|
|
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies" |
|
|
|
|
|
|
|
|
# Delete existing ini configuration file (backward compatibility) |
|
|
# Delete existing ini configuration file (backward compatibility) |
|
|
if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then |
|
|
if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then |
|
|
|