Print help with wo stack remove/purge

This commit is contained in:
VirtuBox
2019-11-05 20:25:44 +01:00
parent e0165a7312
commit ce39787564
2 changed files with 6 additions and 7 deletions

View File

@@ -12,6 +12,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- [STACK] nanorc syntax highlighting for nano editor : `--nanorc` - [STACK] nanorc syntax highlighting for nano editor : `--nanorc`
#### Changed
- `wo stack remove/purge` without argument print help instead of removing main stacks
#### Fixed #### Fixed
- Import rtCamp:EasyEngine GPG key to avoid issues with previous nginx repository - Import rtCamp:EasyEngine GPG key to avoid issues with previous nginx repository

View File

@@ -564,8 +564,7 @@ class WOStackController(CementBaseController):
(not pargs.ufw) and (not pargs.ngxblocker) and (not pargs.ufw) and (not pargs.ngxblocker) and
(not pargs.phpredisadmin) and (not pargs.sendmail) and (not pargs.phpredisadmin) and (not pargs.sendmail) and
(not pargs.php73)): (not pargs.php73)):
pargs.web = True self.app.args.print_help()
pargs.admin = True
if pargs.all: if pargs.all:
pargs.web = True pargs.web = True
@@ -828,8 +827,6 @@ class WOStackController(CementBaseController):
WOAptGet.auto_remove(self) WOAptGet.auto_remove(self)
Log.valide(self, "Removing APT packages ") Log.valide(self, "Removing APT packages ")
Log.info(self, "Successfully removed packages") Log.info(self, "Successfully removed packages")
@expose(help="Purge packages") @expose(help="Purge packages")
@@ -853,9 +850,7 @@ class WOStackController(CementBaseController):
(not pargs.ufw) and (not pargs.ngxblocker) and (not pargs.ufw) and (not pargs.ngxblocker) and
(not pargs.phpredisadmin) and (not pargs.sendmail) and (not pargs.phpredisadmin) and (not pargs.sendmail) and
(not pargs.php73)): (not pargs.php73)):
pargs.web = True self.app.args.print_help()
pargs.admin = True
pargs.security = True
if pargs.all: if pargs.all:
pargs.web = True pargs.web = True