delete extra parameter in msfdb

This commit is contained in:
3V3RYONE
2022-01-25 20:24:14 +05:30
parent f7ce4c9879
commit 19ef3eb8aa
3 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -64,8 +64,9 @@ module MsfdbHelpers
if @options[:debug] if @options[:debug]
puts "psql -h #{Dir.tmpdir} -p #{@options[:db_port]} -c \"#{cmd};\" #{db_name}" puts "psql -h #{Dir.tmpdir} -p #{@options[:db_port]} -c \"#{cmd};\" #{db_name}"
end end
run_cmd("psql -h #{Dir.tmpdir} -p #{@options[:db_port]} -c \"#{cmd};\" #{db_name}") run_cmd("psql -h #{Dir.tmpdir} -p #{@options[:db_port]} -c \"#{cmd};\" #{db_name}")
end end
end end
end end
+1 -1
View File
@@ -15,7 +15,7 @@ module MsfdbHelpers
puts "Creating database at #{@db}" puts "Creating database at #{@db}"
Dir.mkdir(@db) Dir.mkdir(@db)
run_cmd("initdb --auth-host=trust --auth-local=trust -E UTF8 #{@db.shellescape}") run_cmd("initdb --auth-host=trust --auth-local=trust -E UTF8 #{@db.shellescape}")
File.open("#{@db}/postgresql.conf", 'a') do |f| File.open("#{@db}/postgresql.conf", 'a') do |f|
f.puts "port = #{@options[:db_port]}" f.puts "port = #{@options[:db_port]}"
f.puts "unix_socket_directories = \'#{Dir.tmpdir}\'" f.puts "unix_socket_directories = \'#{Dir.tmpdir}\'"
-1
View File
@@ -67,7 +67,6 @@ require 'msfenv'
db_host: '127.0.0.1', db_host: '127.0.0.1',
db_port: 5433, db_port: 5433,
db_pool: 200, db_pool: 200,
unix_socket_directories: '/tmp',
address: 'localhost', address: 'localhost',
port: 5443, port: 5443,
daemon: true, daemon: true,