From a895662693133d3da06afa56cf43478fc8051ae4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 11 Jun 2018 23:42:18 +0200 Subject: [PATCH] Explicitly enable php7.0-fpm and disable php5-fpm during php migration --- src/yunohost/data_migrations/0004_php5_to_php7_pools.py | 2 ++ 1 file changed, 2 insertions(+) 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 1afbf16b7..0237ddb38 100644 --- a/src/yunohost/data_migrations/0004_php5_to_php7_pools.py +++ b/src/yunohost/data_migrations/0004_php5_to_php7_pools.py @@ -55,7 +55,9 @@ class MyMigration(Migration): # Reload/restart the php pools _run_service_command("restart", "php7.0-fpm") + _run_service_command("enable", "php7.0-fpm") os.system("systemctl stop php5-fpm") + os.system("systemctl disable php5-fpm") os.system("rm /etc/logrotate.d/php5-fpm") # We remove this otherwise the logrotate cron will be unhappy # Get list of nginx conf file