summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-05-15 13:26:38 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2012-05-15 13:26:38 -0600
commitae26412f3d156989daa2196db92be2fa47a441b2 (patch)
tree47454370b576787e5e95d2e6a34107b6ce140402 /etc/phpshellsessions
parentda5b3e837a92757619b7d787f5037d271e604456 (diff)
downloadpfsense-ae26412f3d156989daa2196db92be2fa47a441b2.zip
pfsense-ae26412f3d156989daa2196db92be2fa47a441b2.tar.gz
Move git package name/URL to the configuration variables section.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/gitsync5
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)
OpenPOWER on IntegriCloud