Subversion Repositories ALCASAR

Rev

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

Rev 1148 Rev 1149
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1148 2013-07-08 16:19:10Z crox53 $ 
2
#  $Id: alcasar.sh 1149 2013-07-08 21:43:36Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 484... Line 484...
484
EOF
484
EOF
485
	[ -e /etc/host.deny.default ]  || cp /etc/hosts.deny /etc/hosts.deny.default
485
	[ -e /etc/host.deny.default ]  || cp /etc/hosts.deny /etc/hosts.deny.default
486
	cat <<EOF > /etc/hosts.deny
486
	cat <<EOF > /etc/hosts.deny
487
ALL: ALL: spawn ( /bin/echo "service %d demandé par %c" | /bin/mail -s "Tentative d'accès au service %d par %c REFUSE !!!" security ) &
487
ALL: ALL: spawn ( /bin/echo "service %d demandé par %c" | /bin/mail -s "Tentative d'accès au service %d par %c REFUSE !!!" security ) &
488
EOF
488
EOF
489
read a
-
 
490
# modify "network-functions" Mageia script (waiting for bug fix bugzilla:10623)
489
# modify "network-functions" Mageia script (waiting for bug fix bugzilla:10623)
491
        $SED "s?/sbin/ethtool?/usr/sbin/ethtool?g" /etc/sysconfig/network-scripts/network-functions
490
        $SED "s?/sbin/ethtool?/usr/sbin/ethtool?g" /etc/sysconfig/network-scripts/network-functions
492
# Firewall config
491
# Firewall config
493
	$SED "s?^EXTIF=.*?EXTIF=\"$EXTIF\"?g" $DIR_DEST_BIN/alcasar-iptables.sh  $DIR_DEST_BIN/alcasar-iptables-bypass.sh
492
	$SED "s?^EXTIF=.*?EXTIF=\"$EXTIF\"?g" $DIR_DEST_BIN/alcasar-iptables.sh  $DIR_DEST_BIN/alcasar-iptables-bypass.sh
494
	$SED "s?^INTIF=.*?INTIF=\"$INTIF\"?g" $DIR_DEST_BIN/alcasar-iptables.sh  $DIR_DEST_BIN/alcasar-iptables-bypass.sh
493
	$SED "s?^INTIF=.*?INTIF=\"$INTIF\"?g" $DIR_DEST_BIN/alcasar-iptables.sh  $DIR_DEST_BIN/alcasar-iptables-bypass.sh
Line 1797... Line 1796...
1797
			mode="install"
1796
			mode="install"
1798
		fi
1797
		fi
1799
		for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus param_ulogd param_awstats param_dnsmasq BL cron post_install
1798
		for func in init network gestion AC init_db param_radius param_web_radius param_chilli param_squid param_dansguardian antivirus param_ulogd param_awstats param_dnsmasq BL cron post_install
1800
		do
1799
		do
1801
			$func
1800
			$func
1802
 echo "*** 'debug' : end of function $func ***"; read a
1801
# echo "*** 'debug' : end of function $func ***"; read a
1803
		done
1802
		done
1804
		;;
1803
		;;
1805
	-u | --uninstall)
1804
	-u | --uninstall)
1806
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1805
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1807
		then
1806
		then