about summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-08-04 12:08:44 +0200
committerGitHub <noreply@github.com>2022-08-04 12:08:44 +0200
commit3125eef5707c3221f231d0130e1ee50b9157b326 (patch)
tree412c9b088cb8af66aac36d6731c7752f3c632970 /nixos/modules/services/continuous-integration
parentf53dff8a0fc570bb053b1fa911119730056ac6f3 (diff)
parent87c66cbb56b28afb543f0fa560bd8cfef6bfece5 (diff)
Merge pull request #182713 from SuperSandro2000/hydra-runuser-2
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r--nixos/modules/services/continuous-integration/hydra/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/continuous-integration/hydra/default.nix b/nixos/modules/services/continuous-integration/hydra/default.nix
index f4cdf690bb3aa..7159ec287fc86 100644
--- a/nixos/modules/services/continuous-integration/hydra/default.nix
+++ b/nixos/modules/services/continuous-integration/hydra/default.nix
@@ -320,7 +320,7 @@ in
           ${optionalString haveLocalDB ''
             if ! [ -e ${baseDir}/.db-created ]; then
               runuser -u ${config.services.postgresql.superUser} ${config.services.postgresql.package}/bin/createuser hydra
-              runuser -u ${config.services.postgresql.superUser} ${config.services.postgresql.package}/bin/createdb -O hydra hydra
+              runuser -u ${config.services.postgresql.superUser} ${config.services.postgresql.package}/bin/createdb -- -O hydra hydra
               touch ${baseDir}/.db-created
             fi
             echo "create extension if not exists pg_trgm" | runuser -u ${config.services.postgresql.superUser} -- ${config.services.postgresql.package}/bin/psql hydra