version 1.11, 2002/12/13 23:15:50
|
version 1.13, 2003/02/03 18:03:51
|
Line 1
|
Line 1
|
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
<!DOCTYPE piml PUBLIC "-//TUX/DTD piml 1.0 Final//EN" |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
"http://lpml.sourceforge.net/DTD/piml.dtd"> |
<!-- sanitycheck.piml --> |
<!-- sanitycheck.piml --> |
<!-- Scott Harrison --> |
|
|
|
<!-- $Id$ --> |
<!-- $Id$ --> |
|
|
Line 33 http://www.lon-capa.org/
|
Line 32 http://www.lon-capa.org/
|
<targetroot>/</targetroot> |
<targetroot>/</targetroot> |
<files> |
<files> |
<file> |
<file> |
|
<target dist='default'>/etc/hosts</target> |
|
<perlscript mode='fg'> |
|
unless |
|
(-e '<TARGET />') # Does file exist? |
|
{ |
|
print("**** ERROR **** Missing <TARGET />\n"); |
|
} |
|
else |
|
{ |
|
my $numentries = `grep -v '^#' <TARGET /> | grep -c '[[:alpha:]]'`; |
|
if ($numentries == 1) |
|
{ |
|
print("**** ERROR **** Malformatted <TARGET />\n"); |
|
print("<TARGET /> typically should have at least two entries, ". |
|
"e.g.:\n"); |
|
print("127.0.0.1 localhost.localdomain localhost\n"); |
|
print("35.8.63.26 s16.lite.msu.edu s16\n"); |
|
print("The <TARGET /> file on your machine looks like it was \n". |
|
"messed up due to a common bug with RedHat installations.\n". |
|
"(This weird bug is RedHat's fault, not LON-CAPA's.)\n"); |
|
print("Please read the man pages about \"hosts\" and fix your\n". |
|
"<TARGET /> file.\n"); |
|
} |
|
} |
|
</perlscript> |
|
</file> |
|
<file> |
<target dist='default'>/var/lib/mysql/mysql.sock</target> |
<target dist='default'>/var/lib/mysql/mysql.sock</target> |
<perlscript mode='fg'> |
<perlscript mode='fg'> |
unless |
unless |