From ca5ee0b32b616fb8fa5e7e44c74acecefab719c3 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Mon, 25 Mar 2019 07:02:41 -0500 Subject: added pgadmin --- postgres/bootstrap.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'postgres/bootstrap.sh') diff --git a/postgres/bootstrap.sh b/postgres/bootstrap.sh index 03f7eef..391aeab 100644 --- a/postgres/bootstrap.sh +++ b/postgres/bootstrap.sh @@ -7,7 +7,7 @@ apt-get upgrade -y apt-get install -y xauth # deps -apt-get install -y postgresql postgresql-client +apt-get install -y postgresql postgresql-client pgadmin3 # set up db sudo -u postgres psql -c "CREATE USER space WITH PASSWORD 'space';" @@ -15,6 +15,10 @@ sudo -u postgres psql -c "CREATE DATABASE space_db WITH OWNER space;" # copy configs cp /vagrant/postgres/*conf /etc/postgresql/9.6/main/ +cp /vagrant/postgres/.pg* /home/vagrant/ + +# give ownership +chown -R vagrant:vagrant /home/vagrant # systemd systemctl restart postgresql -- cgit v1.2.3