Skip to content

Commit

Permalink
update ioc_start.py - use abspath for symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 27, 2024
1 parent 1efa8ef commit 4ac2892
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iocage_lib/ioc_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,10 @@ def __start_jail__(self):
os_path = f"{self.path}/root/dev/log"

if not os.path.isfile(os_path) and not os.path.islink(os_path):
os.symlink("../var/run/log", os_path)
os.symlink(
os.path.abspath(os.path.join(os_path, "../var/run/log")),
os_path
)

vnet_err = self.start_network(vnet, nat)

Expand Down

0 comments on commit 4ac2892

Please sign in to comment.