the database *is* available at startup if there is a ~/.msf3/database.yml or if msfconsole was started with -y. There's a check for the db anyway, so this shouldn't ever bomb out
git-svn-id: file:///home/svn/framework3/trunk@12407 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
4c0c282cf8
commit
53809926c1
|
@ -269,12 +269,12 @@ class FrameworkEventSubscriber
|
|||
|
||||
def on_ui_start(rev)
|
||||
#
|
||||
# The database is not active at startup time, so this event can never
|
||||
# be saved to the db. Might look into storing it in a flat file or
|
||||
# something later.
|
||||
# The database is not active at startup time unless msfconsole was
|
||||
# started with a database.yml, so this event won't always be saved to
|
||||
# the db. Not great, but best we can do.
|
||||
#
|
||||
#info = { :revision => rev }
|
||||
#report_event(:name => "ui_start", :info => info)
|
||||
info = { :revision => rev }
|
||||
report_event(:name => "ui_start", :info => info)
|
||||
end
|
||||
|
||||
require 'msf/core/session'
|
||||
|
|
Loading…
Reference in New Issue