From 7ef2e8b988256d05fb39ff88df34499efaebb518 Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Thu, 31 Jan 2019 13:07:03 -0600 Subject: [PATCH] (multinode) Make workspace persist reboot - Move the default temp location to /var/tmp so that gate workspace directories persist across reboots Change-Id: Ic11d163c3aba36a08f42bd1739003446aed3a0ce --- tools/multi_nodes_gate/airship_gate/lib/config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/multi_nodes_gate/airship_gate/lib/config.sh b/tools/multi_nodes_gate/airship_gate/lib/config.sh index bd1eeb41..1bb49ad0 100644 --- a/tools/multi_nodes_gate/airship_gate/lib/config.sh +++ b/tools/multi_nodes_gate/airship_gate/lib/config.sh @@ -1,5 +1,5 @@ #!/bin/bash -export TEMP_DIR=${TEMP_DIR:-$(mktemp -d)} +export TEMP_DIR=${TEMP_DIR:-$(mktemp -d -p /var/tmp)} export NAMEKEY_FILE=${NAMEKEY_FILE:-"$HOME/.airship_key"} export DEFINITION_DEPOT="${TEMP_DIR}/site_yaml/" export RENDERED_DEPOT="${TEMP_DIR}/rendered_yaml/"