summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-02-23 14:09:39 -0500
committerjim-p <jimp@pfsense.org>2011-02-23 14:09:39 -0500
commit003d1b3dab740c4ebcd6fcaf2f9b082f813f37fc (patch)
tree1965a5f1f1cdf1fed37d5bcfc34da2ba231d7134 /etc/phpshellsessions
parent633ef55166d029f7e78580293e01b69e30e48f44 (diff)
downloadpfsense-003d1b3dab740c4ebcd6fcaf2f9b082f813f37fc.zip
pfsense-003d1b3dab740c4ebcd6fcaf2f9b082f813f37fc.tar.gz
And one more place for PKG_TMPDIR... just in case.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 4b865c5..22f8bfa 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -27,7 +27,9 @@ unlink_if_exists("/tmp/config.cache");
if(!file_exists("/usr/local/bin/git")) {
echo "Cannot find git, fetching...";
- system("pkg_add -r git");
+ if (($g['platform'] == "nanobsd") || ($g['platform'] == "embedded"))
+ $pkgtmpdir = "/usr/bin/env PKG_TMPDIR=/root/ ";
+ system("{$pkgtmpdir}/usr/sbin/pkg_add -r git");
}
# Remove mainline if exists (older)
OpenPOWER on IntegriCloud