diff -Nur -x '*.orig' -x '*.rej' smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs --- smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs 2008-09-11 14:33:45.000000000 +0200 +++ mezzanine_patched_smeserver-ocsinventory-0.1/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/97ocs 2008-10-15 21:17:39.000000000 +0200 @@ -56,7 +56,19 @@ # Which version of mod_perl we are using # For mod_perl <= 1.999_21, replace VERSION_MP by 1 # For mod_perl > 1.999_21, replace VERSION_MP by 2 - PerlSetEnv OCS_MODPERL_VERSION 1 + { + my $version = 'unknown'; + my $modPerl = `rpm -q mod_perl`; + $modPerl =~ /^mod_perl-(\d*)/; + $version = $1. + if ($version =~ /^1/){ + $version = 1; + } + elsif ($version =~ /^2/){ + $version = 2; + } + $OUT .= " PerlSetEnv OCS_MODPERL_VERSION $version\n"; + } # Master Database settings # Replace DATABASE_SERVER by hostname or ip of MySQL server for WRITE