version 1.1, 2003/09/30 10:06:48
|
version 1.3, 2005/07/11 15:29:46
|
Line 8
|
Line 8
|
# |
# |
# Change log: |
# Change log: |
# $Log$ |
# $Log$ |
|
# Revision 1.3 2005/07/11 15:29:46 albertel |
|
# - it's like I was drunk |
|
# |
|
# Revision 1.2 2005/07/07 22:26:52 albertel |
|
# - suse has apache not httpd |
|
# |
# Revision 1.1 2003/09/30 10:06:48 foxr |
# Revision 1.1 2003/09/30 10:06:48 foxr |
# This is a setuid script that allows the www user to issue |
# This is a setuid script that allows the www user to issue |
# /etc/init.d/httpd reload |
# /etc/init.d/httpd reload |
Line 32 $ENV{'PATH'}='/bin:/usr/bin:/usr/local/s
|
Line 38 $ENV{'PATH'}='/bin:/usr/bin:/usr/local/s
|
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; # nullify potential taints |
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; # nullify potential taints |
|
|
my $command = "/etc/init.d/httpd reload"; |
my $command = "/etc/init.d/httpd reload"; |
|
my $dist=`$perlvar{'lonDaemons'}/distprobe`; |
|
if ($dist =~ /^(suse|sles)/) { |
|
$command = "/etc/init.d/apache reload"; |
|
} |
# Do not print error messages |
# Do not print error messages |
my $noprint=1; |
my $noprint=1; |
|
|