[LON-CAPA-cvs] cvs: doc /loncapafiles sanitycheck.piml
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 26 Nov 2002 15:26:44 -0000
matthew Tue Nov 26 10:26:44 2002 EDT
Modified files:
/doc/loncapafiles sanitycheck.piml
Log:
Added specific target for mysql socket check on redhat 7.x systems.
Updated warnings to use the <TARGET /> instead of hard coded target.
Index: doc/loncapafiles/sanitycheck.piml
diff -u doc/loncapafiles/sanitycheck.piml:1.7 doc/loncapafiles/sanitycheck.piml:1.8
--- doc/loncapafiles/sanitycheck.piml:1.7 Sun Sep 22 04:32:46 2002
+++ doc/loncapafiles/sanitycheck.piml Tue Nov 26 10:26:44 2002
@@ -3,7 +3,7 @@
<!-- sanitycheck.piml -->
<!-- Scott Harrison -->
-<!-- $Id: sanitycheck.piml,v 1.7 2002/09/22 08:32:46 harris41 Exp $ -->
+<!-- $Id: sanitycheck.piml,v 1.8 2002/11/26 15:26:44 matthew Exp $ -->
<!--
@@ -34,6 +34,7 @@
<files>
<file>
<target dist='default'>/var/lib/mysql/mysql.sock</target>
+<target dist='redhat7.2 redhat7.3'>/tmp/mysql.sock</target>
<perlscript mode='fg'>
unless
(-e '<TARGET />') # Does file exist?
@@ -52,8 +53,8 @@
{
print('**** ERROR **** <TARGET /> should be owned by'.
' www.'."\n".'Try these commands to make things right:'."\n".
- 'chown www:www /var/lib/mysql/mysql.sock'."\n".
- 'chmod a-rwx,u+rwx /var/lib/mysql/mysql.sock'."\n");
+ 'chown www:www <TARGET />'."\n".
+ 'chmod a-rwx,u+rwx <TARGET />'."\n");
}
else # Check permissions on the file to make sure it is private to www.
{
@@ -64,8 +65,8 @@
print('**** ERROR **** '.
'<TARGET /> should be user "rwx" (by'.
' www).'."\n".'Try these commands to make things right:'."\n".
- 'chown www:www /var/lib/mysql/mysql.sock'."\n".
- 'chmod a-rwx,u+rwx /var/lib/mysql/mysql.sock'."\n");
+ 'chown www:www <TARGET />'."\n".
+ 'chmod a-rwx,u+rwx <TARGET />'."\n");
}
$smode=~/^..(..)$/;
$wflag=$1;
@@ -74,8 +75,8 @@
print('**** ERROR **** '.
'<TARGET /> should not be group or everybody accessible'.
'.'."\n".'Try these commands to make things right:'."\n".
- 'chown www:www /var/lib/mysql/mysql.sock'."\n".
- 'chmod a-rwx,u+rwx /var/lib/mysql/mysql.sock'."\n");
+ 'chown www:www <TARGET />'."\n".
+ 'chmod a-rwx,u+rwx <TARGET />'."\n");
}
}
}