From 9dc3311ff7c3c81bc6391a3bca3694dd06d26a73 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Nov 2013 16:15:53 +0100 Subject: [PATCH] hydra-module.nix: Don't create an admin user It's the user's job to create users with the appropriate roles. --- hydra-module.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hydra-module.nix b/hydra-module.nix index 1b8d8663..e5d12c32 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -194,12 +194,6 @@ in mv ${baseDir}/.pgpass-tmp ${baseDir}/.pgpass fi ${pkgs.shadow}/bin/su hydra -c ${cfg.hydra}/bin/hydra-init - ${config.services.postgresql.package}/bin/psql hydra << EOF - BEGIN; - INSERT INTO Users(userName, emailAddress, password) VALUES ('admin', '${cfg.notificationSender}', '$(echo -n $pass | sha1sum | cut -c1-40)'); - INSERT INTO UserRoles(userName, role) values('admin', 'admin'); - COMMIT; - EOF ''; serviceConfig.Type = "oneshot"; serviceConfig.RemainAfterExit = true;