From 119fae56def96cc3a1742c953a82fea6842fae2f Mon Sep 17 00:00:00 2001 From: Joe Grund Date: Fri, 20 Jul 2018 13:21:51 -0400 Subject: [PATCH] Remove worker_process changes. (#689) Nginx in EPEL already default to worker_process auto. We don't need to alter it anymore in the spec. Signed-off-by: Joe Grund --- python-iml-manager.spec.in | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/python-iml-manager.spec.in b/python-iml-manager.spec.in index 2f51c388d6..079cde82b5 100644 --- a/python-iml-manager.spec.in +++ b/python-iml-manager.spec.in @@ -260,10 +260,6 @@ rm -rf $RPM_BUILD_ROOT PYTHONPATH=$RPM_BUILD_ROOT%{manager_root} %{__python} $RPM_BUILD_ROOT%{manager_root}/scripts/production_nginx.py \ $RPM_BUILD_ROOT%{manager_root}/chroma-manager.conf.template > /etc/nginx/conf.d/chroma-manager.conf -# set worker_processes to auto -sed -i '/^worker_processes /s/^/#/' /etc/nginx/nginx.conf -sed -i '1 i\worker_processes auto;' /etc/nginx/nginx.conf - # Start nginx which should present a helpful setup # page if the user visits it before configuring Chroma fully systemctl enable nginx @@ -334,12 +330,6 @@ fi %systemd_preun iml-syslog.service %systemd_preun iml-view-server.service -if [ $1 -lt 1 ]; then - #reset worker processes - sed -i '/^worker_processes auto;/d' /etc/nginx/nginx.conf - sed -i '/^#worker_processes /s/^#//' /etc/nginx/nginx.conf -fi - %postun -n python2-%{pypi_name} if [ $1 -lt 1 ]; then for port in 80 443; do