delete extra parameter in msfdb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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}\'"
|
||||||
|
|||||||
Reference in New Issue
Block a user