Explicitly enable php7.0-fpm and disable php5-fpm during php migration

This commit is contained in:
Alexandre Aubin 2018-06-11 23:42:18 +02:00
parent d55c029c9b
commit a895662693

View file

@ -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