nixos/gitlab: fix hard-coded database name
commit29e80bde404b5ed126fdc2f32e794556506a9cc9
authorMárton Boros <martonboros@gmail.com>
dateMon 23 Oct 2017, 23:27 (9 years ago)
parentb8a7c45
nixos/modules/services/misc/gitlab.nix+1−1
@@ -619,7 +619,7 @@ in {
619619 fi
620620
621621 # enable required pg_trgm extension for gitlab
622− ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
622+ ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
623623 # Always do the db migrations just to be sure the database is up-to-date
624624 ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
625625