Skip to content

Commit

Permalink
Set TMPDIR in beaker script if TMPDIR is mounted as noexec (#55)
Browse files Browse the repository at this point in the history
Co-authored-by: Logan L <[email protected]>
  • Loading branch information
Zalgo2462 and Logan L authored Jul 20, 2021
1 parent 78ce2d6 commit 22326bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions beaker
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ fi
shell-lib/docker/check_docker.sh || echo "You do not have a supported version of Docker installed."
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 ./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
Expand Down

0 comments on commit 22326bf

Please sign in to comment.