Update Travis and tests

This commit is contained in:
VirtuBox
2019-08-16 23:26:23 +02:00
parent a2f8ec7e85
commit db8a954773
7 changed files with 276 additions and 263 deletions

View File

@@ -762,14 +762,15 @@ class WOStackController(CementBaseController):
.format(WOVariables.wo_webroot)]
if (packages) or (apt_packages):
wo_prompt = input('Are you sure you to want to purge '
'from server '
'along with their configuration'
' packages,\nAny answer other than '
'"yes" will be stop this '
'operation :')
if not pargs.force:
wo_prompt = input('Are you sure you to want to purge '
'from server '
'along with their configuration'
' packages,\nAny answer other than '
'"yes" will be stop this '
'operation :')
if wo_prompt == 'YES' or wo_prompt == 'yes' or pargs.force:
if (wo_prompt == 'YES' or wo_prompt == 'yes' or pargs.force):
if (set(["nginx-custom"]).issubset(set(apt_packages))):
WOService.stop_service(self, 'nginx')