Skip to content

Commit

Permalink
Merge pull request #14 from interTwin-eu/fix_sh
Browse files Browse the repository at this point in the history
Mount command .sh (alway mount command)
  • Loading branch information
dciangot authored Jul 5, 2024
2 parents 72cd18c + 0de4696 commit 0883bc3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/slurm/aux.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,10 @@ func prepareMounts(

}

if container.Command != nil {
mountedData += "--bind " + config.DataRootFolder + podData.Pod.Namespace + "-" + string(podData.Pod.UID) + "/" + "command_" + container.Name + ".sh" +
":" + "/tmp/" + "command_" + container.Name + ".sh "
mountedData += "--bind " + config.DataRootFolder + podData.Pod.Namespace + "-" + string(podData.Pod.UID) + "/" + "args_" + container.Name + ".sh" +
":" + "/tmp/" + "args_" + container.Name + ".sh"
}

if last := len(mountedData) - 1; last >= 0 && mountedData[last] == ',' {
mountedData = mountedData[:last]
Expand Down

0 comments on commit 0883bc3

Please sign in to comment.