another fix for wo info
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user