Moved default_db to database.default. Just trying to keep the config file tidy
git-svn-id: https://beef.googlecode.com/svn/trunk@947 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
2
beef
2
beef
@@ -21,7 +21,7 @@ BeEF::Modules.load
|
||||
Socket.do_not_reverse_lookup = true
|
||||
|
||||
# setup database
|
||||
case config.get("beef.default_db")
|
||||
case config.get("beef.database.default")
|
||||
when "sqlite"
|
||||
DataMapper.setup(:default, "sqlite3://#{$root_dir}/#{config.get("beef.database.sqlite.db_name")}")
|
||||
when "mysql"
|
||||
|
||||
@@ -3,9 +3,6 @@ beef:
|
||||
version: '0.4.2.5-alpha'
|
||||
debug: false
|
||||
|
||||
#supported DBs: sqlite, MySQL
|
||||
default_db: "sqlite"
|
||||
|
||||
restrictions:
|
||||
# subnet of browser ip addresses that can hook to the framework
|
||||
permitted_hooking_subnet: "0.0.0.0/0"
|
||||
@@ -26,6 +23,8 @@ beef:
|
||||
session_cookie_name: "BEEFSESSION"
|
||||
|
||||
database:
|
||||
#supported DBs: sqlite, MySQL
|
||||
default: "sqlite"
|
||||
# please note that the db should exists. Schema will be created automatically.
|
||||
# mysql> create database beef;
|
||||
# mysql> grant all privileges on beef.* to 'beef'@'localhost' identified by 'beef123';
|
||||
|
||||
Reference in New Issue
Block a user