Don't delete ssl key and cert if a user asked not to

master
Erin Bleiweiss 2019-03-05 15:25:53 -06:00
parent 14a7fbe4cc
commit cff6231aa5
No known key found for this signature in database
GPG Key ID: F69B2138BD594660
1 changed files with 4 additions and 2 deletions

2
msfdb
View File

@ -577,8 +577,10 @@ def delete_web_service
stop_web_service
File.delete(@ws_pid) if web_service_pid_status == WebServicePIDStatus::INACTIVE
if @options[:delete_existing_data]
File.delete(@options[:ssl_key]) if File.file?(@options[:ssl_key])
File.delete(@options[:ssl_cert]) if File.file?(@options[:ssl_cert])
end
end
def reinit_web_service