diff --git a/Formula/postgresql@9.5.rb b/Formula/postgresql@9.5.rb index dea2d68c3ed..8f50e3cd418 100644 --- a/Formula/postgresql@9.5.rb +++ b/Formula/postgresql@9.5.rb @@ -95,48 +95,50 @@ class PostgresqlAT95 < Formula system "#{bin}/initdb", "#{var}/#{name}" unless File.exist? "#{var}/#{name}/PG_VERSION" end - def caveats; <<~EOS - If builds of PostgreSQL 9 are failing and you have version 8.x installed, - you may need to remove the previous version first. See: - https://github.com/Homebrew/legacy-homebrew/issues/2510 + def caveats + <<~EOS + If builds of PostgreSQL 9 are failing and you have version 8.x installed, + you may need to remove the previous version first. See: + https://github.com/Homebrew/legacy-homebrew/issues/2510 - To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see: - https://www.postgresql.org/docs/9.5/static/upgrading.html + To migrate existing data from a previous major version (pre-9.0) of PostgreSQL, see: + https://www.postgresql.org/docs/9.5/static/upgrading.html - To migrate existing data from a previous minor version (9.0-9.4) of PostgreSQL, see: - https://www.postgresql.org/docs/9.5/static/pgupgrade.html + To migrate existing data from a previous minor version (9.0-9.4) of PostgreSQL, see: + https://www.postgresql.org/docs/9.5/static/pgupgrade.html - You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`. - Do not run `brew cleanup postgresql@9.5` until you have performed the migration. - EOS + You will need your previous PostgreSQL installation from brew to perform `pg_upgrade`. + Do not run `brew cleanup postgresql@9.5` until you have performed the migration. + EOS end plist_options :manual => "pg_ctl -D #{HOMEBREW_PREFIX}/var/postgresql@9.5 start" - def plist; <<~EOS - - - - - KeepAlive - - Label - #{plist_name} - ProgramArguments - - #{opt_bin}/postgres - -D - #{var}/#{name} - - RunAtLoad - - WorkingDirectory - #{HOMEBREW_PREFIX} - StandardErrorPath - #{var}/log/#{name}.log - - - EOS + def plist + <<~EOS + + + + + KeepAlive + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/postgres + -D + #{var}/#{name} + + RunAtLoad + + WorkingDirectory + #{HOMEBREW_PREFIX} + StandardErrorPath + #{var}/log/#{name}.log + + + EOS end test do