diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/phpshellsessions/gitsync | 5 |
1 files changed, 3 insertions, 2 deletions
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) |