From ae26412f3d156989daa2196db92be2fa47a441b2 Mon Sep 17 00:00:00 2001 From: Erik Fonnesbeck Date: Tue, 15 May 2012 13:26:38 -0600 Subject: Move git package name/URL to the configuration variables section. --- etc/phpshellsessions/gitsync | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'etc/phpshellsessions') diff --git a/etc/phpshellsessions/gitsync b/etc/phpshellsessions/gitsync index 9fd5b66..8f0caac 100644 --- a/etc/phpshellsessions/gitsync +++ b/etc/phpshellsessions/gitsync @@ -13,7 +13,8 @@ require_once("pfsense-utils.inc"); conf_mount_rw(); -$GIT_REPO="git://github.com/bsdperimeter/pfsense.git"; +$GIT_PKG = "git"; // Either "git" or the full package URL +$GIT_REPO = "git://github.com/bsdperimeter/pfsense.git"; $DEFAULT_BRANCH = "master"; $CODIR = "/root/pfsense/"; $GITSYNC_MERGE = "/root/.gitsync_merge"; @@ -45,7 +46,7 @@ if(!file_exists("/usr/local/bin/git")) { mkdir($pkgstagingdir); $pkgstaging = "-t {$pkgstagingdir}/instmp.XXXXXX"; } - system("{$pkgtmpdir}/usr/sbin/pkg_add {$pkgstaging} -r git"); + system("{$pkgtmpdir}/usr/sbin/pkg_add {$pkgstaging} -r {$GIT_PKG}"); } # Remove mainline if exists (older) -- cgit v1.1