Skip to content

Commit

Permalink
use absolute path for pkg-static
Browse files Browse the repository at this point in the history
  • Loading branch information
Defenso-QTH committed Nov 17, 2024
1 parent 16d7f59 commit e237b6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iocage_lib/ioc_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ def create_install_packages(self, jail_uuid, location,
# To avoid a user being prompted about pkg.
pkg_retry = 1
while True:
pkg_install = su.run(["pkg-static", "-j", jid, "install", "-q",
pkg_install = su.run(["/usr/local/sbin/pkg-static", "-j", jid, "install", "-q",
"-y", "pkg"],
stdout=su.PIPE,
stderr=su.STDOUT)
Expand Down
2 changes: 1 addition & 1 deletion iocage_lib/ioc_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def upgrade_jail(self):
if f_rel.startswith('12'):
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239498
cp = su.Popen(
['pkg-static', '-j', self.jid, 'install', '-q', '-f', '-y', 'pkg'],
['/usr/local/sbin/pkg-static', '-j', self.jid, 'install', '-q', '-f', '-y', 'pkg'],
stdout=su.PIPE, stderr=su.PIPE, env=self.upgrade_env
)
_, stderr = cp.communicate()
Expand Down
2 changes: 1 addition & 1 deletion iocage_lib/iocage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ def update(self, pkgs=False, server=None, verify=True):
'message': 'Updating pkgs...'
})
pkg_update = su.run(
['pkg-static', '-j', jid, 'update', '-q', '-f'],
['/usr/local/sbin/pkg-static', '-j', jid, 'update', '-q', '-f'],
stdout=su.PIPE, stderr=su.STDOUT
)
if pkg_update.returncode:
Expand Down

0 comments on commit e237b6b

Please sign in to comment.