Skip to content

Commit

Permalink
Merge pull request #21 from Defenso-QTH/fix-pkg
Browse files Browse the repository at this point in the history
Run pkg as interactive
  • Loading branch information
dgeo authored Sep 10, 2024
2 parents 04133bd + 566a60f commit 1d11245
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 1d11245

Please sign in to comment.