X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Fupdxlrator%2Fdownload;h=f2af9f8e0b543ce507ccd2c02b9565b455d00ba2;hp=cc187f5e8d512faf761870c89a4a72a579e7ca8d;hb=5b2a12ff8ad39591a5a57a0f2122edc2934f5ec3;hpb=afabe9f7d12f6c7fffeac86c63e9556e28471c02 diff --git a/config/updxlrator/download b/config/updxlrator/download index cc187f5e8d..f2af9f8e0b 100644 --- a/config/updxlrator/download +++ b/config/updxlrator/download @@ -9,9 +9,8 @@ use strict; -my $apphome="/var/ipfire/updatexlrator"; 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=(); @@ -30,10 +29,10 @@ $updfile = substr($dsturl,rindex($dsturl,"/")+1); 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 { - `$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\""); }