Upgrade the helm charts to Arvados 2.1.0.
[arvados-k8s.git] / charts / arvados / config / postgres / create_dbs.sh
index 9f3788056128c624da24d9248b9e783bbfd0b36d..939bd93d9eb184aa28f283d4850a67881f15b185 100644 (file)
@@ -11,8 +11,11 @@ function create_user_and_database() {
   psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
       CREATE USER $user WITH CREATEDB PASSWORD '$password';
       CREATE DATABASE $database OWNER $user;
+EOSQL
+  psql -v ON_ERROR_STOP=1 "$database" --username "$POSTGRES_USER" <<-EOSQL
+      CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public;
 EOSQL
 }
 
-create_user_and_database arvados_sso_production arvados_sso pw
 create_user_and_database arvados_production arvados pw
+