1625,16 → 1625,21 |
EOF |
# change the google safesearch ("safe=strict" instead of "safe=vss") |
$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist |
# adapt the Toulouse BL to ALCASAR architecture |
# 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 $DIR_DG/lists/blacklists/ossi-wl |
touch $DIR_DG/lists/blacklists/ossi-bl/domain $DIR_DG/lists/blacklists/ossi-wl/domain |
# add custom ALCASAR BL files (TOR) |
mkdir $DIR_DG/lists/blacklists/ossi-tor_node |
mv $DIR_CONF/ossi-tor_node $DIR_DG/lists/blacklists/ossi-tor_node/domain |
mkdir $DIR_DG/lists/blacklists/ossi-bl |
touch $DIR_DG/lists/blacklists/ossi-bl/domains |
mkdir $DIR_DG/lists/blacklists/ossi-wl |
touch $DIR_DG/lists/blacklists/ossi-wl/domains |
# add custom ALCASAR BL files |
for x in $(ls -1 $DIR_CONF/etc/ | grep "^ossi-*") |
do |
mkdir $DIR_DG/lists/blacklists/$x |
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 |
# adapt the Toulouse BL to ALCASAR architecture |
$DIR_DEST_BIN/alcasar-bl.sh --adapt |
# enable the default categories |
$DIR_DEST_BIN/alcasar-bl.sh --cat_choice |