--- loncom/apachereload 2005/10/31 16:13:45 1.4 +++ loncom/apachereload 2006/01/27 21:21:05 1.5 @@ -3,7 +3,7 @@ # # apachereload - setuid script that reloads the apache daemon. # -# $Id: apachereload,v 1.4 2005/10/31 16:13:45 albertel Exp $ +# $Id: apachereload,v 1.5 2006/01/27 21:21:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -46,7 +46,8 @@ use lib '/home/httpd/lib/perl/'; use LONCAPA::Configuration; my %perlvar= %{&LONCAPA::Configuration::read_conf('loncapa.conf')}; -my $dist=`$perlvar{'lonDaemons'}/distprobe`; +my $execdir = ($perlvar{'lonDaemons'} =~/(.*)/); +my $dist=`$execdir/distprobe`; if ($dist =~ /^(suse|sles)/) { $command = "/etc/init.d/apache reload"; } 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.