浏览代码

installer image: use tmp file for vaultpass

Luke Meyer 7 年之前
父节点
当前提交
8b299f026c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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