Allow gitlab user to create schema
This commit is contained in:
parent
f63a04369f
commit
2042d04fcb
1 changed files with 3 additions and 0 deletions
3
debian/gitlab.postinst
vendored
3
debian/gitlab.postinst
vendored
|
@ -314,6 +314,9 @@ 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;\""
|
||||
|
||||
# Allow gitlab user to create schema
|
||||
runuser -u postgres -- sh -c "psql -c \"GRANT CREATE ON database gitlab_production TO ${gitlab_user};\""
|
||||
|
||||
# Remove Gemfile.lock if present
|
||||
rm -f ${gitlab_data_dir}/Gemfile.lock
|
||||
|
||||
|
|
Loading…
Reference in a new issue