Files
blackbox/bin/blacbox_decrypt_all_files
tlimoncelli@stackexchange.com 24ee6b3923 NEW: blacbox_decrypt_all_files: A wrapper around blackbox_postdeploy
which sets up the gpg-agent.
2015-06-02 11:11:27 -04:00

21 lines
449 B
Bash
Executable File

#!/usr/bin/env bash
#
# blacbox_decrypt_all_files -- Decrypt all blackbox files.
#
# Usage:
# blacbox_decrypt_all_files [GROUP]
# GROUP is optional. If supplied, the resulting files
# are chgrp'ed to that group.
# Since this is often run in a security-critical situation, we
# force /usr/bin and /bin to the front of the PATH.
export PATH=/usr/bin:/bin:"$PATH"
set -e
eval $(gpg-agent --daemon)
exec blackbox_postdeploy.sh "$@"