diff --git a/deployment/decrypt-secrets.sh b/deployment/decrypt-secrets.sh index 4453b8b..e8664ef 100755 --- a/deployment/decrypt-secrets.sh +++ b/deployment/decrypt-secrets.sh @@ -11,6 +11,7 @@ if [ "$MD5_CHECKSUM" = "" ]; then fi SECRETS_CIPHERTEXT_FILE=secrets.enc +SECRETS_PLAINTEXT_FILE=/tmp/secrets TMP_FILE=`mktemp` POD_NAME_SUFFIX=`date +%s` @@ -36,6 +37,7 @@ if [ "$MD5_CHECKSUM" != "$CALCULATED_CHECKSUM" ]; then exit 1 fi -mv $TMP_FILE /tmp/$SECRETS_PLAINTEXT_FILE +cat $TMP_FILE +mv $TMP_FILE $SECRETS_PLAINTEXT_FILE