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