Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1911 → Rev 1912

/alcasar.sh
1598,12 → 1598,6
# copy and extract Toulouse university BL
rm -rf $DIR_DG/lists/blacklists
tar zxf $DIR_CONF/blacklists.tar.gz --directory=$DIR_DG/lists/ > /dev/null 2>&1
# creation of the OSSI BL and WL categories (domain name and url)
mkdir $DIR_DG/lists/blacklists/ossi
touch $DIR_DG/lists/blacklists/ossi/domains
touch $DIR_DG/lists/blacklists/ossi/urls
chown -R dansguardian:apache $DIR_DG $DIR_DEST_SHARE
chmod -R g+rw $DIR_DG $DIR_DEST_SHARE
# 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
1631,13 → 1625,19
EOF
# change the the google safesearch ("safe=strict" instead of "safe=vss")
$SED "s?safe=vss?safe=strict?g" $DIR_DG/lists/urlregexplist
# adapt the BL to ALCASAR architecture. Enable the default categories
# adapt the Toulouse BL to ALCASAR architecture. Enable the default categories
if [ "$mode" != "update" ]; then
$DIR_DEST_BIN/alcasar-bl.sh --adapt
$DIR_DEST_BIN/alcasar-bl.sh --cat_choice
mv $DIR_CONF/ossi-tor_node_ip $DIR_DEST_SHARE/iptables-bl-enabled/
chown dansguardian:apache $DIR_DEST_SHARE/iptables-bl-enabled/ossi-tor_node_ip
chmod g+w $DIR_DEST_SHARE/iptables-bl-enabled/ossi-tor_node_ip
# creation of the custom BL and WL categorie named "ossi" (for domain names & ip only)
touch $DIR_DEST_SHARE/dnsmasq-bl/ossi.conf
touch $DIR_DEST_SHARE/dnsmasq-wl/ossi.conf
touch $DIR_DEST_SHARE/iptables-bl/ossi
touch $DIR_DEST_SHARE/iptables-wl/ossi
# add custom ALCASAR BL files (TOR)
mv $DIR_CONF/ossi-tor_node_ip $DIR_DEST_SHARE/iptables-bl/
chown -R dansguardian:apache $DIR_DG $DIR_DEST_SHARE
chmod -R g+rw $DIR_DG $DIR_DEST_SHARE
fi
}