Second try:Corrected bad pathing for default Perl base dir. Default now matches Debia...
authorChris Nighswonger <cnighswonger@foundations.edu>
Mon, 26 Nov 2007 12:38:21 +0000 (07:38 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Mon, 26 Nov 2007 15:03:40 +0000 (09:03 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>

rewrite-config.PL

index 9821390..7c2fa2a 100644 (file)
@@ -65,13 +65,13 @@ $mydomain = $myhost;
 $mydomain =~ s/^.*?\.//;
 # This is set here to rescue systems with broken DNS
 $myip = $ENV{'WEBSERVER_IP'} || inet_ntoa(scalar gethostbyname($myhost||'localhost')) || die "Cannot get our own IP address: DNS fault?";
-$prefix = $ENV{'PREFIX'} || "/usr";
+$prefix = $ENV{'PREFIX'} || "/usr/local";
 
 # These are our configuration guesses
 # Keys were extracted by
 # <grep -o '__.*__' etc/* | cut -f2 -d: | sort -u | sed -e 's/^/  "/;s/$/" => "",/'
 %configuration = (
-  "__BASE_DIR__" => ($ENV{'INSTALLSITELIB'} || sprintf($prefix."/local/lib/perl/%vd",$^V))."/koha",
+  "__BASE_DIR__" => ($ENV{'INSTALLSITELIB'} || sprintf($prefix."/lib/perl/%vd",$^V))."/koha",
   # Corrected to match Debian Perl req's.... -fbcit
   "__CGI_DIR__" => $prefix."/lib/cgi-bin/koha",
   "__LOG_DIR__" => "/var/log",