NEW: blacbox_decrypt_all_files: A wrapper around blackbox_postdeploy
which sets up the gpg-agent.
This commit is contained in:
20
bin/blacbox_decrypt_all_files
Executable file
20
bin/blacbox_decrypt_all_files
Executable file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/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 "$@"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# blackbox_postdeploy.sh -- Decrypt all blackbox files.
|
# blackbox_postdeploy -- Decrypt all blackbox files.
|
||||||
#
|
#
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
|
|||||||
Reference in New Issue
Block a user