]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/updxlrator/download
Am Pakfire weitergearbeitet.
[people/pmueller/ipfire-2.x.git] / config / updxlrator / download
index cc187f5e8d512faf761870c89a4a72a579e7ca8d..f2af9f8e0b543ce507ccd2c02b9565b455d00ba2 100644 (file)
@@ -9,9 +9,8 @@
 
 use strict;
 
 
 use strict;
 
-my $apphome="/var/ipfire/updatexlrator";
 my $logfile="/var/log/updatexlrator/download.log";
 my $logfile="/var/log/updatexlrator/download.log";
-my $debug=(-e "$apphome/debug");
+my $debug = 0;
 my $updcachedir="/srv/web/ipfire/html/updatecache";
 my $updfile='';
 my @metadata=();
 my $updcachedir="/srv/web/ipfire/html/updatecache";
 my $updfile='';
 my @metadata=();
@@ -30,10 +29,10 @@ $updfile = substr($dsturl,rindex($dsturl,"/")+1);
 if ($debug)
 {
        &writelog("Retrieving file for local cache: $updfile");
 if ($debug)
 {
        &writelog("Retrieving file for local cache: $updfile");
-       `$apphome/bin/wget -nc -nd -nv -P $updcachedir/download $dsturl >>$logfile 2>&1`;
+       `/usr/bin/wget -nc -nd -nv -P $updcachedir/download $dsturl >>$logfile 2>&1`;
 } else
 {
 } else
 {
-       `$apphome/bin/wget -nc -nd -nv -P $updcachedir/download $dsturl 2>&1`;
+       `/usr/bin/wget -nc -nd -nv -P $updcachedir/download $dsturl 2>&1`;
 }
 
 if ($debug) { &writelog("Moving file into the cache directory -> \"$updcachedir/$updfile\""); }
 }
 
 if ($debug) { &writelog("Moving file into the cache directory -> \"$updcachedir/$updfile\""); }