Commit 81d42b1b6d5682248cb14d3c8f86cbbed63f0469

Authored by Sergio Oliveira
1 parent c482ce47

Allowing colab user to create database in dev/test

Showing 2 changed files with 2 additions and 0 deletions   Show diff stats
vagrant/centos.sh
@@ -53,6 +53,7 @@ fi @@ -53,6 +53,7 @@ fi
53 53
54 ### Create colab user in PostgreSQL 54 ### Create colab user in PostgreSQL
55 echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo 55 echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo
  56 +echo "ALTER USER colab CREATEDB;"
56 57
57 ### Create colab DB in PostgreSQL 58 ### Create colab DB in PostgreSQL
58 sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo 59 sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo
vagrant/ubuntu.sh
@@ -14,6 +14,7 @@ chown vagrant:vagrant /etc/colab @@ -14,6 +14,7 @@ chown vagrant:vagrant /etc/colab
14 14
15 ### Create colab user in PostgreSQL 15 ### Create colab user in PostgreSQL
16 echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo 16 echo "CREATE USER colab WITH PASSWORD 'colab';" | sudo -u postgres -i psql 2> /dev/null || echo
  17 +echo "ALTER USER colab CREATEDB;"
17 18
18 #i## Create colab DB in PostgreSQL 19 #i## Create colab DB in PostgreSQL
19 sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo 20 sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo