Fix database name typo in privs for development
Also updates authentication method to trust, but verify. Change made to original script in parallel see rapid7/metasploit-omnibus/#73.
This commit is contained in:
@@ -185,7 +185,7 @@ def create_db
|
||||
File.open("#{@db}/pg_hba.conf", 'w') do |f|
|
||||
f.puts "host \"msf\" \"#{@options[:msf_db_user]}\" 127.0.0.1/32 md5"
|
||||
f.puts "host \"msftest\" \"#{@options[:msftest_db_user]}\" 127.0.0.1/32 md5"
|
||||
f.puts "host \"postgresql\" \"#{@options[:msftest_db_user]}\" 127.0.0.1/32 md5"
|
||||
f.puts "host \"postgres\" \"#{@options[:msftest_db_user]}\" 127.0.0.1/32 trust"
|
||||
f.puts "host \"template1\" all 127.0.0.1/32 trust"
|
||||
if Gem.win_platform?
|
||||
f.puts "host all all 127.0.0.1/32 trust"
|
||||
|
||||
Reference in New Issue
Block a user