diff --git a/ee/cli/plugins/stack.py b/ee/cli/plugins/stack.py index 6fb582ad..9979e8ea 100644 --- a/ee/cli/plugins/stack.py +++ b/ee/cli/plugins/stack.py @@ -2578,6 +2578,13 @@ class EEStackController(CementBaseController): Log.info(self, "Successfully removed packages") + if self.app.pargs.php7: + if not EEAptGet.is_installed(self, 'php5.6-fpm'): + Log.info(self, "PHP5.6-fpm found on system.") + Log.info(self, "Verifying and installing missing packages,") + EEShellExec.cmd_exec(self, "apt-get install -y php-memcached php-igbinary") + + @expose(help="Purge packages") def purge(self): """Start purging of packages""" @@ -2740,6 +2747,14 @@ class EEStackController(CementBaseController): Log.info(self, "Successfully purged packages") + if self.app.pargs.php7: + if not EEAptGet.is_installed(self, 'php5.6-fpm'): + Log.info(self, "PHP5.6-fpm found on system.") + Log.info(self, "Verifying and installing missing packages,") + EEShellExec.cmd_exec(self, "apt-get install -y php-memcached php-igbinary") + + + def load(app): # register the plugin class.. this only happens if the plugin is enabled handler.register(EEStackController)