Skip to content

Commit

Permalink
nixos/gitlab: fix secret generation
Browse files Browse the repository at this point in the history
This line previously produced an error and an empty secret file.

(cherry picked from commit c556c72)
  • Loading branch information
brainrake authored and fpletz committed Nov 1, 2017
1 parent 528e15d commit 18c5788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/misc/gitlab.nix
Expand Up @@ -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
Expand Down

0 comments on commit 18c5788

Please sign in to comment.