version 1.1, 2004/08/09 21:17:50
|
version 1.11, 2009/07/17 18:22:28
|
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"> |
<!-- accesscount_seed.piml --> |
<!-- modify_config_files.piml --> |
<!-- Matthew Hall --> |
<!-- Matthew Hall --> |
|
|
<!-- $Id$ --> |
<!-- $Id$ --> |
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'; |
|
} elsif ('<DIST />' eq 'debian5' || '<DIST />' eq 'ubuntu6' || '<DIST />' eq 'ubuntu8') { |
|
$configfiles = 'Apt and MySQL'; |
|
$mysqldaemon = '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> |