From 569a6be62adfb06cad5ed3267448aa2f122f8bf1 Mon Sep 17 00:00:00 2001 From: Logan Lembke Date: Tue, 20 Jul 2021 11:21:26 -0600 Subject: [PATCH] Set TMPDIR in beaker script if TMPDIR is mounted as noexec (#43) Co-authored-by: Logan L --- espy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/espy.sh b/espy.sh index 04a1927..f974fdb 100755 --- a/espy.sh +++ b/espy.sh @@ -15,6 +15,10 @@ fi scripts/shell-lib/docker/check_docker.sh || echo "You do not have a supported version of Docker installed." scripts/shell-lib/docker/check_docker-compose.sh || echo "You do not have a supported version of Docker-Compose installed." +# Ensure docker-compose can write to a temporary directory and execute scripts there +source scripts/shell-lib/acmlib.sh +require_executable_tmp_dir + # TMPDIR is erased even if -E is passed to sudo. https://serverfault.com/questions/478741/sudo-does-not-preserve-tmpdir # Need to explicitly pass tmpdir in if it exists. if [ -n "$TMPDIR" ]; then