From e13df3ae584a6e1cc40045aa9d23d8a00e94e07f Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 5 Sep 2022 22:49:57 +0800 Subject: [PATCH] Update index.py --- plugins/php-yum/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py index 98e99763f..3c97808a2 100755 --- a/plugins/php-yum/index.py +++ b/plugins/php-yum/index.py @@ -419,8 +419,8 @@ def setFpmConfig(version): pm = args['pm'] # file = getServerDir() + '/php' + version + '/php-fpm.d/www.conf' - file = getFpmConfFile(version) - conf = mw.readFile(file) + filefpm = getFpmConfFile(version) + conf = mw.readFile(filefpm) rep = "\s*pm.max_children\s*=\s*([0-9]+)\s*" conf = re.sub(rep, "\npm.max_children = " + max_children, conf)