mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1108 from YunoHost/do-not-reload-php7.3-too-fast
do not reload php7.3 too fast
This commit is contained in:
commit
173cbd409f
1 changed files with 6 additions and 6 deletions
|
@ -270,12 +270,12 @@ WantedBy=multi-user.target
|
|||
ynh_systemd_action --service_name=$fpm_service --action=restart
|
||||
else
|
||||
# Validate that the new php conf doesn't break php-fpm entirely
|
||||
php-fpm${phpversion} --test 2>/dev/null \
|
||||
&& ynh_systemd_action --service_name=$fpm_service --action=reload \
|
||||
|| { php-fpm${phpversion} --test || true;
|
||||
ynh_secure_remove --file="$finalphpconf";
|
||||
ynh_die --message="The new configuration broke php-fpm?";
|
||||
}
|
||||
if ! php-fpm${phpversion} --test 2>/dev/null
|
||||
then
|
||||
php-fpm${phpversion} --test || true
|
||||
ynh_secure_remove --file="$finalphpconf"
|
||||
ynh_die --message="The new configuration broke php-fpm?"
|
||||
fi
|
||||
ynh_systemd_action --service_name=$fpm_service --action=reload
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue