[LON-CAPA-cvs] cvs: doc /loncapafiles modify_config_files.piml
matthew
lon-capa-cvs@mail.lon-capa.org
Mon, 23 Aug 2004 19:48:48 -0000
matthew Mon Aug 23 15:48:48 2004 EDT
Modified files:
/doc/loncapafiles modify_config_files.piml
Log:
Detect return value from modify_config_files.pl and issue a warning
only if the MySQL global configuration file has been modified.
Index: doc/loncapafiles/modify_config_files.piml
diff -u doc/loncapafiles/modify_config_files.piml:1.2 doc/loncapafiles/modify_config_files.piml:1.3
--- doc/loncapafiles/modify_config_files.piml:1.2 Mon Aug 23 15:07:26 2004
+++ doc/loncapafiles/modify_config_files.piml Mon Aug 23 15:48:48 2004
@@ -3,7 +3,7 @@
<!-- accesscount_seed.piml -->
<!-- Matthew Hall -->
-<!-- $Id: modify_config_files.piml,v 1.2 2004/08/23 19:07:26 matthew Exp $ -->
+<!-- $Id: modify_config_files.piml,v 1.3 2004/08/23 19:48:48 matthew Exp $ -->
<!--
@@ -38,9 +38,12 @@
print "\nUpdating yum and MySQL configuration files\n";
system("/home/httpd/perl/modify_config_files.pl");
-print "**** WARNING: It may be neccessary to restart MySQL at this time.\n".
+my $returnvalue = $?>>8;
+if ($returnvalue == 1) {
+ ## the /etc/my.cnf file was modified.
+ print "**** WARNING: You need to restart MySQL at this time.\n".
" Use the command \"/etc/init.d/mysqld restart\"\n";
-
+}
</perlscript>
</file>
</files>