Handle basejails
This commit is contained in:
parent
44b877eae1
commit
fce64b2939
@ -12,7 +12,7 @@ import (
|
||||
func ShellJail(args []string) error {
|
||||
// We cant shell more than one jail bc we replace gocage execution with jexec, so there wont be no return to gocage
|
||||
if len(args) > 0 {
|
||||
cj, err := getJailFromArray(args[0], []string{"jail"}, gJails)
|
||||
cj, err := getJailFromArray(args[0], []string{"basejail", "jail"}, gJails)
|
||||
if err != nil {
|
||||
fmt.Printf("Error getting jail %s: %v\n", args[0], err)
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user