Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2770 rexy 1
#!/bin/bash
2
## dans alcasar-bl.sh
3
    # C&C-Server node 
4
    CNC_BL_NAME="ossi-bl-candc"
5
    ## download
6
        /usr/local/bin/alcasar-bl-autoupdate.sh --update_ossi-bl-candc
7
        ## enable blacklist by default by creating symlinks
8
        if [ -e ${DIR_DNS_BL_ENABLED}/${CNC_BL_NAME} ]; then
9
		    rm ${DIR_DNS_BL_ENABLED}/${CNC_BL_NAME}
10
	    fi
11
	    if [ -e ${DIR_IP_BL_ENABLED}/${CNC_BL_NAME} ]; then
12
		    rm ${DIR_IP_BL_ENABLED}/${CNC_BL_NAME}
13
	    fi
14
 		echo "Creating symlinks to enable blacklist"
15
        ln -s ${DIR_DNS_BL}/${CNC_BL_NAME}.conf ${DIR_DNS_BL_ENABLED}/${CNC_BL_NAME}
16
        ln -s ${DIR_IP_BL}/${CNC_BL_NAME} ${DIR_IP_BL_ENABLED}/${CNC_BL_NAME}
17
		exit 0
18
		;;
19
 
20