Skip to content

Commit

Permalink
Git binaries can be in a new location http://virtualmin.com/node/35642
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Jan 19, 2015
1 parent 0d64eb1 commit 1916622
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ sub feature_setup
# Setup gitweb if possible
&$virtual_server::first_print($text{'feat_gitweb'});
local $git = &has_command("git") || "git";
local $gitdir = -e "/usr/lib/git-core/git-rev-list" ? "/usr/lib/git-core" :
$git =~ /^(.*)\// ? $1 : "/usr/bin";
local $gitdir =
-e "/usr/lib/git-core/git-rev-list" ? "/usr/lib/git-core" :
-e "/usr/libexec/git-core/git-rev-list" ? "/usr/libexec/git-core" :
$git =~ /^(.*)\// ? $1 : "/usr/bin";
local $src = &find_gitweb();
local $gitweb = "$phd/git/gitweb.cgi";
&virtual_server::copy_source_dest_as_domain_user($d, $src, $gitweb);
Expand Down

0 comments on commit 1916622

Please sign in to comment.