git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gitlab: don't install pg_trgm for remote hosts

Fixes #41476

commit6c54cfb280fe4f4090f622dc247b76b62fa345dc authorTeo Klestrup Röijezon <teo@nullable.se> dateTue 5 Jun 2018, 21:27 (8 years ago) parente0983f3
1 file changed+3−2
nixos/modules/services/misc/gitlab.nix+3−2
nixos/modules/services/misc/gitlab.nix+3−2
@@ -612,10 +612,11 @@ in {
612612 ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} ${config.services.postgresql.package}/bin/createdb --owner ${cfg.databaseUsername} ${cfg.databaseName}
613613 touch "${cfg.statePath}/db-created"
614614 fi
615+
616+ # enable required pg_trgm extension for gitlab
617+ ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
615618 fi
616619
617− # enable required pg_trgm extension for gitlab
618− ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
619620 # Always do the db migrations just to be sure the database is up-to-date
620621 ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
621622