@@ -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 web stack' , action = 'store_true' )),
4345 (['--web' ],
4446 dict (help = 'Install web stack' , action = 'store_true' )),
4547 (['--admin' ],
@@ -1072,6 +1074,11 @@ def install(self, packages=[], apt_packages=[], disp_msg=True):
10721074 (not self .app .pargs .mailscanner )):
10731075 self .app .pargs .web = True
10741076
1077+ if self .app .pargs .all :
1078+ self .app .pargs .web = True
1079+ self .app .pargs .admin = True
1080+ self .app .pargs .mail = True
1081+
10751082 if self .app .pargs .web :
10761083 Log .debug (self , "Setting apt_packages variable for Nginx ,PHP"
10771084 " ,MySQL " )
@@ -1274,6 +1281,11 @@ def remove(self):
12741281 (not self .app .pargs .mailscanner )):
12751282 self .app .pargs .web = True
12761283
1284+ if self .app .pargs .all :
1285+ self .app .pargs .web = True
1286+ self .app .pargs .admin = True
1287+ self .app .pargs .mail = True
1288+
12771289 if self .app .pargs .web :
12781290 self .app .pargs .nginx = True
12791291 self .app .pargs .php = True
@@ -1363,6 +1375,11 @@ def purge(self):
13631375 (not self .app .pargs .mailscanner )):
13641376 self .app .pargs .web = True
13651377
1378+ if self .app .pargs .all :
1379+ self .app .pargs .web = True
1380+ self .app .pargs .admin = True
1381+ self .app .pargs .mail = True
1382+
13661383 if self .app .pargs .web :
13671384 self .app .pargs .nginx = True
13681385 self .app .pargs .php = True
0 commit comments