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=();
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\""); }