Browse Source

added code for ee stack install --all,ee stack remove --all, ee stack purge --all

bugfixes
shital.rtcamp 10 years ago
parent
commit
87d36b4544
  1. 17
      ee/cli/plugins/stack.py

17
ee/cli/plugins/stack.py

@ -40,6 +40,8 @@ class EEStackController(CementBaseController):
stacked_type = 'nested'
description = 'Stack command manages stack operations'
arguments = [
(['--all'],
dict(help='Install web stack', action='store_true')),
(['--web'],
dict(help='Install web stack', action='store_true')),
(['--admin'],
@ -1072,6 +1074,11 @@ class EEStackController(CementBaseController):
(not self.app.pargs.mailscanner)):
self.app.pargs.web = True
if self.app.pargs.all:
self.app.pargs.web = True
self.app.pargs.admin = True
self.app.pargs.mail = True
if self.app.pargs.web:
Log.debug(self, "Setting apt_packages variable for Nginx ,PHP"
" ,MySQL ")
@ -1274,6 +1281,11 @@ class EEStackController(CementBaseController):
(not self.app.pargs.mailscanner)):
self.app.pargs.web = True
if self.app.pargs.all:
self.app.pargs.web = True
self.app.pargs.admin = True
self.app.pargs.mail = True
if self.app.pargs.web:
self.app.pargs.nginx = True
self.app.pargs.php = True
@ -1363,6 +1375,11 @@ class EEStackController(CementBaseController):
(not self.app.pargs.mailscanner)):
self.app.pargs.web = True
if self.app.pargs.all:
self.app.pargs.web = True
self.app.pargs.admin = True
self.app.pargs.mail = True
if self.app.pargs.web:
self.app.pargs.nginx = True
self.app.pargs.php = True

Loading…
Cancel
Save