Subversion Repositories ALCASAR

Rev

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

Rev 629 Rev 630
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 629 2011-06-09 20:54:27Z richard $ 
2
#  $Id: alcasar.sh 630 2011-06-10 22:23:56Z franck $ 
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 1260... Line 1260...
1260
	echo "DNS_FILTERING=off" >> $CONF_FILE
1260
	echo "DNS_FILTERING=off" >> $CONF_FILE
1261
	echo "WEB_ANTIVIRUS=on" >> $CONF_FILE
1261
	echo "WEB_ANTIVIRUS=on" >> $CONF_FILE
1262
# Coloration des prompts
1262
# Coloration des prompts
1263
	[ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
1263
	[ -e /etc/bashrc.default ]  || cp /etc/bashrc /etc/bashrc.default
1264
	cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
1264
	cp -f $DIR_CONF/bashrc /etc/. ; chmod 644 /etc/bashrc ; chown root:root /etc/bashrc
-
 
1265
	$SED "s?^ORGANISME.*?ORGANISME=$ORGANISME?g" /etc/bashrc
1265
# Droits d'exécution pour utilisateur apache et sysadmin
1266
# Droits d'exécution pour utilisateur apache et sysadmin
1266
	[ -e /etc/sudoers.default ]  || cp /etc/sudoers /etc/sudoers.default
1267
	[ -e /etc/sudoers.default ]  || cp /etc/sudoers /etc/sudoers.default
1267
	cp -f $DIR_CONF/sudoers /etc/. ; chmod 440 /etc/sudoers ; chown root:root /etc/sudoers
1268
	cp -f $DIR_CONF/sudoers /etc/. ; chmod 440 /etc/sudoers ; chown root:root /etc/sudoers
1268
	$SED "s?^Host_Alias.*?Host_Alias	LAN_ORG=$PRIVATE_NETWORK/$PRIVATE_NETMASK,localhost		#réseau de l'organisme?g" /etc/sudoers
1269
	$SED "s?^Host_Alias.*?Host_Alias	LAN_ORG=$PRIVATE_NETWORK/$PRIVATE_NETMASK,localhost		#réseau de l'organisme?g" /etc/sudoers
1269
# prise en compte de la rotation des logs sur 1 an (concerne mysql, httpd, dansguardian, squid, radiusd, ulogd)
1270
# prise en compte de la rotation des logs sur 1 an (concerne mysql, httpd, dansguardian, squid, radiusd, ulogd)