Browse Source

installer image: use tmp file for vaultpass

Luke Meyer 7 năm trước cách đây
mục cha
commit
8b299f026c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      images/installer/root/usr/local/bin/run

+ 1 - 1
images/installer/root/usr/local/bin/run

@@ -39,7 +39,7 @@ if [[ "$ALLOW_ANSIBLE_CONNECTION_LOCAL" = false ]]; then
 fi
 
 if [[ -v VAULT_PASS ]]; then
-  VAULT_PASS_FILE=.vaultpass
+  VAULT_PASS_FILE="$(mktemp)"
   echo ${VAULT_PASS} > ${VAULT_PASS_FILE}
   VAULT_PASS_ARG="--vault-password-file ${VAULT_PASS_FILE}"
 fi