install: initial create of glrc should not assume PWD is project root

make it work regardless of how it is invoked, though we *do* assume
../conf/example.gitolite.rc exists
This commit is contained in:
Sitaram Chamarty 2010-02-10 09:24:27 +05:30 committed by Sitaram Chamarty
parent 74d70e3b9f
commit 59004b87a1

View file

@ -31,7 +31,7 @@ require "$bindir/gitolite.pm";
unless ($ENV{GL_RC}) { unless ($ENV{GL_RC}) {
# doesn't exist. Copy it across, tell user to edit it and come back # doesn't exist. Copy it across, tell user to edit it and come back
my $glrc = $ENV{HOME} . "/.gitolite.rc"; my $glrc = $ENV{HOME} . "/.gitolite.rc";
system("cp conf/example.gitolite.rc $glrc"); system("cp $bindir/../conf/example.gitolite.rc $glrc");
print "created $glrc\n"; print "created $glrc\n";
print "please edit it, change the paths if you wish to, and RERUN THIS SCRIPT\n"; print "please edit it, change the paths if you wish to, and RERUN THIS SCRIPT\n";
exit; exit;