Browse Source

restore missing php 5.6 packages when php 7.0 purged

master
Prabuddha Chakraborty 9 years ago
parent
commit
dab5fba9cf
  1. 15
      ee/cli/plugins/stack.py

15
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)

Loading…
Cancel
Save