From 24ee6b39238e9603fca2ff242afaf02991fccf88 Mon Sep 17 00:00:00 2001 From: "tlimoncelli@stackexchange.com" Date: Tue, 2 Jun 2015 11:11:27 -0400 Subject: [PATCH] NEW: blacbox_decrypt_all_files: A wrapper around blackbox_postdeploy which sets up the gpg-agent. --- bin/blacbox_decrypt_all_files | 20 ++++++++++++++++++++ bin/blackbox_postdeploy | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 bin/blacbox_decrypt_all_files diff --git a/bin/blacbox_decrypt_all_files b/bin/blacbox_decrypt_all_files new file mode 100755 index 0000000..c9605bb --- /dev/null +++ b/bin/blacbox_decrypt_all_files @@ -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 "$@" diff --git a/bin/blackbox_postdeploy b/bin/blackbox_postdeploy index bf9b0d3..2638964 100755 --- a/bin/blackbox_postdeploy +++ b/bin/blackbox_postdeploy @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# blackbox_postdeploy.sh -- Decrypt all blackbox files. +# blackbox_postdeploy -- Decrypt all blackbox files. # # Usage: