]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/urlfilter/autoupdate.pl
Add initscript for conntrackd
[ipfire-2.x.git] / config / urlfilter / autoupdate.pl
index 6d61f43741941cd254f13d9dc3003727568ba912..39b9b4f0b572f9fb0c6e1a68f851e86101d9cc69 100644 (file)
@@ -8,6 +8,8 @@
 #
 use strict;
 
+require "/var/ipfire/general-functions.pl";
+
 my $make_clean = 1;
 
 my $swroot = "/var/ipfire";
@@ -72,6 +74,7 @@ unless ($blacklist_url eq '')
        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)
@@ -110,7 +113,7 @@ unless ($blacklist_url eq '')
                        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");
 
@@ -121,7 +124,7 @@ unless ($blacklist_url eq '')
                        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\"");