diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-04-13 15:14:08 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-04-13 15:14:08 +0000 |
commit | e8c495d7d2e8134e2bda95f50e18c72cf989fb29 (patch) | |
tree | d3ad62376cd5fa53aa843cd084cfde208dda343d /mdkupdate | |
parent | e5e1c2c86ee1f4f81ec760c2178e0451b418e47a (diff) | |
download | mgaonline-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-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 { |