summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-04-13 15:14:08 +0000
committerDaouda Lo <daouda@mandriva.com>2004-04-13 15:14:08 +0000
commite8c495d7d2e8134e2bda95f50e18c72cf989fb29 (patch)
treed3ad62376cd5fa53aa843cd084cfde208dda343d /mdkupdate
parente5e1c2c86ee1f4f81ec760c2178e0451b418e47a (diff)
downloadmgaonline-e8c495d7d2e8134e2bda95f50e18c72cf989fb29.tar
mgaonline-e8c495d7d2e8134e2bda95f50e18c72cf989fb29.tar.gz
mgaonline-e8c495d7d2e8134e2bda95f50e18c72cf989fb29.tar.bz2
mgaonline-e8c495d7d2e8134e2bda95f50e18c72cf989fb29.tar.xz
mgaonline-e8c495d7d2e8134e2bda95f50e18c72cf989fb29.zip
- create directory if it doesn't exist
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate6
1 files changed, 5 insertions, 1 deletions
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 {