From f6db31926adca9893a97213ec0b4a9fa8675c165 Mon Sep 17 00:00:00 2001 From: Sergio Oliveira Date: Fri, 23 Jan 2015 09:38:20 -0200 Subject: [PATCH] Actually run the alter user --- vagrant/centos.sh | 2 +- vagrant/ubuntu.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vagrant/centos.sh b/vagrant/centos.sh index 276ca6a..599ab65 100755 --- a/vagrant/centos.sh +++ b/vagrant/centos.sh @@ -53,7 +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;" +echo "ALTER USER colab CREATEDB;" | sudo -u postgres -i psql 2> /dev/null ### 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 6f72995..2f5cfd5 100755 --- a/vagrant/ubuntu.sh +++ b/vagrant/ubuntu.sh @@ -14,7 +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;" +echo "ALTER USER colab CREATEDB;" | sudo -u postgres -i psql 2> /dev/null #i## Create colab DB in PostgreSQL sudo -u postgres -i createdb --owner=colab colab 2> /dev/null | echo -- libgit2 0.21.2