From 46cb343d725bb6bbf9aa632350c68672a4721fea Mon Sep 17 00:00:00 2001 From: gau1991 Date: Mon, 22 Dec 2014 16:32:15 +0530 Subject: [PATCH] Added code to remove Anemometer --- ee/cli/plugins/stack.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 96861825..135e62e0 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -343,9 +343,9 @@ class EEStackController(CementBaseController): '/var/www/22222/htdocs/cache/opcache', '/var/www/22222/htdocs/cache/nginx/' 'clean.php', - '/var/www/22222/htdocs/cache/memcache'] - if self.app.pargs.anemometer: - packages = packages + ['/var/www/22222/htdocs/db/anemometer'] + '/var/www/22222/htdocs/cache/memcache', + '/usr/bin/pt-query-advisor', + '/var/www/22222/htdocs/db/anemometer'] if len(apt_packages): pkg.remove(apt_packages) @@ -386,9 +386,10 @@ class EEStackController(CementBaseController): '/var/www/22222/htdocs/cache/opcache', '/var/www/22222/htdocs/cache/nginx/' 'clean.php', - '/var/www/22222/htdocs/cache/memcache'] - if self.app.pargs.anemometer: - packages = packages + ['/var/www/22222/htdocs/db/anemometer'] + '/var/www/22222/htdocs/cache/memcache', + '/usr/bin/pt-query-advisor', + '/var/www/22222/htdocs/db/anemometer' + ] if len(apt_packages): pkg.purge(apt_packages)