From 7767f90971766dc36e2a2bfceadc43939bec792e Mon Sep 17 00:00:00 2001 From: Praveen Arimbrathodiyil Date: Thu, 2 Jun 2016 21:00:27 +0530 Subject: [PATCH] enable postgres extention --- debian/grantpriv.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/grantpriv.sh b/debian/grantpriv.sh index 135a676411..864bbec9b1 100755 --- a/debian/grantpriv.sh +++ b/debian/grantpriv.sh @@ -23,3 +23,8 @@ echo "Grant all privileges to $user user..." su postgres -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE template1 to $user;\"" || { exit 1 } + +# enable the pg_trgm extension +su postgres -c "psql -d $dbname -c \"CREATE EXTENSION pg_trgm;\"" || { + exit 1 + }