Commit a727a7c3 authored by Ed Reel's avatar Ed Reel

Export PGDATA environment variable

parent b3efd44f
...@@ -43,10 +43,10 @@ class Postgres < Package ...@@ -43,10 +43,10 @@ class Postgres < Package
system "initdb -D #{PGDATA}" system "initdb -D #{PGDATA}"
puts puts
puts "To complete the installation, execute the following:".lightblue puts "To complete the installation, execute the following:".lightblue
puts "echo 'alias pgctl=\"pg_ctl -D #{PGDATA}\"' >> ~/.bashrc && source ~/.bashrc".lightblue puts "echo 'export PGDATA=\"#{PGDATA}\"' >> ~/.bashrc && source ~/.bashrc".lightblue
puts puts
puts "To start postgres: pgctl -l logfile start".lightblue puts "To start postgres: pg_ctl -l logfile start".lightblue
puts "To stop postgres: pgctl stop".lightblue puts "To stop postgres: pg_ctl stop".lightblue
puts "Create a database: createdb <dbname>".lightblue puts "Create a database: createdb <dbname>".lightblue
puts "Connect to database: psql <dbname>".lightblue puts "Connect to database: psql <dbname>".lightblue
puts puts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment