From 5953c0cc7e6aab6732422fde4fc0f25f37fd6db3 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 27 Mar 2019 08:11:42 +0100 Subject: [PATCH] another fix for wo info --- wo/cli/plugins/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wo/cli/plugins/info.py b/wo/cli/plugins/info.py index 2ffd3dd..1449ecf 100644 --- a/wo/cli/plugins/info.py +++ b/wo/cli/plugins/info.py @@ -43,7 +43,7 @@ class WOInfoController(CementBaseController): """Display Nginx information""" version = os.popen("nginx -v 2>&1 | awk -F '/' '{print $2}' | " "awk -F ' ' '{print $1}' | tr -d '\n'").read() - allow = os.popen("grep allow /etc/nginx/common/acl.conf | " + allow = os.popen("grep ^allow /etc/nginx/common/acl.conf | " "cut -d' ' -f2 | cut -d';' -f1 | tr '\n' ' '").read() nc = NginxConfig() nc.loadf('/etc/nginx/nginx.conf')