fix wo info

This commit is contained in:
VirtuBox
2019-03-27 05:11:12 +01:00
parent e92c20f918
commit 195e8b3838

View File

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