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

raeburn raeburn@source.lon-capa.org
Wed, 13 May 2009 15:04:03 -0000


raeburn		Wed May 13 15:04:03 2009 EDT

  Modified files:              
    /loncom	lcinstallfile 
  Log:
  - Add version line
  - Remove: $LONCAPAHOME (not used)
  - Add comment to use lib line.
  - style 
  
  
Index: loncom/lcinstallfile
diff -u loncom/lcinstallfile:1.3 loncom/lcinstallfile:1.4
--- loncom/lcinstallfile:1.3	Tue Mar  3 12:08:07 2009
+++ loncom/lcinstallfile	Wed May 13 15:04:03 2009
@@ -1,6 +1,8 @@
 #!/usr/bin/perl
 #
-## Copyright Michigan State University Board of Trustees
+# Copyright Michigan State University Board of Trustees
+#
+# $Id: lcinstallfile,v 1.4 2009/05/13 15:04:03 raeburn Exp $
 #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
 #
@@ -22,8 +24,7 @@
 #
 #
 #
-# 2/17/2009 - Ron FOx
-# $Id:
+# 2/17/2009 - Ron Fox
 #
 # http://www.lon-capa.org/
 #
@@ -41,9 +42,7 @@
 
 use strict;
 
-my $LONCAPAHOME = '/home/httpd';	     # Adjust if loncapa isn't installed here.
-
-use lib "/home/httpd/lib/perl";
+use lib "/home/httpd/lib/perl";     # Adjust if loncapa lib isn't installed here.
 use LONCAPA;
 use LONCAPA::Configuration;
 use IO::File;
@@ -181,8 +180,7 @@
     if ($wwwid==$>) {
 	($<,$>)=($>,0);
 	($(,$))=($),0);
-    }
-    else {
+    } else {
 	# root capability is already enabled
     }
     print ("Effective uid = $>\n");
@@ -194,8 +192,7 @@
     if ($wwwid==$<) {
 	($<,$>)=($>,$<);
 	($(,$))=($),$();
-    }
-    else {
+    } else {
 	# root capability is already disabled
     }
 }