Subversion Repositories ALCASAR

Rev

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

Rev 1165 Rev 1173
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1165 2013-08-16 13:19:54Z crox53 $ 
2
#  $Id: alcasar.sh 1173 2013-08-20 21:11:41Z 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 806... Line 806...
806
# modif dialup.conf
806
# modif dialup.conf
807
	[ -e /etc/raddb/sql/mysql/dialup.conf.default ] || cp /etc/raddb/sql/mysql/dialup.conf /etc/raddb/sql/mysql/dialup.conf.default
807
	[ -e /etc/raddb/sql/mysql/dialup.conf.default ] || cp /etc/raddb/sql/mysql/dialup.conf /etc/raddb/sql/mysql/dialup.conf.default
808
	cp -f $DIR_CONF/dialup.conf /etc/raddb/sql/mysql/dialup.conf
808
	cp -f $DIR_CONF/dialup.conf /etc/raddb/sql/mysql/dialup.conf
809
# insures that mysql is up before radius start
809
# insures that mysql is up before radius start
810
	$SED "s?^# Should-Start.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd
810
	$SED "s?^# Should-Start.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd
811
	$SED "s?^# Should-Stop.*?# Should-Start: \$network mysqld?" /etc/init.d/radiusd
811
	$SED "s?^# Should-Stop.*?# Should-Stop: \$network mysqld?" /etc/init.d/radiusd
812
 
812
 
813
} # End param_radius ()
813
} # End param_radius ()
814
 
814
 
815
##########################################################################
815
##########################################################################
816
##			Fonction param_web_radius			##
816
##			Fonction param_web_radius			##
Line 1649... Line 1649...
1649
rm -f /tmp/alcasar-conf*
1649
rm -f /tmp/alcasar-conf*
1650
chown -R root:apache $DIR_DEST_ETC/*
1650
chown -R root:apache $DIR_DEST_ETC/*
1651
chmod -R 660 $DIR_DEST_ETC/*
1651
chmod -R 660 $DIR_DEST_ETC/*
1652
chmod ug+x $DIR_DEST_ETC/digest
1652
chmod ug+x $DIR_DEST_ETC/digest
1653
 
1653
 
1654
# Fix the Mageia bug in function "/etc/sysconfig/network-scripts/network-functions"
-
 
1655
[ -e /sbin/ethtool ]  || ln -s /usr/sbin/ethtool /sbin/ethtool
-
 
1656
 
-
 
1657
# Apply and save the firewall rules
1654
# Apply and save the firewall rules
1658
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
1655
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
1659
	sleep 2
1656
	sleep 2
1660
	cd $DIR_INSTALL
1657
	cd $DIR_INSTALL
1661
	echo ""
1658
	echo ""