Print help with wo stack remove/purge
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user