fix wo info & update readme
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user