Skip to content

Commit 0c7a4d3

Browse files
author
gau1991
committed
Merge branch 'python' of github.com:rtCamp/easyengine into python
2 parents 08beab2 + 1692b9e commit 0c7a4d3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ee/cli/plugins/stack.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class Meta:
4040
stacked_type = 'nested'
4141
description = 'Stack command manages stack operations'
4242
arguments = [
43+
(['--all'],
44+
dict(help='Install all stack', action='store_true')),
4345
(['--web'],
4446
dict(help='Install web stack', action='store_true')),
4547
(['--admin'],
@@ -1075,6 +1077,11 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
10751077
(not self.app.pargs.mailscanner)):
10761078
self.app.pargs.web = True
10771079

1080+
if self.app.pargs.all:
1081+
self.app.pargs.web = True
1082+
self.app.pargs.admin = True
1083+
self.app.pargs.mail = True
1084+
10781085
if self.app.pargs.web:
10791086
Log.debug(self, "Setting apt_packages variable for Nginx ,PHP"
10801087
" ,MySQL ")
@@ -1277,6 +1284,11 @@ def remove(self):
12771284
(not self.app.pargs.mailscanner)):
12781285
self.app.pargs.web = True
12791286

1287+
if self.app.pargs.all:
1288+
self.app.pargs.web = True
1289+
self.app.pargs.admin = True
1290+
self.app.pargs.mail = True
1291+
12801292
if self.app.pargs.web:
12811293
self.app.pargs.nginx = True
12821294
self.app.pargs.php = True
@@ -1366,6 +1378,11 @@ def purge(self):
13661378
(not self.app.pargs.mailscanner)):
13671379
self.app.pargs.web = True
13681380

1381+
if self.app.pargs.all:
1382+
self.app.pargs.web = True
1383+
self.app.pargs.admin = True
1384+
self.app.pargs.mail = True
1385+
13691386
if self.app.pargs.web:
13701387
self.app.pargs.nginx = True
13711388
self.app.pargs.php = True

0 commit comments

Comments
 (0)