From 24b4e789bec97b71a53a9d3135c0473675f15756 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 13 Sep 2018 23:17:21 +1000 Subject: [PATCH] db init script --- ops/init_db.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 ops/init_db.sh diff --git a/ops/init_db.sh b/ops/init_db.sh new file mode 100755 index 00000000..54523a08 --- /dev/null +++ b/ops/init_db.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +sudo apt-get install -y postgresql postgresql-contrib +sudo service postgresql start +sudo -u postgres createdb cryps +sudo -u echo "craftbeer" > .pgpass +sudo -u postgres createuser --encrypted cryps \ No newline at end of file