Skip to content

Commit

Permalink
Merge pull request #84 from kreczko/fix-empty-mount-under-scratch
Browse files Browse the repository at this point in the history
Remove MOUNT_UNDER_SCRATCH if no folders are defined
  • Loading branch information
kreczko authored Dec 13, 2017
2 parents 2f84648 + 10409df commit 19dbc1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/20_workernode.config.erb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ STARTER_JOB_ENVIRONMENT = "<%= @starter_job_environment.map{|e| e.join('=')}.joi
## Location of scratch directories
EXECUTE = <%= @pool_home %>/condor

## Writable scratch directories bind mounted in scratch, e.g. for docker / singularity containers.
<% if @mount_under_scratch_dirs.any? -%>
## Writable scratch directories bind mounted in scratch, e.g. for docker / singularity containers.
## Auto-deleted after the job exits.
MOUNT_UNDER_SCRATCH = <%= @mount_under_scratch_dirs.flatten.join(", ") %>
<% end -%>

## Make sure jobs have independent PID namespaces
<% if @use_pid_namespaces -%>
Expand Down

0 comments on commit 19dbc1d

Please sign in to comment.