From 787a405ad78da9cab159c572ef504d51d5513262 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 29 Jan 2015 21:37:20 -0800 Subject: [PATCH] Config.pm: add note about putting $webroot under $basedir It's safe but changes the semantics a bit. --- Girocco/Config.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index 9958893..61f85f0 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -292,6 +292,12 @@ our $jailreporoot = "srv/git"; our $chroot = "/home/repo/j"; # The gitweb files web directory (corresponds to $gitwebfiles) +# Note that it is safe to place this under $basedir since it's set up after +# $basedir is completely replaced during install time. Be WARNED, however, +# that normally the install process only adds/replaces things in $webroot, +# but if $webroot is under $basedir then it will be completely removed and +# rebuilt each time "make install" is run. This will make gitweb/git-browser +# web services very briefly unavailable while this is happening. our $webroot = "/home/repo/WWW"; # The CGI-enabled web directory (corresponds to $gitweburl and $webadmurl) -- 2.11.4.GIT