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