php73_to_php74: stopping php7.3 before starting 7.4 should be more robust in case confs are conflicting

This commit is contained in:
Alexandre Aubin 2022-01-29 19:19:19 +01:00
parent f0a01ba25d
commit 9ae7ec5930

View file

@ -87,10 +87,10 @@ class MyMigration(Migration):
) # We remove this otherwise the logrotate cron will be unhappy ) # We remove this otherwise the logrotate cron will be unhappy
# Reload/restart the php pools # Reload/restart the php pools
_run_service_command("restart", "php7.4-fpm")
_run_service_command("enable", "php7.4-fpm")
os.system("systemctl stop php7.3-fpm") os.system("systemctl stop php7.3-fpm")
os.system("systemctl disable php7.3-fpm") os.system("systemctl disable php7.3-fpm")
_run_service_command("restart", "php7.4-fpm")
_run_service_command("enable", "php7.4-fpm")
# Reload nginx # Reload nginx
_run_service_command("reload", "nginx") _run_service_command("reload", "nginx")