From 696ab8a98955f3c955c71f3f67e28e2e797acf84 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 16 Mar 2018 17:43:22 +0100 Subject: [PATCH] Stop dis php5 fpm old guy --- src/yunohost/data_migrations/0004_php5_to_php7_pools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/yunohost/data_migrations/0004_php5_to_php7_pools.py b/src/yunohost/data_migrations/0004_php5_to_php7_pools.py index 560b7a25c..90023bcd4 100644 --- a/src/yunohost/data_migrations/0004_php5_to_php7_pools.py +++ b/src/yunohost/data_migrations/0004_php5_to_php7_pools.py @@ -50,6 +50,7 @@ class MyMigration(Migration): # Reload/restart the php pools _run_service_command("restart", "php7.0-fpm") + os.system("systemctl stop php5-fpm") # Get list of nginx conf file nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf") @@ -74,7 +75,8 @@ class MyMigration(Migration): os.remove(f) # Reload/restart the php pools - _run_service_command("restart", "php7.0-fpm") + _run_service_command("stop", "php7.0-fpm") + os.system("systemctl start php5-fpm") # Get list of nginx conf file nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf")