Browse Source

Add extra_php_dependencies

pull/115/head
ericgaspar 5 years ago
parent
commit
cbe03aaf5a
No known key found for this signature in database GPG Key ID: 574F281483054D44
  1. 2
      scripts/install
  2. 2
      scripts/restore
  3. 2
      scripts/upgrade

2
scripts/install

@ -109,7 +109,7 @@ else
usage=high usage=high
fi fi
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=$usage --footprint=medium
ynh_add_fpm_config --usage=$usage --footprint=medium --package="$extra_php_dependencies"
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#================================================= #=================================================

2
scripts/restore

@ -96,6 +96,8 @@ chown root: $final_path/wp-config.php
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"
ynh_add_fpm_config --package="$extra_php_dependencies"
#================================================= #=================================================
# RESTORE THE FAIL2BAN CONFIGURATION # RESTORE THE FAIL2BAN CONFIGURATION
#================================================= #=================================================

2
scripts/upgrade

@ -196,7 +196,7 @@ if [ $overwrite_phpfpm -eq 1 ]
then then
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=4 ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=4
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies"
fi fi
#================================================= #=================================================

Loading…
Cancel
Save