summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
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 {