diff --git a/CHANGELOG.md b/CHANGELOG.md index 35cd37a..780e0f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` +#### Changed + +- `wo stack remove/purge` without argument print help instead of removing main stacks + #### Fixed - Import rtCamp:EasyEngine GPG key to avoid issues with previous nginx repository diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 7efc2fb..0efd01c 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -564,8 +564,7 @@ class WOStackController(CementBaseController): (not pargs.ufw) and (not pargs.ngxblocker) and (not pargs.phpredisadmin) and (not pargs.sendmail) and (not pargs.php73)): - pargs.web = True - pargs.admin = True + self.app.args.print_help() if pargs.all: pargs.web = True @@ -828,8 +827,6 @@ class WOStackController(CementBaseController): WOAptGet.auto_remove(self) Log.valide(self, "Removing APT packages ") - - Log.info(self, "Successfully removed packages") @expose(help="Purge packages") @@ -853,9 +850,7 @@ class WOStackController(CementBaseController): (not pargs.ufw) and (not pargs.ngxblocker) and (not pargs.phpredisadmin) and (not pargs.sendmail) and (not pargs.php73)): - pargs.web = True - pargs.admin = True - pargs.security = True + self.app.args.print_help() if pargs.all: pargs.web = True