Skip to content

Commit 22326bf

Browse files
Zalgo2462Logan L
and
Logan L
authored
Set TMPDIR in beaker script if TMPDIR is mounted as noexec (#55)
Co-authored-by: Logan L <logan@bhis.co>
1 parent 78ce2d6 commit 22326bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

beaker

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ fi
1515
shell-lib/docker/check_docker.sh || echo "You do not have a supported version of Docker installed."
1616
shell-lib/docker/check_docker-compose.sh || echo "You do not have a supported version of Docker-Compose installed."
1717

18+
# Ensure docker-compose can write to a temporary directory and execute scripts there
19+
source ./shell-lib/acmlib.sh
20+
require_executable_tmp_dir
21+
1822
# TMPDIR is erased even if -E is passed to sudo. https://serverfault.com/questions/478741/sudo-does-not-preserve-tmpdir
1923
# Need to explicitly pass tmpdir in if it exists.
2024
if [ -n "$TMPDIR" ]; then

0 commit comments

Comments
 (0)