From 918de10bd2746162f8aee07dc282568bc3bacead Mon Sep 17 00:00:00 2001 From: "shital.rtcamp" Date: Fri, 27 Feb 2015 19:10:46 +0530 Subject: [PATCH] Added nginx reload code secure.py --- ee/cli/plugins/secure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ee/cli/plugins/secure.py b/ee/cli/plugins/secure.py index c7007bb9..09df15f2 100644 --- a/ee/cli/plugins/secure.py +++ b/ee/cli/plugins/secure.py @@ -4,6 +4,7 @@ from ee.core.shellexec import EEShellExec from ee.core.variables import EEVariables from ee.core.logging import Log from ee.core.git import EEGit +from ee.core.services import EEService import string import random import sys @@ -103,7 +104,7 @@ class EESecureController(CementBaseController): .format(port=self.app.pargs.user_input)) EEGit.add(self, ["/etc/nginx"], msg="Adding changed secure port into Git") - + EEService.reload_service(self, 'nginx') Log.info(self, "Successfully port changed {port}" .format(port=self.app.pargs.user_input))