From b1a8c8c44048d5fb0c789d7a8ffd7026dbd77649 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 2 Apr 2019 13:29:35 +0800 Subject: [PATCH] Update index.py --- plugins/php/index.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/php/index.py b/plugins/php/index.py index aefa7a3c1..a946d87b5 100755 --- a/plugins/php/index.py +++ b/plugins/php/index.py @@ -132,14 +132,17 @@ def makeOpenrestyConf(): public.writeFile(desc_file, w_content) #php-fpm status - phpversions = ['53','54','55','56','70','71','72','73','74'] + phpversions = ['00','53','54','55','56','70','71','72','73','74'] for version in phpversions: dfile = sdir + '/openresty/nginx/conf/php_status/phpfpm_status_' + version + '.conf' tpl = getPluginDir() + '/conf/phpfpm_status.conf' if not os.path.exists(dfile): - content = public.readFile(tpl) - content = contentReplace(content, version) - public.writeFile(dfile, content) + if version == '00': + public.writeFile(dfile, '') + else: + content = public.readFile(tpl) + content = contentReplace(content, version) + public.writeFile(dfile, content) public.restartWeb() def phpFpmReplace(version):