Skip to content
Snippets Groups Projects
Commit 5ec8ae00 authored by Philipp Spilger's avatar Philipp Spilger
Browse files

chore: Move chmod of spack tempdir to yashchiki script

Change-Id: I0c951d8a0c8e71c2fdc343fdccb4c83b6a2f869f
parent 2c95807c
No related branches found
No related tags found
No related merge requests found
...@@ -229,6 +229,9 @@ with tempfile.TemporaryDirectory(prefix="spack-", dir=env["TMPDIR"]) \ ...@@ -229,6 +229,9 @@ with tempfile.TemporaryDirectory(prefix="spack-", dir=env["TMPDIR"]) \
env = env | {"JOB_TMP_SPACK": temporary_directory_spack} env = env | {"JOB_TMP_SPACK": temporary_directory_spack}
# make job temp folder writable for all users (i.e., spack)
os.chmod(temporary_directory_spack, 0o777)
# singularity recipe filename defaults to temporary file # singularity recipe filename defaults to temporary file
if args.recipe_filename is not None: if args.recipe_filename is not None:
recipe_filename = args.recipe_filename recipe_filename = args.recipe_filename
......
...@@ -14,9 +14,6 @@ unset LC_NUMERIC ...@@ -14,9 +14,6 @@ unset LC_NUMERIC
unset LC_TIME unset LC_TIME
unset LC_MESSAGES unset LC_MESSAGES
# make job temp folder writable for all users (i.e., spack)
chmod 777 "${JOB_TMP_SPACK}"
# build the container (using scripts from above) # build the container (using scripts from above)
if [ -n "${YASHCHIKI_PROXY_HTTP:-}" ]; then if [ -n "${YASHCHIKI_PROXY_HTTP:-}" ]; then
export http_proxy=${YASHCHIKI_PROXY_HTTP} export http_proxy=${YASHCHIKI_PROXY_HTTP}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment