version 1.1, 2004/08/09 21:17:50
|
version 1.9, 2009/07/05 21:23:42
|
Line 35 http://www.lon-capa.org/
|
Line 35 http://www.lon-capa.org/
|
<file> |
<file> |
<target dist="default">/</target> |
<target dist="default">/</target> |
<perlscript mode="fg"> |
<perlscript mode="fg"> |
|
my $mysqldaemon = 'mysqld'; |
print "\nUpdating yum and MySQL configuration files\n"; |
my $configfiles = 'yum and MySQL'; |
|
if ('<DIST />' eq 'suse9.2' || '<DIST />' eq 'suse9.3' || '<DIST />' eq 'sles9' || '<DIST />' eq 'sles10' || '<DIST />' eq 'suse10.1' || '<DIST />' eq 'suse10.2' || '<DIST />' eq 'suse10.3' || '<DIST />' eq 'suse11.1') { |
|
$mysqldaemon = 'mysql'; |
|
$configfiles = 'MySQL'; |
|
} elsif ('<DIST />' eq 'rhes4') { |
|
$configfiles = 'MySQL'; |
|
} |
|
print "\nUpdating $configfiles configuration files\n"; |
system("/home/httpd/perl/modify_config_files.pl"); |
system("/home/httpd/perl/modify_config_files.pl"); |
print "WARNING: It may be neccessary to restart MySQL at this time.\n". |
my $returnvalue = $?>>8; |
" Use the command \"/etc/init.d/mysqld restart\"\n"; |
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/$mysqldaemon restart\"\n"; |
|
} |
</perlscript> |
</perlscript> |
</file> |
</file> |
</files> |
</files> |