Skip to content

Commit

Permalink
Updates the msfdb prompts for webservice
Browse files Browse the repository at this point in the history
  • Loading branch information
cgranleese-r7 committed May 19, 2023
1 parent 428229a commit 8d131f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions msfdb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ require 'msfenv'
retry_max: 10,
retry_delay: 5.0,
ws_user: nil,
add_data_service: true,
add_data_service: false,
data_service_name: nil,
use_defaults: false,
delete_existing_data: true
Expand Down Expand Up @@ -921,6 +921,7 @@ def parse_args(args)
if !n
@options[:add_data_service] = false
else
@options[:add_data_service] = true
@options[:data_service_name] = n
end
}
Expand Down Expand Up @@ -987,8 +988,7 @@ def prompt_for_component(command)
return :database
end

enable_webservice = ask_yn("Would you like to #{command} the webservice? (Not Required)", default: 'no')
if enable_webservice
if @options[:add_data_service] == true
:all
else
:database
Expand Down

0 comments on commit 8d131f0

Please sign in to comment.