Subversion Repositories ALCASAR

Rev

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

Rev 1130 Rev 1133
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1130 2013-06-25 11:19:11Z franck $ 
2
#  $Id: alcasar.sh 1133 2013-06-25 20:52:15Z franck $ 
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 68... Line 68...
68
# ******* Network parameters - paramètres réseau *******
68
# ******* Network parameters - paramètres réseau *******
69
HOSTNAME="alcasar"				# 
69
HOSTNAME="alcasar"				# 
70
DOMAIN="localdomain"				# domaine local
70
DOMAIN="localdomain"				# domaine local
71
EXTIF="eth0"					# ETH0 est l'interface connectée à Internet (Box FAI)
71
EXTIF="eth0"					# ETH0 est l'interface connectée à Internet (Box FAI)
72
MTU="1492"
72
MTU="1492"
73
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
73
ETHTOOL_OPTS='"autoneg off speed 100 duplex full"'
74
INTIF="eth1"					# ETH1 est l'interface connectée au réseau local de consultation
74
INTIF="eth1"					# ETH1 est l'interface connectée au réseau local de consultation
75
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24"	# adresse d'ALCASAR (+masque) proposée par défaut sur le réseau de consultation
75
DEFAULT_PRIVATE_IP_MASK="192.168.182.1/24"	# adresse d'ALCASAR (+masque) proposée par défaut sur le réseau de consultation
76
# ****** Paths - chemin des commandes *******
76
# ****** Paths - chemin des commandes *******
77
SED="/bin/sed -i"
77
SED="/bin/sed -i"
78
# ****************** End of global parameters *********************
78
# ****************** End of global parameters *********************
Line 1629... Line 1629...
1629
fi
1629
fi
1630
rm -f /tmp/alcasar-conf*
1630
rm -f /tmp/alcasar-conf*
1631
chown -R root:apache $DIR_DEST_ETC/*
1631
chown -R root:apache $DIR_DEST_ETC/*
1632
chmod -R 660 $DIR_DEST_ETC/*
1632
chmod -R 660 $DIR_DEST_ETC/*
1633
chmod ug+x $DIR_DEST_ETC/digest
1633
chmod ug+x $DIR_DEST_ETC/digest
-
 
1634
 
-
 
1635
# correction temporaire du bug du paquet ethtool
-
 
1636
[ -e /sbin/ethtool ]  || ln -s /usr/sbin/ethtool /sbin/ethtool
-
 
1637
 
1634
# Apply and save the firewall rules
1638
# Apply and save the firewall rules
1635
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
1639
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
1636
	sleep 2
1640
	sleep 2
1637
	cd $DIR_INSTALL
1641
	cd $DIR_INSTALL
1638
	echo ""
1642
	echo ""