Fix poststart

This commit is contained in:
yo 2022-07-14 11:11:23 +02:00
parent bf1037c1d3
commit e1786a4d08

View File

@ -1413,7 +1413,7 @@ func StartJail(args []string) {
// TODO: Execute Exec_poststart // TODO: Execute Exec_poststart
if len(cj.Config.Exec_poststart) > 0 { if len(cj.Config.Exec_poststart) > 0 {
fmt.Printf(" > Execute post-start:\n") 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) out, err := executeCommand(cmd)
if err != nil && len(out) > 0 { if err != nil && len(out) > 0 {
fmt.Printf("Error: %v: %s\n", err, out) fmt.Printf("Error: %v: %s\n", err, out)