mirror of
https://github.com/ryantm/agenix.git
synced 2024-09-11 06:05:38 +03:00
commit
20a5c3d256
@ -19,7 +19,10 @@ let
|
|||||||
echo "decrypting ${secretType.file} to ${secretType.path}..."
|
echo "decrypting ${secretType.file} to ${secretType.path}..."
|
||||||
TMP_FILE="${secretType.path}.tmp"
|
TMP_FILE="${secretType.path}.tmp"
|
||||||
mkdir -p $(dirname ${secretType.path})
|
mkdir -p $(dirname ${secretType.path})
|
||||||
(umask 0400; LANG=${config.i18n.defaultLocale} ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}")
|
(
|
||||||
|
umask u=r,g=,o=
|
||||||
|
LANG=${config.i18n.defaultLocale} ${ageBin} --decrypt ${identities} -o "$TMP_FILE" "${secretType.file}"
|
||||||
|
)
|
||||||
chmod ${secretType.mode} "$TMP_FILE"
|
chmod ${secretType.mode} "$TMP_FILE"
|
||||||
chown ${secretType.owner}:${secretType.group} "$TMP_FILE"
|
chown ${secretType.owner}:${secretType.group} "$TMP_FILE"
|
||||||
mv -f "$TMP_FILE" '${secretType.path}'
|
mv -f "$TMP_FILE" '${secretType.path}'
|
||||||
|
Loading…
Reference in New Issue
Block a user