Subversion Repositories ALCASAR

Rev

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

Rev 88 Rev 92
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#  $Id: alcasar.sh 88 2010-04-18 10:43:35Z richard $ 
2
#  $Id: alcasar.sh 92 2010-04-30 14:09:40Z 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 946... Line 946...
946
echo "/tmp/havp-disk /var/tmp/havp ext4 loop,mand,noatime,async" >> /etc/fstab
946
echo "/tmp/havp-disk /var/tmp/havp ext4 loop,mand,noatime,async" >> /etc/fstab
947
mount /var/tmp/havp
947
mount /var/tmp/havp
948
# copie et configuration d'HAVP
948
# copie et configuration d'HAVP
949
cp $DIR_CONF/havp/havp $DIR_DEST_SBIN
949
cp $DIR_CONF/havp/havp $DIR_DEST_SBIN
950
cp -r $DIR_CONF/havp/etc/havp $DIR_DEST_ETC
950
cp -r $DIR_CONF/havp/etc/havp $DIR_DEST_ETC
951
chmod  775 $DIR_DEST_ETC/havp
-
 
952
cp $DIR_CONF/havp/etc/init.d/havp /etc/init.d/
951
cp $DIR_CONF/havp/etc/init.d/havp /etc/init.d/
953
chkconfig --level 345 havp on
952
chkconfig --level 345 havp on
954
chkconfig --level 01267 havp off
953
chkconfig --level 01267 havp off
955
chown -R havp.havp /var/tmp/havp /var/log/havp /var/run/havp $DIR_DEST_ETC/havp
954
chown -R havp.havp /var/tmp/havp /var/log/havp /var/run/havp
-
 
955
chown -R havp.apache $DIR_DEST_ETC/havp
-
 
956
chmod  770 $DIR_DEST_ETC/havp
956
}
957
}
957
 
958
 
958
##################################################################################
959
##################################################################################
959
##				Fonction firewall				##
960
##				Fonction firewall				##
960
## - adaptation des scripts du parefeu						##
961
## - adaptation des scripts du parefeu						##
Line 1299... Line 1300...
1299
			mode="install"
1300
			mode="install"
1300
		fi
1301
		fi
1301
		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_bind cron post_install
1302
		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_bind cron post_install
1302
		do
1303
		do
1303
			$func
1304
			$func
1304
# echo "*** 'debug' : end of function $func ***"; read a
1305
 echo "*** 'debug' : end of function $func ***"; read a
1305
		done
1306
		done
1306
		;;
1307
		;;
1307
	-uninstall)
1308
	-uninstall)
1308
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1309
		if [ ! -e $DIR_DEST_SBIN/alcasar-uninstall.sh ]
1309
		then
1310
		then