--- loncom/debugging_tools/modify_config_files.pl 2009/07/14 03:05:59 1.9 +++ loncom/debugging_tools/modify_config_files.pl 2011/05/31 02:55:15 1.12 @@ -2,7 +2,7 @@ # # The LearningOnline Network # -# $Id: modify_config_files.pl,v 1.9 2009/07/14 03:05:59 raeburn Exp $ +# $Id: modify_config_files.pl,v 1.12 2011/05/31 02:55:15 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -70,23 +70,23 @@ my $loninst = 'http://install.loncapa.or my $loninst_re = 'http://install\.loncapa\.org'; if ($dist =~ /^fedora(\d+)$/) { my $ver = $1; - my $gpgchk = 0; + my $gpgchk = '0'; my $gpg = "$loninst/versions/fedora/RPM-GPG-KEY-loncapa"; if ($ver > 6) { - $gpgchk = 1; + $gpgchk = '1'; } $yum_status = &update_file('/etc/yum.conf', - [{section => 'loncapa-updates-$basearch', + [{section => 'loncapa-updates-basearch', key => 'name=', value => 'Fedora Core $releasever LON-CAPA $basearch Updates', - }, {section => 'loncapa-updates-$basearch', + }, {section => 'loncapa-updates-basearch', key => 'baseurl=', value => $loninst.'/fedora/linux/loncapa/$releasever/$basearch', - }, {section => 'loncapa-updates-$basearch', + }, {section => 'loncapa-updates-basearch', key => 'gpgcheck=', value => $gpgchk, - }, {section => 'loncapa-updates-$basearch', + }, {section => 'loncapa-updates-basearch', key => 'gpg=', value => $gpg, }, {section => 'loncapa-updates-noarch', @@ -145,8 +145,8 @@ if ($dist =~ /^fedora(\d+)$/) { value => "$loninst/$info{$type}{path}/".'$releasever/$basearch', }, {section => 'loncapa-updates-basearch', key => 'gpgcheck=', - value => $info{$type}{gpchk}, - }, {section => 'loncapa-updates-$basearch', + value => $info{$type}{gpgchk}, + }, {section => 'loncapa-updates-basearch', key => 'gpgkey=', value => "$loninst/$info{$type}{gpg}", }, {section => 'loncapa-updates-noarch', @@ -157,7 +157,7 @@ if ($dist =~ /^fedora(\d+)$/) { value => "$loninst/$info{$type}{path}/".'$releasever/noarch', }, {section => 'loncapa-updates-noarch', key => 'gpgcheck=', - value => $info{$type}{gpchk}, + value => $info{$type}{gpgchk}, }, {section => 'loncapa-updates-noarch', key => 'gpgkey=', value => "$loninst/$info{$type}{gpg}", @@ -200,7 +200,7 @@ if ($dist =~ /^fedora(\d+)$/) { my $mysql_global_status = &update_file('/etc/my.cnf', [{section =>'mysqld', - key =>'set-variable=wait_timeout=', + key =>'wait_timeout=', value =>'31536000', }]); my $local_my_cnf = '/home/www/.my.cnf';