diff options
author | jim-p <jimp@pfsense.org> | 2011-02-24 10:37:13 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-02-24 10:37:58 -0500 |
commit | 9011a843e8d66b610ae0ee129eefa183ed036e7a (patch) | |
tree | 7fc6127b171d9e989834597a8641848f4da340b6 /etc/phpshellsessions | |
parent | 62958eae43864c873cbd92830d1a6bdb51746aa8 (diff) | |
download | pfsense-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/gitsync | 6 |
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) |