Subversion Repositories ALCASAR

Rev

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

Rev 1748 Rev 1759
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1748 2016-01-10 10:51:25Z richard $ 
2
#  $Id: alcasar.sh 1759 2016-01-13 22:53:30Z 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 738... Line 738...
738
	cat <<EOF > /usr/share/httpd/error/include/bottom.html
738
	cat <<EOF > /usr/share/httpd/error/include/bottom.html
739
</body>
739
</body>
740
</html>
740
</html>
741
EOF
741
EOF
742
# Définition du premier compte lié au profil 'admin'
742
# Définition du premier compte lié au profil 'admin'
-
 
743
 
-
 
744
# !! remove when > V2.9.2 (we need to create new accounts)
743
	if [ "$mode" = "install" ]
745
# if [ "$mode" = "install" ]
744
	then
746
	then
745
		header_install
747
		header_install
746
		admin_portal=!
748
		admin_portal=!
747
		PTN='^[a-zA-Z0-9-]*$'
749
		PTN='^[a-zA-Z0-9-]*$'
748
		until [[ $(expr $admin_portal : $PTN) -gt 0 ]]
750
		until [[ $(expr $admin_portal : $PTN) -gt 0 ]]
Line 773... Line 775...
773
		until [ -s $DIR_DEST_ETC/digest/key_admin ]
775
		until [ -s $DIR_DEST_ETC/digest/key_admin ]
774
			do
776
			do
775
				/usr/bin/htdigest -c $DIR_DEST_ETC/digest/key_admin "ALCASAR Control Center (ACC)" $admin_portal
777
				/usr/bin/htdigest -c $DIR_DEST_ETC/digest/key_admin "ALCASAR Control Center (ACC)" $admin_portal
776
			done
778
			done
777
		$DIR_DEST_SBIN/alcasar-profil.sh --list
779
		$DIR_DEST_SBIN/alcasar-profil.sh --list
-
 
780
# !! remove if > V2.9.2
778
	fi
781
# fi
-
 
782
 
779
# synchronisation horaire
783
# synchronisation horaire
780
	ntpd -q -g &
784
	ntpd -q -g &
781
# Sécurisation du centre
785
# Sécurisation du centre
782
	rm -f /etc/httpd/conf/webapps.d/alcasar*
786
	rm -f /etc/httpd/conf/webapps.d/alcasar*
783
	cat <<EOF > /etc/httpd/conf/webapps.d/alcasar.conf
787
	cat <<EOF > /etc/httpd/conf/webapps.d/alcasar.conf