From 323408aa0cc5d33a38fb8382c8d67b6ae56e5613 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Wed, 3 Mar 2004 16:29:30 +0000 Subject: - s/BOX/MACHINE/ --- mdkupdate | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index a268bfa2..aaa4896e 100755 --- a/mdkupdate +++ b/mdkupdate @@ -67,7 +67,7 @@ my ($opt) = @ARGV; my %o = getVarsFromSh($conffile); if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { - my $MandrakeUpdateURL = $url->{online3_RemoteAction} . '?action=ScheduledRPM' . '&log=' . $o{LOGIN} . '&pass=' . $o{PASS} . '&host=' . $o{BOX} . '&key=' . $o{CURRENTKEY}; + my $MandrakeUpdateURL = $url->{online3_RemoteAction} . '?action=ScheduledRPM' . '&log=' . $o{LOGIN} . '&pass=' . $o{PASS} . '&host=' . $o{MACHINE} . '&key=' . $o{CURRENTKEY}; my $resp = getFromURL($MandrakeUpdateURL); my $contents = $resp->content; print " \n\n ***** Response from Online3_RemoteAction is : \n $contents \n end update_rpms answer **********\n\n"; @@ -94,13 +94,13 @@ if(!$ret) { my %new = getVarsFromSh($conffile); if (! -s "/root/.mdkupdate.rpms" || $update) { #- send configuration and get back key to use... - $new{CURRENTKEY} = send_config($new{LOGIN},$new{PASS},$new{BOX}); + $new{CURRENTKEY} = send_config($new{LOGIN},$new{PASS},$new{MACHINE}); delete $new{OLDKEY}; #- save back keys. setVarsInSh($conffile, \%new); } else { #- this can safely be ignored if new configuration is sent. - send_rpm_dif($new{LOGIN},$new{PASS},$new{BOX},$new{OLDKEY}); + send_rpm_dif($new{LOGIN},$new{PASS},$new{MACHINE},$new{OLDKEY}); } clean_dir(); } @@ -215,7 +215,7 @@ sub updateConf { OLDKEY => $oldkey, CURRENTKEY => $newkey, VER => $l{VER}, - BOX => $l{BOX}, + MACHINE => $l{MACHINE}, PASS => $l{PASS}, LOGIN => $l{LOGIN} , }); -- cgit v1.2.1