144,8 → 144,13 |
# Adapt Toulouse BL to ALCASAR architecture (dnsmasq + DG + iptables) |
-adapt | --adapt) |
echo -n "Toulouse BlackList migration process. Please wait : " |
# Saving ossi category |
cp $DIR_IP_BL/ossi $DIR_tmp/ossi-ip |
# Saving IP ossi category if exist else create it (ie : during the installaton process) |
if [ ! -f $DIR_IP_BL/ossi ] |
then |
touch $DIR_IP_BL/ossi |
chown dansguardian:apache $DIR_IP_BL/ossi |
fi |
mv -f $DIR_IP_BL/ossi $DIR_tmp/ossi-ip |
if [ -f $DIR_tmp/blacklists.tar.gz ] |
then |
[ -d $DIR_DG_BL/ossi ] && mv -f $DIR_DG_BL/ossi $DIR_tmp |
218,7 → 223,7 |
done |
done |
rm -f $FILE_tmp $FILE_ip_tmp |
# Restoring ossi category |
# Restoring ossi-IP category |
mv $DIR_tmp/ossi-ip $DIR_IP_BL/ossi |
rm -rf $DIR_tmp |
echo |