From 9cb611038f9cc0d7031e69267be8321cbf33bf8e Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Mon, 20 Sep 2004 06:38:37 +0000 Subject: - resend whole conf file every day --- mdkupdate | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index cf336648..8d939e76 100755 --- a/mdkupdate +++ b/mdkupdate @@ -40,8 +40,6 @@ foreach (qw(online_dif online_update online3_RemoteAction wizard)) { my $rpms_rep = "/root/tmp/"; my $VERSION = "1.0"; my $YEARS = "2002-2004"; -my $security = find { /^-?-security$/ } @ARGV; -my $update = find { /^-?-update$/ } @ARGV; #for compatibilities mkdir_p($confdir) if !-d $confdir; @@ -64,7 +62,7 @@ usage: } my ($opt) = @ARGV; -@ARGV == 1 && ($opt eq '--auto' || $opt eq '--security' || $opt eq '--applet') or usage(); +@ARGV == 1 && ($opt eq '--auto' || $opt eq '--applet') or usage(); -s $conffile or die N("No %s file found. Run mdkonline wizard first", $conffile); @@ -98,7 +96,7 @@ if ($o{LOGIN} && $o{PASS} && $o{LOGIN} !~ /\s+/ && $o{PASS} !~ /\s+/) { } rpm_qa("$confdir/rpm_qa_installed_after"); my %new = getVarsFromSh($conffile); - if (! -s "$confdir/mdkupdate.rpms" || $update) { + if (! -s "$confdir/mdkupdate.rpms" || $opt eq '--auto') { #- send configuration and get back key to use... my $r; -- cgit v1.2.1