summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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