summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync
index 97757c7..af8c2e7 100644
--- a/etc/phpshellsessions/gitsync
+++ b/etc/phpshellsessions/gitsync
@@ -13,7 +13,10 @@ require_once("pfsense-utils.inc");
conf_mount_rw();
-$GIT_PKG = "http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/`uname -m`/packages-8.1-release/All/git-1.7.1.1.tbz"; // Either "git" or the full package URL
+$arch = php_uname("m");
+$arch = ($arch == "i386") ? "" : '/' . $arch;
+
+$GIT_PKG = "http://files.pfsense.org/packages{$arch}/8/All/git-1.8.1.3.tbz"; // Either "git" or the full package URL
$GIT_REPO = "git://github.com/bsdperimeter/pfsense.git";
$DEFAULT_BRANCH = "RELENG_2_0";
$CODIR = "/root/pfsense/";
OpenPOWER on IntegriCloud