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
|
@ -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…
Reference in New Issue