Fix poststart
This commit is contained in:
parent
bf1037c1d3
commit
e1786a4d08
@ -1413,7 +1413,7 @@ func StartJail(args []string) {
|
||||
// TODO: Execute Exec_poststart
|
||||
if len(cj.Config.Exec_poststart) > 0 {
|
||||
fmt.Printf(" > Execute post-start:\n")
|
||||
cmd := fmt.Sprintf("/usr/sbin/setfib %s /usr/sbin/jexec %d %s", cj.Config.Exec_fib, cj.JID, cj.Config.Exec_poststart)
|
||||
cmd := fmt.Sprintf("%s", cj.Config.Exec_poststart)
|
||||
out, err := executeCommand(cmd)
|
||||
if err != nil && len(out) > 0 {
|
||||
fmt.Printf("Error: %v: %s\n", err, out)
|
||||
|
Loading…
x
Reference in New Issue
Block a user