[LON-CAPA-cvs] cvs: doc /loncapafiles logcleanup.piml

raeburn lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jan 2006 19:51:24 -0000


raeburn		Mon Jan 23 14:51:24 2006 EDT

  Modified files:              
    /doc/loncapafiles	logcleanup.piml 
  Log:
  Was generating spurious ERROR messages for new LON-CAPA installations.
  
  
Index: doc/loncapafiles/logcleanup.piml
diff -u doc/loncapafiles/logcleanup.piml:1.1 doc/loncapafiles/logcleanup.piml:1.2
--- doc/loncapafiles/logcleanup.piml:1.1	Fri Jul  8 11:46:40 2005
+++ doc/loncapafiles/logcleanup.piml	Mon Jan 23 14:51:24 2006
@@ -2,7 +2,7 @@
 	"http://lpml.sourceforge.net/DTD/piml.dtd">
 <!-- logcleanup.piml -->
 
-<!-- $Id: logcleanup.piml,v 1.1 2005/07/08 15:46:40 www Exp $ -->
+<!-- $Id: logcleanup.piml,v 1.2 2006/01/23 19:51:24 raeburn Exp $ -->
 
 <!--
 
@@ -34,11 +34,8 @@
 <file>
 <target dist='default'>/home/httpd/perl/logs/lonnet.perm.log</target>
 <perlscript mode='fg'>
-unless
-    (-e '<TARGET />') # Does file exist?
+if (-e '<TARGET />') # Does file exist?
   {
-    print("**** ERROR **** Missing <TARGET />\n");
-  } else {
       system('cp <TARGET /> <TARGET />.old');
       open(IN,'<TARGET />.old');
       open(OUT,'&gt;<TARGET />');