Subversion Repositories ALCASAR

Rev

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

Rev 1955 Rev 1957
Line 1... Line 1...
1
#/bin/bash
1
#/bin/bash
2
 
2
 
3
# $Id: alcasar-bl.sh 1955 2016-06-20 22:10:50Z richard $
3
# $Id: alcasar-bl.sh 1957 2016-06-21 22:16:17Z 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 365... Line 365...
365
		chmod 660 $BL_CATEGORIES
365
		chmod 660 $BL_CATEGORIES
366
		sort +0.0 -0.2 $WL_CATEGORIES -o $FILE_tmp
366
		sort +0.0 -0.2 $WL_CATEGORIES -o $FILE_tmp
367
		mv $FILE_tmp $WL_CATEGORIES
367
		mv $FILE_tmp $WL_CATEGORIES
368
		chown root:apache $WL_CATEGORIES
368
		chown root:apache $WL_CATEGORIES
369
		chmod 660 $WL_CATEGORIES
369
		chmod 660 $WL_CATEGORIES
-
 
370
		if [ "$PARENT_SCRIPT" != "alcasar-conf.sh" ] # don't launch on install stage
-
 
371
		then
370
		/usr/bin/systemctl restart dnsmasq-blacklist
372
			/usr/bin/systemctl restart dnsmasq-blacklist
371
		/usr/bin/systemctl restart dnsmasq-whitelist
373
			/usr/bin/systemctl restart dnsmasq-whitelist
372
		/usr/local/bin/alcasar-iptables.sh
374
			/usr/local/bin/alcasar-iptables.sh
-
 
375
		fi
373
		;;
376
		;;
374
	*)
377
	*)
375
		echo "Argument inconnu :$1";
378
		echo "Argument inconnu :$1";
376
		echo "$usage"
379
		echo "$usage"
377
		exit 1
380
		exit 1