add an extra space into info

This commit is contained in:
VirtuBox
2019-03-27 09:12:30 +01:00
parent 5953c0cc7e
commit f5b128babd

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}' | tr -d '\n'").read()
"awk -F ' ' '{print $1}' | tr '\n' ' '").read()
allow = os.popen("grep ^allow /etc/nginx/common/acl.conf | "
"cut -d' ' -f2 | cut -d';' -f1 | tr '\n' ' '").read()
nc = NginxConfig()