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

Upgrade php version

This commit is contained in:
Kay0u 2020-12-16 15:38:07 +01:00
parent f12db573bf
commit d01cb9826a
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -147,6 +147,17 @@ ynh_system_user_create --username=$app
#=================================================
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
# If php has changed, remove the old fpm config file
if [ "$phpversion" != $YNH_PHP_VERSION ]
then
ynh_backup_if_checksum_is_different --file="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_secure_remove --file="/etc/php/$phpversion/fpm/pool.d/$app.conf"
ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload
ynh_secure_remove --file="/etc/php/$phpversion/fpm/conf.d/20-$app.ini"
phpversion="$YNH_PHP_VERSION"
fi
# Recreate a dedicated PHP-FPM config
ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint --package="$extra_php_dependencies"