Don't delete ssl key and cert if a user asked not to
parent
14a7fbe4cc
commit
cff6231aa5
6
msfdb
6
msfdb
|
@ -577,8 +577,10 @@ def delete_web_service
|
|||
stop_web_service
|
||||
|
||||
File.delete(@ws_pid) if web_service_pid_status == WebServicePIDStatus::INACTIVE
|
||||
File.delete(@options[:ssl_key]) if File.file?(@options[:ssl_key])
|
||||
File.delete(@options[:ssl_cert]) if File.file?(@options[:ssl_cert])
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue