#
use strict;
+require "/var/ipfire/general-functions.pl";
+
my $make_clean = 1;
my $swroot = "/var/ipfire";
if (-d $target) { system("rm -rf $target"); }
system("mkdir $target");
+ &Network::setup_upstream_proxy();
system("/usr/bin/wget -o $target/wget.log -O $blacklist $blacklist_url");
if (-e $blacklist)
print FILE "}\n";
close FILE;
- system("/usr/sbin/squidGuard -d -c $target/update.conf -C all");
+ system("/usr/bin/squidGuard -d -c $target/update.conf -C all");
system("cp -r $target/blacklists/* $dbdir");
system("touch $updflagfile");
system("chown nobody.nobody $updflagfile");
- system("/usr/local/bin/restartsquid");
+ system("/etc/init.d/squid restart");
system("logger -t installpackage[urlfilter] \"URL filter blacklist - Update from $blacklist_src completed\"");