From 01abbe07c5e8d1e13842bb3d4c650bcd694c0e74 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 18 Jun 2012 22:25:51 +0200 Subject: [PATCH] =?UTF-8?q?compatibilit=C3=A9=2064bits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/etc/httpd/conf/httpd.conf/85SOGoAccess | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess index bd1d8d4..33bc9f6 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/85SOGoAccess @@ -2,8 +2,9 @@ { $sogoStatus = $sogod{'status'} || "disabled"; $webmailStatus = $imp{'status'} || "disabled"; - $style = $sogod{'WebServerResources'} || '/usr/lib/GNUstep/SOGo/WebServerResources/'; - $style = '/usr/lib/GNUstep/SOGo/WebServerResources/' unless ( -d $style); + my $lib = ( -d '/usr/lib64' ) ? 'lib64':'lib'; + $style = $sogod{'WebServerResources'} || '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/'; + $style = '/usr/' . $lib . '/GNUstep/SOGo/WebServerResources/' unless ( -d $style); $style =~ s#$#/# unless ( $style =~ m#/$# ); $OUT = ""; @@ -24,7 +25,7 @@ SetEnvIf Host (.*) REQUEST_HOST=$1 Alias /.woa/WebServerResources/ {"$style";} Alias /SOGo.woa/WebServerResources/ {"$style";} Alias /SOGo/WebServerResources/ {"$style";} -AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2 +AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) /usr/{$lib}/GNUstep/SOGo/$1.SOGo/Resources/$2 AllowOverride None