Subversion Repositories ALCASAR

Rev

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

Rev 1041 Rev 1045
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1041 2013-03-09 18:24:49Z richard $ 
2
#  $Id: alcasar.sh 1045 2013-03-14 13:51:31Z franck $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
6
# ALCASAR - Portail captif d'accès à l'Internet -  Copyright (C) [2005] [ALcasar team - Rexy - 3abtux - ...] 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
7
# Ce programme est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier au titre des clauses de la Licence Publique Générale GNU, 
Line 1632... Line 1632...
1632
fi
1632
fi
1633
rm -f /tmp/alcasar-conf*
1633
rm -f /tmp/alcasar-conf*
1634
chown -R root:apache $DIR_DEST_ETC/*
1634
chown -R root:apache $DIR_DEST_ETC/*
1635
chmod -R 660 $DIR_DEST_ETC/*
1635
chmod -R 660 $DIR_DEST_ETC/*
1636
chmod ug+x $DIR_DEST_ETC/digest
1636
chmod ug+x $DIR_DEST_ETC/digest
-
 
1637
# Apply and save the firewall rules
-
 
1638
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
-
 
1639
	sleep 2
1637
	cd $DIR_INSTALL
1640
	cd $DIR_INSTALL
1638
	echo ""
1641
	echo ""
1639
	echo "#############################################################################"
1642
	echo "#############################################################################"
1640
	if [ $Lang == "fr" ]
1643
	if [ $Lang == "fr" ]
1641
		then
1644
		then
Line 1673... Line 1676...
1673
	if [ "$mode" != "update" ]
1676
	if [ "$mode" != "update" ]
1674
	then
1677
	then
1675
		read a
1678
		read a
1676
	fi
1679
	fi
1677
	clear
1680
	clear
1678
# Apply and save the firewall rules
-
 
1679
 	sh $DIR_DEST_BIN/alcasar-iptables.sh
-
 
1680
	sleep 2
1681
 
1681
	reboot
1682
	reboot
1682
} # End post_install ()
1683
} # End post_install ()
1683
 
1684
 
1684
#################################
1685
#################################
1685
#  	Main Install loop  	#
1686
#  	Main Install loop  	#