1595,10 → 1595,9 |
########################################################## |
BL () |
{ |
# copy the Toulouse university BL in order to be adapted to ALCASAR architecture (alcasar-bl.sh -adapt) |
# copy and extract Toulouse university BL |
rm -rf $DIR_DG/lists/blacklists |
mkdir -p /tmp/blacklists |
cp $DIR_CONF/blacklists.tar.gz /tmp/blacklists/ |
tar zxf $DIR_CONF/blacklists.tar.gz --directory=$DIR_DG/lists/ > /dev/null 2>&1 |
# creation of file for the rehabilited domains and urls |
[ -e $DIR_DG/lists/exceptionsitelist.default ] || mv $DIR_DG/lists/exceptionsitelist $DIR_DG/lists/exceptionsitelist.default |
[ -e $DIR_DG/lists/exceptionurllist.default ] || mv $DIR_DG/lists/exceptionurllist $DIR_DG/lists/exceptionurllist.default |
1628,15 → 1627,15 |
$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist |
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only) |
if [ "$mode" != "update" ]; then |
mkdir -p $DIR_DG/lists/blacklists/ossi-bl |
mkdir $DIR_DG/lists/blacklists/ossi-bl |
touch $DIR_DG/lists/blacklists/ossi-bl/domains |
mkdir -p $DIR_DG/lists/blacklists/ossi-wl |
mkdir $DIR_DG/lists/blacklists/ossi-wl |
touch $DIR_DG/lists/blacklists/ossi-wl/domains |
# add custom ALCASAR BL files |
for x in $(ls $DIR_CONF | grep "^ossi-*") |
for x in $(ls $DIR_CONF/etc/ | grep "^ossi-*") |
do |
mkdir $DIR_DG/lists/blacklists/$x |
cp $DIR_CONF/$x $DIR_DG/lists/blacklists/$x/domains |
cp $DIR_CONF/etc/$x $DIR_DG/lists/blacklists/$x/domains |
done |
chown -R dansguardian:apache $DIR_DG $DIR_DEST_SHARE |
chmod -R g+rw $DIR_DG $DIR_DEST_SHARE |