Don't delete ssl key and cert if a user asked not to
parent
14a7fbe4cc
commit
cff6231aa5
2
msfdb
2
msfdb
|
@ -577,9 +577,11 @@ 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
|
||||
delete_web_service
|
||||
|
|
Loading…
Reference in New Issue