]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - config/urlfilter/prebuild.pl
3 # This code is distributed under the terms of the GPL
5 # (c) written from scratch
8 $dbdir="/var/ipfire/urlfilter/blacklists";
10 system("/usr/bin/squidGuard -C all");
12 system("chown -R nobody.nobody $dbdir");
14 &setpermissions
($dbdir);
16 # -------------------------------------------------------------------
22 foreach $category (<$bldir/*>)
25 system("chmod 755 $category &> /dev/null");
26 foreach $blacklist (<$category/*>)
28 if (-f
$blacklist) { system("chmod 644 $blacklist &> /dev/null"); }
29 if (-d
$blacklist) { system("chmod 755 $blacklist &> /dev/null"); }
31 system("chmod 666 $category/*.db &> /dev/null");
32 &setpermissions
($category);
37 # -------------------------------------------------------------------