rapid7/metasploit-framework — pull request #3619 by limhoff-r7 (2014-08-05 15:20:46+00:00)
Title: Favor MSF_DATABASE_CONFIG for paths['config/database']

[MSP-10848](https://jira.tor.rapid7.com/secure/RapidBoard.jspa?rapidView=84&selectedIssue=MSP-10848)

# Verification Steps

## msfconsole

### With MSF_DATABASE_CONFIG

- [ ] `export MSF_DATABASE_CONFIG=${pro}/ui/config/database.yml` (`${pro}` should be set to the location of your pro repository)
- [ ] `./msfconsole`
- [ ] `db_status`
- [ ] VERIFY msfconsole is connected to the pro database and not the metasploit-framework database (**NOTE: you should be using a different database for metasploit-framework and pro**)
```
[*] postgresql connected to metasploit_pro_production
```
- [ ] `exit`
- [ ] `unset MSF_DATABASE_CONFIG`

### Without MSF_DATABASE_CONFIG

- [ ] `./msfconsole`
- [ ] `db_status`
- [ ] VERIFY msfconsole is connected to the framework database defined in `~/.msf4/database.yml` (**NOTE: you should be using a different database for metasploit-framework and pro**)
```
[*] postgresql connected to metasploit_framework_private_development
```
- [ ] `exit`

## specs

- [ ] `rake spec`
- [ ] VERIFY no failures