diff options
author | Márton Boros <martonboros@gmail.com> | 2017-10-24 00:07:51 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-10-30 12:49:27 +0100 |
commit | c556c72a2efda33c6ef00ff376bd5596f6eca817 (patch) | |
tree | e66ad214fc805bf0d584e4fd1d9a1cd8a891c08a /nixos/modules | |
parent | 00c03e90038a4935da17fa0d5f5ca9d08fc19676 (diff) | |
download | nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar.gz nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar.bz2 nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar.lz nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar.xz nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.tar.zst nixpkgs-c556c72a2efda33c6ef00ff376bd5596f6eca817.zip |
nixos/gitlab: fix secret generation
This line previously produced an error and an empty secret file.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index e0fae335d03..7b2b40e5923 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -572,7 +572,7 @@ in { rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks mkdir -p ${cfg.statePath}/config - tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 > ${cfg.statePath}/config/gitlab_shell_secret + ${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret # The uploads directory is hardcoded somewhere deep in rails. It is # symlinked in the gitlab package to /run/gitlab/uploads to make it |