From 53be1a9290be87b118437c9a868a72f412aa84fa Mon Sep 17 00:00:00 2001 From: gau1991 Date: Wed, 13 May 2015 17:43:38 +0530 Subject: [PATCH] Fixed debug is not get disabled after clossing interactive debug --- ee/cli/plugins/debug.py | 6 ++++++ ee/cli/plugins/site_functions.py | 2 +- ee/cli/plugins/stack.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ee/cli/plugins/debug.py b/ee/cli/plugins/debug.py index 7d5f20b7..9af9ee46 100644 --- a/ee/cli/plugins/debug.py +++ b/ee/cli/plugins/debug.py @@ -454,21 +454,27 @@ class EEDebugController(CementBaseController): """Handle Ctrl+c hevent for -i option of debug""" self.start = False if self.app.pargs.nginx: + self.app.pargs.nginx = 'off' self.debug_nginx() if self.app.pargs.php: + self.app.pargs.php = 'off' self.debug_php() if self.app.pargs.fpm: + self.app.pargs.fpm = 'off' self.debug_fpm() if self.app.pargs.mysql: # MySQL debug will not work for remote MySQL if EEVariables.ee_mysql_host is "localhost": + self.app.pargs.mysql = 'off' self.debug_mysql() else: Log.warn(self, "Remote MySQL found, EasyEngine will not " "enable remote debug") if self.app.pargs.wp: + self.app.pargs.wp = 'off' self.debug_wp() if self.app.pargs.rewrite: + self.app.pargs.rewrite = 'off' self.debug_rewrite() # Reload Nginx diff --git a/ee/cli/plugins/site_functions.py b/ee/cli/plugins/site_functions.py index 782a8eba..d082a6e3 100644 --- a/ee/cli/plugins/site_functions.py +++ b/ee/cli/plugins/site_functions.py @@ -573,7 +573,7 @@ def site_package_check(self, stype): with open('/etc/nginx/fastcgi_params', encoding='utf-8', mode='a') as ee_nginx: ee_nginx.write('fastcgi_param \tSCRIPT_FILENAME ' - '\t$request_filename;') + '\t$request_filename;\n') if stype in ['php', 'mysql', 'wp', 'wpsubdir', 'wpsubdomain']: Log.debug(self, "Setting apt_packages variable for PHP") diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 2bb80ed5..64f0eec8 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -370,7 +370,7 @@ class EEStackController(CementBaseController): with open('/etc/nginx/fastcgi_params', encoding='utf-8', mode='a') as ee_nginx: ee_nginx.write('fastcgi_param \tSCRIPT_FILENAME ' - '\t$request_filename;') + '\t$request_filename;\n') # Pagespeed configuration Log.debug(self, 'Writting the Pagespeed Global '