summaryrefslogtreecommitdiff
path: root/postgres/bootstrap.sh
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-03-28 10:18:53 -0500
committertom barrett <spalf0@gmail.com>2019-03-29 07:42:22 -0500
commit50d92d677d6d53a83df15188c1b820b2b163e720 (patch)
tree4aa31171a8a00e8967c17b5eaf99afdf49e66724 /postgres/bootstrap.sh
parentf8c446ce74329fc5844e0fc1fd82e618242196f4 (diff)
unified entires, now use main serde lib, added another postgres test assert, simplified
Diffstat (limited to 'postgres/bootstrap.sh')
-rw-r--r--postgres/bootstrap.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/postgres/bootstrap.sh b/postgres/bootstrap.sh
index 070e104..11474a9 100644
--- a/postgres/bootstrap.sh
+++ b/postgres/bootstrap.sh
@@ -18,10 +18,13 @@ sudo -u postgres psql -c "CREATE USER $USERNAME WITH PASSWORD '$PASSWORD';"
sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $USERNAME;"
# copy configs
-cp /vagrant/postgres/*conf /etc/postgresql/9.6/main/
-cp /vagrant/postgres/.pg* /home/vagrant/
+cp /vagrant/postgres/pg_hba.conf /etc/postgresql/9.6/main/
+cp /vagrant/postgres/postgresql.conf /etc/postgresql/9.6/main/
+cp /vagrant/postgres/.pgadmin3 /home/vagrant/
+echo "localhost:5432:*:$USERNAME:$PASSWORD" > /home/vagrant/.pgpass
-# give ownership
+# give permissions
+chmod 0600 /home/vagrant/.pgpass
chown -R vagrant:vagrant /home/vagrant
# systemd