do not reload php7.3 too fast

This commit is contained in:
Kay0u 2020-12-18 16:55:39 +01:00
parent ff5d8ebd61
commit 58dcf45bd9
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -270,12 +270,12 @@ WantedBy=multi-user.target
ynh_systemd_action --service_name=$fpm_service --action=restart ynh_systemd_action --service_name=$fpm_service --action=restart
else else
# Validate that the new php conf doesn't break php-fpm entirely # Validate that the new php conf doesn't break php-fpm entirely
php-fpm${phpversion} --test 2>/dev/null \ if ! php-fpm${phpversion} --test 2>/dev/null
&& ynh_systemd_action --service_name=$fpm_service --action=reload \ then
|| { php-fpm${phpversion} --test || true; php-fpm${phpversion} --test || true;
ynh_secure_remove --file="$finalphpconf"; ynh_secure_remove --file="$finalphpconf";
ynh_die --message="The new configuration broke php-fpm?"; ynh_die --message="The new configuration broke php-fpm?";
} fi
ynh_systemd_action --service_name=$fpm_service --action=reload ynh_systemd_action --service_name=$fpm_service --action=reload
fi fi
} }