Skip to content

Commit

Permalink
update ioc_create.py - fix dataset path
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Sep 22, 2024
1 parent 8370fee commit 59261cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iocage_lib/ioc_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,10 @@ def _create_jail(self, jail_uuid, location):
if is_template:
# We have to set readonly back, since we're done with our tasks
Dataset(
os.path.join(self.iocroot, 'templates', jail_uuid)
os.path.join(
self.zpool.name, self.zpool.prefix, 'iocage',
'templates', jail_uuid
)
).set_property('readonly', 'on')

return jail_uuid
Expand Down

0 comments on commit 59261cb

Please sign in to comment.