feat: os-dependent default entrypoint
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -132,6 +132,10 @@ func addRoute(res http.ResponseWriter, req *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if route.Entrypoint == "" {
|
||||
route.Entrypoint = defaultEntrypoint
|
||||
}
|
||||
|
||||
route.ID = id.String()
|
||||
|
||||
created := funcAdd(route)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// +build !windows
|
||||
|
||||
package control
|
||||
|
||||
var defaultEntrypoint = "/bin/sh -c"
|
||||
@@ -0,0 +1,3 @@
|
||||
package control
|
||||
|
||||
var defaultEntrypoint = "cmd.exe /c"
|
||||
Reference in New Issue
Block a user