diff options
Diffstat (limited to 'mdkupdate')
-rwxr-xr-x | mdkupdate | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 { |