mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Stop dis php5 fpm old guy
This commit is contained in:
parent
1f5ff188f7
commit
696ab8a989
1 changed files with 3 additions and 1 deletions
|
@ -50,6 +50,7 @@ class MyMigration(Migration):
|
||||||
|
|
||||||
# Reload/restart the php pools
|
# Reload/restart the php pools
|
||||||
_run_service_command("restart", "php7.0-fpm")
|
_run_service_command("restart", "php7.0-fpm")
|
||||||
|
os.system("systemctl stop php5-fpm")
|
||||||
|
|
||||||
# Get list of nginx conf file
|
# Get list of nginx conf file
|
||||||
nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf")
|
nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf")
|
||||||
|
@ -74,7 +75,8 @@ class MyMigration(Migration):
|
||||||
os.remove(f)
|
os.remove(f)
|
||||||
|
|
||||||
# Reload/restart the php pools
|
# 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
|
# Get list of nginx conf file
|
||||||
nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf")
|
nginx_conf_files = glob.glob("/etc/nginx/conf.d/*.d/*.conf")
|
||||||
|
|
Loading…
Add table
Reference in a new issue