2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 15:38:25 +00:00

fix setup production

This commit is contained in:
Pratik Vyas 2014-11-04 18:16:34 +05:30
parent 3c8de42f51
commit bbcc8d1745

View File

@ -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'