mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/gitlab: fix secret generation
This line previously produced an error and an empty secret file.
This commit is contained in:
parent
00c03e9003
commit
c556c72a2e
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ in {
|
||||||
rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
|
rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
|
||||||
mkdir -p ${cfg.statePath}/config
|
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
|
# The uploads directory is hardcoded somewhere deep in rails. It is
|
||||||
# symlinked in the gitlab package to /run/gitlab/uploads to make it
|
# symlinked in the gitlab package to /run/gitlab/uploads to make it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue