diff options
author | jim-p <jimp@pfsense.org> | 2011-02-23 14:07:21 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-23 14:07:21 -0500 |
commit | 633ef55166d029f7e78580293e01b69e30e48f44 (patch) | |
tree | 508eeae9bf27f1d0677963337668a9663a074b56 /etc/inc/pkg-utils.inc | |
parent | c99c1e4ee930a808a5972ac812f6883b5daeb19a (diff) | |
download | pfsense-633ef55166d029f7e78580293e01b69e30e48f44.zip pfsense-633ef55166d029f7e78580293e01b69e30e48f44.tar.gz |
Set PKG_TMPDIR here too, to help nanobsd pkg installs.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 3a2984a..7cb4154 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -498,8 +498,10 @@ function pkg_fetch_recursive($pkgname, $filename, $dependlevel = 0, $base_url = } } } + if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded")) + $pkgtmpdir = "/usr/bin/env PKG_TMPDIR=/root/ "; $pkgaddout = ""; - exec("/usr/sbin/pkg_add -fv {$fetchto} 2>&1", $pkgaddout); + exec("{$pkgtmpdir}/usr/sbin/pkg_add -fv {$fetchto} 2>&1", $pkgaddout); pkg_debug($pkgname . " " . print_r($pkgaddout, true) . "\npkg_add successfully completed.\n"); return true; |