Move the db skip into the "web" console driver. FIXRM #7031
parent
eb762b3653
commit
9204a5b124
|
@ -167,7 +167,7 @@ class Driver < Msf::Ui::Driver
|
|||
end
|
||||
|
||||
# Parse any specified database.yml file
|
||||
if framework.db.usable and not opts['SkipDatabaseInit'] and not opts['Framework']
|
||||
if framework.db.usable and not opts['SkipDatabaseInit']
|
||||
|
||||
# Append any migration paths necessary to bring the database online
|
||||
if opts['DatabaseMigrationPaths']
|
||||
|
|
|
@ -47,6 +47,11 @@ class WebConsole
|
|||
# Create a read subscriber
|
||||
self.pipe.create_subscriber('msfweb')
|
||||
|
||||
# Skip database initialization if it is already configured
|
||||
if framework.db and framework.db.usable and framework.db.migrated
|
||||
opts['SkipDatabaseInit'] = true
|
||||
end
|
||||
|
||||
# Initialize the console with our pipe
|
||||
self.console = Msf::Ui::Console::Driver.new(
|
||||
'msf',
|
||||
|
|
Loading…
Reference in New Issue