From 5e8055944a5d1ae5cabe94b129c8684954d0b474 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Sun, 25 Oct 2020 23:10:15 +0530 Subject: [PATCH] Create btree_gist extension in postgres database --- debian/gitlab.postinst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debian/gitlab.postinst b/debian/gitlab.postinst index d8359a6219..1716504813 100755 --- a/debian/gitlab.postinst +++ b/debian/gitlab.postinst @@ -314,6 +314,8 @@ case "$1" in # enable the pg_trgm extension runuser -u postgres -- sh -c "psql -d gitlab_production -c \"CREATE EXTENSION IF NOT EXISTS pg_trgm;\"" + # enable the btree_gist extension + runuser -u postgres -- sh -c "psql -d gitlab_production -c \"CREATE EXTENSION IF NOT EXISTS btree_gist;\"" # Allow gitlab user to create schema runuser -u postgres -- sh -c "psql -c \"GRANT CREATE ON database gitlab_production TO ${gitlab_user};\""