Initial check in
This commit is contained in:
committed by
tlimoncelli@stackexchange.com
parent
e9a5bfab26
commit
73396c8a4d
26
bin/blackbox_postdeploy.sh
Executable file
26
bin/blackbox_postdeploy.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# blackbox_postdeploy.sh -- Decrypt all blackbox files.
|
||||
#
|
||||
|
||||
: ${BASEDIR:=/etc/puppet} ;
|
||||
: ${CHGRP:=chgrp} ;
|
||||
|
||||
cd "$BASEDIR"
|
||||
export PATH=/usr/bin:/bin:"$BASEDIR"/bin:"$PATH"
|
||||
|
||||
source blackbox_common.sh
|
||||
set -e
|
||||
|
||||
prepare_keychain
|
||||
|
||||
# Decrypt:
|
||||
echo '========== Decrypting new/changed files: START'
|
||||
while read unencrypted_file; do
|
||||
encrypted_file=$(get_encrypted_filename "$unencrypted_file")
|
||||
decrypt_file_overwrite "$encrypted_file" "$unencrypted_file"
|
||||
chmod g+r,o-rwx "$unencrypted_file"
|
||||
$CHGRP puppet "$unencrypted_file"
|
||||
done <"$BB_FILES"
|
||||
echo '========== Decrypting new/changed files: DONE'
|
||||
Reference in New Issue
Block a user