diff --git a/wo/cli/plugins/info.py b/wo/cli/plugins/info.py index 1449ecf..4f0025f 100644 --- a/wo/cli/plugins/info.py +++ b/wo/cli/plugins/info.py @@ -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()