Subversion Repositories ALCASAR

Rev

Rev 1957 | Rev 1969 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1957 Rev 1958
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1957 2016-06-21 22:16:17Z richard $
3
# $Id: alcasar-bl.sh 1958 2016-06-22 13:02:15Z richard $
4
 
4
 
5
# alcasar-bl.sh
5
# alcasar-bl.sh
6
# by Franck BOUIJOUX and Richard REY
6
# by Franck BOUIJOUX and Richard REY
7
# This script is distributed under the Gnu General Public License (GPL)
7
# This script is distributed under the Gnu General Public License (GPL)
8
 
8
 
Line 357... Line 357...
357
					ln -sf $DIR_DNS_BL/$ossi_categorie.conf $DIR_DNS_BL_ENABLED/$ossi_categorie
357
					ln -sf $DIR_DNS_BL/$ossi_categorie.conf $DIR_DNS_BL_ENABLED/$ossi_categorie
358
					ln -sf $DIR_IP_BL/$ossi_categorie $DIR_IP_BL_ENABLED/$ossi_categorie
358
					ln -sf $DIR_IP_BL/$ossi_categorie $DIR_IP_BL_ENABLED/$ossi_categorie
359
				fi
359
				fi
360
			fi
360
			fi
361
		done
361
		done
362
		sort +0.0 -0.2 $BL_CATEGORIES -o $FILE_tmp
362
		for file in $BL_CATEGORIES $BL_CATEGORIES_ENABLED $WL_CATEGORIES $WL_CATEGORIES_ENABLED
363
		mv $FILE_tmp $BL_CATEGORIES
-
 
364
		chown root:apache $BL_CATEGORIES
-
 
365
		chmod 660 $BL_CATEGORIES
363
		do
366
		sort +0.0 -0.2 $WL_CATEGORIES -o $FILE_tmp
364
			sort +0.0 -0.2 $file -o $FILE_tmp
367
		mv $FILE_tmp $WL_CATEGORIES
365
			mv $FILE_tmp $file
368
		chown root:apache $WL_CATEGORIES
366
			chown root:apache $file
369
		chmod 660 $WL_CATEGORIES
367
			chmod 660 $file
-
 
368
		done
370
		if [ "$PARENT_SCRIPT" != "alcasar-conf.sh" ] # don't launch on install stage
369
		if [ "$PARENT_SCRIPT" != "alcasar-conf.sh" ] # don't launch on install stage
371
		then
370
		then
372
			/usr/bin/systemctl restart dnsmasq-blacklist
371
			/usr/bin/systemctl restart dnsmasq-blacklist
373
			/usr/bin/systemctl restart dnsmasq-whitelist
372
			/usr/bin/systemctl restart dnsmasq-whitelist
374
			/usr/local/bin/alcasar-iptables.sh
373
			/usr/local/bin/alcasar-iptables.sh