214,6 → 214,33 |
chmod -R g+w $DIR_DG $BL_CATEGORIES $WL_CATEGORIES $BL_CATEGORIES_ENABLED $WL_CATEGORIES_ENABLED $DIR_DNS_BL $DIR_DNS_WL $DIR_IP_BL $DIR_IP_WL |
find $DIR_DG_BL/ -type f -name domains > $FILE_tmp # retrieve directory name where a domain file exist |
$SED "s?\/domains??g" $FILE_tmp # remove "/domains" suffix |
# Add the two local categories (ossi-bl & ossi-wl) to the usage file |
cat << EOF >> $DIR_DG_BL/global_usage |
|
NAME: ossi-bl |
DEFAULT_TYPE: black |
SOURCE: ALCASAR Team |
DESC FR: sites blacklistés ajoutés localement |
NAME RU: ossi-bl |
NAME EN: blacklisted sites add locally |
NAME FR: ossi-bl |
NAME IT: ossi-bl |
NAME NL: ossi-bl |
NAME DE: ossi-bl |
NAME ES: ossi-bl |
|
NAME: ossi-wl |
DEFAULT_TYPE: white |
SOURCE: ALCASAR Team |
DESC FR: sites autorisés ajoutés localement |
NAME RU: ossi-wl |
NAME EN: whitelisted sites add locally |
NAME FR: ossi-wl |
NAME IT: ossi-wl |
NAME NL: ossi-wl |
NAME DE: ossi-wl |
NAME ES: ossi-wl |
EOF |
for dir_categorie in `cat $FILE_tmp` # create the blacklist and the whitelist files |
do |
categorie=`echo $dir_categorie|cut -d "/" -f6` |