From c0282c12642f4b37c9af559d0da81bb262bf3451 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 4 Oct 2016 07:12:09 +0200 Subject: [PATCH] rc: switch to static binary for recovery --- src/etc/rc.recover | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/rc.recover b/src/etc/rc.recover index 1e6d969dd..3456cf882 100755 --- a/src/etc/rc.recover +++ b/src/etc/rc.recover @@ -171,7 +171,7 @@ function recover_ports() 'post-install' ); - exec('/usr/sbin/pkg query -e \'%#U > 0 || %#G > 0\' %n', $pkgs); + exec('/usr/local/sbin/pkg-static query -e \'%#U > 0 || %#G > 0\' %n', $pkgs); if ($pkgs[0] == '') { return; @@ -181,7 +181,7 @@ function recover_ports() $tempfile = fopen($tempname, 'w'); foreach ($pkgs as $pkg) { - $raw = exec('/usr/sbin/pkg info --raw --raw-format json-compact ' . $pkg); + $raw = exec('/usr/local/sbin/pkg-static info --raw --raw-format json-compact ' . $pkg); $info = json_decode($raw, true); foreach($actions as $action) { if (!isset($info['scripts'][$action])) {