Subversion Repositories ALCASAR

Rev

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

Rev 1721 Rev 1736
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1721 2015-12-09 23:08:05Z richard $ 
2
#  $Id: alcasar.sh 1736 2015-12-29 22:54:21Z 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 519... Line 519...
519
EOF
519
EOF
520
# /etc/hosts config
520
# /etc/hosts config
521
	[ -e /etc/hosts.default ] || cp /etc/hosts /etc/hosts.default
521
	[ -e /etc/hosts.default ] || cp /etc/hosts /etc/hosts.default
522
	cat <<EOF > /etc/hosts
522
	cat <<EOF > /etc/hosts
523
127.0.0.1	localhost
523
127.0.0.1	localhost
524
$PRIVATE_IP	$HOSTNAME.$DOMAIN $HOSTNAME $ORGANISME.$DOMAIN $ORGANISME
524
$PRIVATE_IP	$HOSTNAME.$DOMAIN $HOSTNAME
525
EOF
525
EOF
526
# EXTIF (Internet) config
526
# EXTIF (Internet) config
527
	[ -e /etc/sysconfig/network-scripts/default-ifcfg-$EXTIF ] || cp /etc/sysconfig/network-scripts/ifcfg-$EXTIF /etc/sysconfig/network-scripts/default-ifcfg-$EXTIF
527
	[ -e /etc/sysconfig/network-scripts/default-ifcfg-$EXTIF ] || cp /etc/sysconfig/network-scripts/ifcfg-$EXTIF /etc/sysconfig/network-scripts/default-ifcfg-$EXTIF
528
	if [ $IP_SETTING == "dhcp" ]
528
	if [ $IP_SETTING == "dhcp" ]
529
		then
529
		then