From e8c495d7d2e8134e2bda95f50e18c72cf989fb29 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Tue, 13 Apr 2004 15:14:08 +0000 Subject: - create directory if it doesn't exist --- mdkupdate | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mdkupdate') diff --git a/mdkupdate b/mdkupdate index f2fc4fe6..b8e24101 100755 --- a/mdkupdate +++ b/mdkupdate @@ -34,7 +34,7 @@ BEGIN { unshift @::textdomains, 'mdkupdate' } require_root_capability(); my $logfile = "/var/log/mdkupdate.log"; -my $confdir = '/root/.mdkonline'; +my $confdir = '/root/.MdkOnline'; my $conffile = "$confdir/mdkupdate"; my $onlineUrl = "https://www.mandrakeonline.net/"; @@ -47,6 +47,10 @@ my $VERSION = "1.0"; my $security = grep { /^-?-security$/ } @ARGV; my $update = grep { /^-?-update$/ } @ARGV; +#for compatibilities +mkdir_p($confdir) if !-d $confdir; +-e '/root/.mdkupdate' and system("mv","/root/.mdkupdate", "$confdir/mdkupdate"); + my ($scheduled, $noscheduled); sub usage { -- cgit v1.2.1