mirror of
https://github.com/ryantm/agenix.git
synced 2024-12-22 07:38:31 +03:00
Do not try to create /run/agenix in when installing secrets
That is a job for agenixMountSecrets, which should have already created a symlink there so the directory creation attempt would fail anyway.
This commit is contained in:
parent
26edd03a5a
commit
35ecba5704
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ let
|
|||
echo "decrypting '${secretType.file}' to '$_truePath'..."
|
||||
TMP_FILE="$_truePath.tmp"
|
||||
mkdir -p "$(dirname "$_truePath")"
|
||||
mkdir -p "$(dirname "${secretType.path}")"
|
||||
[ "${secretType.path}" != "/run/agenix/${secretType.name}" ] && mkdir -p "$(dirname "${secretType.path}")"
|
||||
(
|
||||
umask u=r,g=,o=
|
||||
LANG=${config.i18n.defaultLocale} ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}"
|
||||
|
|
Loading…
Reference in a new issue