Skip to content

Commit

Permalink
[CiPostgresRunner] Don't copy pg_hba.conf
Browse files Browse the repository at this point in the history
This seems to cause issues, and postgres on Travis is setup to use
`trust` instead of `peer`.  Since the tests generally work with the
default, continue using that instead of using what is brought over from
a `.restore`.
  • Loading branch information
NickLaMuro committed May 17, 2021
1 parent e361027 commit a6f9740
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/ci_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ class CiPostgresRunner
PGCONFIGDIR = "/etc/postgresql/#{PGVER}/main".freeze

def self.start
puts `echo; echo; sudo cat #{PGCONFIGDIR}/pg_hba.conf; echo; echo;`

# Make sure we have our postgresql.conf in the right spot on Travis
system("sudo cp #{PGDATADIR}/postgresql.conf #{PGCONFIGDIR}/postgresql.conf")

# Move our configured `pg_hba.conf` to the config dir as well
system("sudo cp #{PGDATADIR}/pg_hba.conf #{PGCONFIGDIR}/pg_hba.conf")
# system("sudo cp #{PGDATADIR}/pg_hba.conf #{PGCONFIGDIR}/pg_hba.conf")

# Make sure directly in the postgresql.conf, the data_directory is set
# (requirement for pg_wrapper I think...)
Expand Down

0 comments on commit a6f9740

Please sign in to comment.