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

reload php-fpm

This commit is contained in:
Kay0u 2020-12-16 16:16:34 +01:00
parent d01cb9826a
commit 001a2b6a1a
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -153,7 +153,9 @@ 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"
if [ -f /etc/php/$phpversion/fpm/conf.d/20-$app.ini ]; then
ynh_secure_remove --file="/etc/php/$phpversion/fpm/conf.d/20-$app.ini"
fi
phpversion="$YNH_PHP_VERSION"
fi
@ -478,9 +480,10 @@ ynh_app_setting_set --app=$app --key=skipped_regex \
#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading NGINX web server..."
ynh_script_progression --message="Reloading NGINX web server and PHP-FPM..."
ynh_systemd_action --service_name=nginx --action=reload
ynh_systemd_action --service_name="php${phpversion}-fpm" --action=reload
#=================================================
# FINISH MIGRATION PROCESS