Skip to content

Commit

Permalink
Run pkg as interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 9, 2024
1 parent 9c08450 commit 566a60f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iocage_lib/iocage.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,13 +910,14 @@ def exec(
raise e
return

if interactive:
if interactive or pkg:
ioc_exec.InteractiveExec(
command,
path,
uuid=uuid,
host_user=host_user,
jail_user=jail_user,
unjailed=pkg,
skip=True
)
return
Expand All @@ -928,7 +929,7 @@ def exec(
uuid=uuid,
host_user=host_user,
jail_user=jail_user,
unjailed=pkg,
unjailed=unjailed,
su_env=su_env
) as _exec:
output = ioc_common.consume_and_log(
Expand Down

0 comments on commit 566a60f

Please sign in to comment.