Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1929 → Rev 1930

/alcasar.sh
1595,9 → 1595,10
##########################################################
BL ()
{
# copy and extract Toulouse university BL
# copy the Toulouse university BL in order to be adapted to ALCASAR architecture (alcasar-bl.sh -adapt)
rm -rf $DIR_DG/lists/blacklists
tar zxf $DIR_CONF/blacklists.tar.gz --directory=$DIR_DG/lists/ > /dev/null 2>&1
mkdir -p /tmp/blacklists
cp $DIR_CONF/blacklists.tar.gz /tmp/blacklists/
# 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
1627,15 → 1628,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 $DIR_DG/lists/blacklists/ossi-bl
mkdir -p $DIR_DG/lists/blacklists/ossi-bl
touch $DIR_DG/lists/blacklists/ossi-bl/domains
mkdir $DIR_DG/lists/blacklists/ossi-wl
mkdir -p $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/etc/ | grep "^ossi-*")
for x in $(ls $DIR_CONF | grep "^ossi-*")
do
mkdir $DIR_DG/lists/blacklists/$x
cp $DIR_CONF/etc/$x $DIR_DG/lists/blacklists/$x/domains
cp $DIR_CONF/$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