mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Convert old comments in php pools conf files
This commit is contained in:
parent
2f0db53d8c
commit
676d26fb2c
1 changed files with 5 additions and 0 deletions
|
@ -48,6 +48,11 @@ class MyMigration(Migration):
|
|||
c = "sed -i '1i {}' {}".format(MIGRATION_COMMENT, dest)
|
||||
os.system(c)
|
||||
|
||||
# Some old comments starting with '#' instead of ';' are not
|
||||
# compatible in php7
|
||||
c = "sed -i 's/^#/;#/g' {}".format(dest)
|
||||
os.system(c)
|
||||
|
||||
# Reload/restart the php pools
|
||||
_run_service_command("restart", "php7.0-fpm")
|
||||
os.system("systemctl stop php5-fpm")
|
||||
|
|
Loading…
Add table
Reference in a new issue