mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-12-08 17:36:24 +00:00
Ensure grants for user gitlab on schema public are correctly set
This commit is contained in:
parent
54df830588
commit
cf154bdf1f
@ -252,6 +252,11 @@ gitlab_uninstall_unused_database_client() {
|
||||
fi
|
||||
}
|
||||
|
||||
gitlab_apply_dbms_fixes(){
|
||||
echo "- Ensure grants for user gitlab on schema public are correctly set"
|
||||
PGPASSWORD=${DB_PASS} psql -h "${DB_HOST}" -p "${DB_PORT}" -U "${DB_USER}" -d "${DB_NAME}" -Atw -c "GRANT ALL ON SCHEMA public TO gitlab;"
|
||||
}
|
||||
|
||||
gitlab_configure_database() {
|
||||
echo -n "Configuring gitlab::database"
|
||||
|
||||
@ -259,6 +264,7 @@ gitlab_configure_database() {
|
||||
gitlab_check_database_connection
|
||||
gitlab_generate_postgresqlrc
|
||||
gitlab_uninstall_unused_database_client
|
||||
gitlab_apply_dbms_fixes
|
||||
|
||||
update_template ${GITLAB_DATABASE_CONFIG} \
|
||||
DB_ENCODING \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user