summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-24 10:37:13 -0500
committerjim-p <jimp@pfsense.org>2011-02-24 10:37:58 -0500
commit9011a843e8d66b610ae0ee129eefa183ed036e7a (patch)
tree7fc6127b171d9e989834597a8641848f4da340b6 /etc/phpshellsessions
parent62958eae43864c873cbd92830d1a6bdb51746aa8 (diff)
downloadpfsense-9011a843e8d66b610ae0ee129eefa183ed036e7a.zip
pfsense-9011a843e8d66b610ae0ee129eefa183ed036e7a.tar.gz
If we're on nanobsd, pass -t to pkg_add to specify a different "staging area" path.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 22f8bfa..aaca2c7 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -27,9 +27,11 @@ unlink_if_exists("/tmp/config.cache");
if(!file_exists("/usr/local/bin/git")) {
echo "Cannot find git, fetching...";
- if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded"))
+ if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded")) {
$pkgtmpdir = "/usr/bin/env PKG_TMPDIR=/root/ ";
- system("{$pkgtmpdir}/usr/sbin/pkg_add -r git");
+ $pkgstaging = "-t /root/tmp/instmp.XXXXXX";
+ }
+ system("{$pkgtmpdir}/usr/sbin/pkg_add {$pkgstaging} -r git");
}
# Remove mainline if exists (older)
OpenPOWER on IntegriCloud