3
0
Fork 0
forked from mirrors/nixpkgs

nixos/gitlab: fix secret generation

This line previously produced an error and an empty secret file.
This commit is contained in:
Márton Boros 2017-10-24 00:07:51 +02:00 committed by Robin Gloster
parent 00c03e9003
commit c556c72a2e

View file

@ -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