From bbcc8d1745e0dbe498e083c898dd1f90f8fdc45f Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Tue, 4 Nov 2014 18:16:34 +0530 Subject: [PATCH] fix setup production --- bench/production_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/production_setup.py b/bench/production_setup.py index 3848446d..a3223568 100644 --- a/bench/production_setup.py +++ b/bench/production_setup.py @@ -29,7 +29,7 @@ def setup_production(bench='.'): generate_nginx_config(bench=bench) remove_default_nginx_configs() - if os.path.exists('/etc/redhat-release') and get_cmd_output("cat /etc/redhat-release | sed 's/Linux\ //g' | cut -d' ' -f3 | cut -d. -f1") == '7': + if os.path.exists('/etc/redhat-release') and get_cmd_output("cat /etc/redhat-release | sed 's/Linux\ //g' | cut -d' ' -f3 | cut -d. -f1").strip() == '7': supervisor_conf_filename = 'frappe.ini' else: supervisor_conf_filename = 'frappe.conf'