From 81d42b1b6d5682248cb14d3c8f86cbbed63f0469 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Thu, 15 Jan 2015 18:28:39 -0200 Subject: [PATCH] Allowing colab user to create database in dev/test --- vagrant/centos.sh | 1 + vagrant/ubuntu.sh | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/vagrant/centos.sh b/vagrant/centos.sh index d67a247..276ca6a 100755 --- a/vagrant/centos.sh +++ b/vagrant/centos.sh @@ -53,6 +53,7 @@ fi ### Create colab user in PostgreSQL echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo +echo "ALTER USER colab CREATEDB;" ### Create colab DB in PostgreSQL sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo diff --git a/vagrant/ubuntu.sh b/vagrant/ubuntu.sh index 7436d40..6f72995 100755 --- a/vagrant/ubuntu.sh +++ b/vagrant/ubuntu.sh @@ -14,6 +14,7 @@ chown vagrant:vagrant /etc/colab ### Create colab user in PostgreSQL echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo +echo "ALTER USER colab CREATEDB;" #i## Create colab DB in PostgreSQL sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo -- libgit2 0.21.2