Subversion Repositories ALCASAR

Rev

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

Rev 346 Rev 347
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 346 2010-11-28 18:09:05Z richard $ 
2
#  $Id: alcasar.sh 347 2010-11-28 18:30:25Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
5
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 969... Line 969...
969
	chown -R root:apache /var/log/firewall
969
	chown -R root:apache /var/log/firewall
970
	chmod 750 /var/log/firewall
970
	chmod 750 /var/log/firewall
971
	chmod 640 /var/log/firewall/firewall.log
971
	chmod 640 /var/log/firewall/firewall.log
972
 	$SED "s?^file=\"/var/log/ulogd.syslogemu\"?file=\"/var/log/firewall/firewall.log\"?g" /etc/ulogd.conf
972
 	$SED "s?^file=\"/var/log/ulogd.syslogemu\"?file=\"/var/log/firewall/firewall.log\"?g" /etc/ulogd.conf
973
	sh $DIR_DEST_BIN/alcasar-iptables.sh
973
	sh $DIR_DEST_BIN/alcasar-iptables.sh
-
 
974
# création du fichier d'exception au filtrage
-
 
975
	touch /usr/local/etc/alcasar-filter-exceptions
974
}  # End of firewall ()
976
}  # End of firewall ()
975
 
977
 
976
##################################################################################
978
##################################################################################
977
##				Fonction param_awstats				##
979
##				Fonction param_awstats				##
978
## - configuration de l'interface des logs de consultation WEB (AWSTAT)		##
980
## - configuration de l'interface des logs de consultation WEB (AWSTAT)		##
Line 1354... Line 1356...
1354
		fi
1356
		fi
1355
		for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus firewall param_awstats param_dnsmasq BL cron post_install
1357
		for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus firewall param_awstats param_dnsmasq BL cron post_install
1356
 
1358
 
1357
		do
1359
		do
1358
			$func
1360
			$func
1359
 echo "*** 'debug' : end of function $func ***"; read a
1361
 # echo "*** 'debug' : end of function $func ***"; read a
1360
		done
1362
		done
1361
		;;
1363
		;;
1362
	-u | --uninstall)
1364
	-u | --uninstall)
1363
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1365
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1364
		then
1366
		then