From 676d26fb2c596d35130999cb2894754e486511d5 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 12 May 2018 19:22:39 +0200 Subject: [PATCH] Convert old comments in php pools conf files --- src/yunohost/data_migrations/0004_php5_to_php7_pools.py | 5 +++++ 1 file changed, 5 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 90023bcd4..b6a36e44b 100644 --- a/src/yunohost/data_migrations/0004_php5_to_php7_pools.py +++ b/src/yunohost/data_migrations/0004_php5_to_php7_pools.py @@ -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")