Subversion Repositories ALCASAR

Rev

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

Rev 1958 Rev 1969
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1958 2016-06-22 13:02:15Z richard $
3
# $Id: alcasar-bl.sh 1969 2016-06-28 22:12:54Z 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 364... Line 364...
364
			sort +0.0 -0.2 $file -o $FILE_tmp
364
			sort +0.0 -0.2 $file -o $FILE_tmp
365
			mv $FILE_tmp $file
365
			mv $FILE_tmp $file
366
			chown root:apache $file
366
			chown root:apache $file
367
			chmod 660 $file
367
			chmod 660 $file
368
		done
368
		done
-
 
369
		chown -R root:apache $DIR_DNS_BL $DIR_DNS_WL $DIR_IP_BL $DIR_IP_WL
-
 
370
		chmod 660 $DIR_DNS_BL/* $DIR_DNS_WL/* $DIR_IP_BL/* $DIR_IP_WL/*
369
		if [ "$PARENT_SCRIPT" != "alcasar-conf.sh" ] # don't launch on install stage
371
		if [ "$PARENT_SCRIPT" != "alcasar-conf.sh" ] # don't launch on install stage
370
		then
372
		then
371
			/usr/bin/systemctl restart dnsmasq-blacklist
373
			/usr/bin/systemctl restart dnsmasq-blacklist
372
			/usr/bin/systemctl restart dnsmasq-whitelist
374
			/usr/bin/systemctl restart dnsmasq-whitelist
373
			/usr/local/bin/alcasar-iptables.sh
375
			/usr/local/bin/alcasar-iptables.sh