[LON-CAPA-cvs] cvs: loncom / apachereload

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 07 Jul 2005 22:26:55 -0000


albertel		Thu Jul  7 18:26:55 2005 EDT

  Modified files:              
    /loncom	apachereload 
  Log:
  - suse has apache not httpd
  
  
Index: loncom/apachereload
diff -u loncom/apachereload:1.1 loncom/apachereload:1.2
--- loncom/apachereload:1.1	Tue Sep 30 06:06:48 2003
+++ loncom/apachereload	Thu Jul  7 18:26:52 2005
@@ -8,6 +8,9 @@
 #
 #  Change log:
 #   $Log: apachereload,v $
+#   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
 #   This is a setuid script that allows the www user to issue
 #   /etc/init.d/httpd reload
@@ -32,7 +35,10 @@
 delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; # nullify potential taints
 
 my $command = "/etc/init.d/httpd reload";
-
+my $dist=`$perlvar{'lonDaemons'}/distprobe`;
+if ($dist =~ /^(suse|sles)/) {
+    $command = "/etc/init.d/httpd reload";
+}
 # Do not print error messages
 my $noprint=1;