From 5a0b590163659500f2c3f775d4ef99568510f25d Mon Sep 17 00:00:00 2001 From: anmol26s <5068843+anmol26s@users.noreply.github.com> Date: Fri, 3 Aug 2018 05:48:51 -0400 Subject: [PATCH] Added psql extension in install script --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index c1bccb1..06297cc 100644 --- a/scripts/install +++ b/scripts/install @@ -116,6 +116,8 @@ ynh_psql_test_if_first_run ynh_psql_create_user "$app" "$db_pwd" ynh_psql_execute_as_root \ "CREATE DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER $app;" +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;" #================================================= # CREATE DEDICATED USER