mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-19 21:41:41 +02:00
434763e19c
Fixes: 511b6ca4e1
("misc/vault-keyring-client.sh: add flock workaround")
9 lines
357 B
Bash
Executable File
9 lines
357 B
Bash
Executable File
#!/bin/sh
|
|
|
|
readonly vault_password_file_encrypted="$(dirname $0)/vault-$2-password.gpg"
|
|
|
|
# flock used to work around "gpg: decryption failed: No secret key" in tf-stage2
|
|
# would otherwise need 'auto-expand-secmem' (https://dev.gnupg.org/T3530#106174)
|
|
flock "$vault_password_file_encrypted" \
|
|
gpg --batch --decrypt --quiet "$vault_password_file_encrypted"
|