From 3f3d4a4f56e690860032945f3b6e42993d18647a Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Fri, 1 Jan 2016 19:52:06 +0530 Subject: [PATCH] change 22222 conf --- ee/cli/plugins/stack.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index b314a40d..42c93774 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -243,6 +243,12 @@ class EEStackController(CementBaseController): ee_nginx.write('fastcgi_param \tSCRIPT_FILENAME ' '\t$request_filename;\n') + if os.path.isfile('/etc/nginx/sites-available/22222'): + http2 = "http2" if EEAptGet.is_installed(self,'nginx-mainline') else "spdy" + if not EEShellExec.cmd_exec(self, "grep -q \'{http2}\' /etc/nginx/sites-available/22222".format(http2=http2)): + Log.debug(self, 'Setting http2/spdy in 22222') + EEShellExec.cmd_exec(self, "sed -i 's/http2\|spdy/{0}/g' /etc/nginx/sites-available/22222".format(http2)) + if not (os.path.isfile('/etc/nginx/common/wpfc.conf')): # Change EasyEngine Version in nginx.conf file EEFileUtils.searchreplace(self, "/etc/nginx/nginx.conf",