fix wo info & update readme

This commit is contained in:
VirtuBox
2019-03-27 04:26:12 +01:00
parent b72dc75fc3
commit 8ee6cc9dd4
4 changed files with 19 additions and 14 deletions

View File

@@ -41,7 +41,7 @@ class WOInfoController(CementBaseController):
@expose(hide=True)
def info_nginx(self):
"""Display Nginx information"""
version = os.popen("nginx -v 2 > &1 | awk - F '/' '{print $2}' | '"
version = os.popen("nginx -v 2>&1 | awk -F '/' '{print $2}' | "
"awk -F ' ' '{print $1}'").read()
allow = os.popen("grep allow /etc/nginx/common/acl.conf | "
"cut -d' ' -f2 | cut -d';' -f1 | tr '\n' ' '").read()