Skip to content

Commit

Permalink
Revert "fix(stapel): the user cannot use custom LD_LIBRARY_PATH with …
Browse files Browse the repository at this point in the history
…shell builder"

This reverts commit 0fd4f33.

Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Aug 18, 2022
1 parent 6d418b1 commit 194d220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/build/builder/shell.go
Expand Up @@ -86,7 +86,7 @@ func (b *Shell) stage(cr container_backend.ContainerBackend, stageBuilder stage_
return err
}

container.AddRunCommands(containerTmpScriptFilePath)
container.AddServiceRunCommands(containerTmpScriptFilePath)
} else {
stageBuilder.StapelStageBuilder().AddCommands(b.stageCommands(userStageName)...)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/stapel/stapel.go
Expand Up @@ -220,7 +220,7 @@ func CreateScript(path string, commands []string) error {
}

var scriptLines []string
scriptLines = append(scriptLines, "#!")
scriptLines = append(scriptLines, fmt.Sprintf("#!%s -e", BashBinPath()))
scriptLines = append(scriptLines, "")
scriptLines = append(scriptLines, commands...)
scriptData := []byte(strings.Join(scriptLines, "\n") + "\n")
Expand Down

0 comments on commit 194d220

Please sign in to comment.