Subversion Repositories ALCASAR

Rev

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

Rev 2149 Rev 2171
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 2149 2017-03-24 17:02:16Z richard $ 
2
#  $Id: alcasar.sh 2171 2017-04-21 17:39:13Z tom.houdayer $ 
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 632... Line 632...
632
{
632
{
633
	[ -d $DIR_WEB ] && rm -rf $DIR_WEB
633
	[ -d $DIR_WEB ] && rm -rf $DIR_WEB
634
	mkdir $DIR_WEB
634
	mkdir $DIR_WEB
635
# Copy & adapt ACC files
635
# Copy & adapt ACC files
636
	cp -rf $DIR_INSTALL/web/* $DIR_WEB/
636
	cp -rf $DIR_INSTALL/web/* $DIR_WEB/
637
	echo "$VERSION" > $DIR_WEB/VERSION
-
 
638
	$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
637
	$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
639
	$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
638
	$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
640
	$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
639
	$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
641
	$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
640
	$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
642
	chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php
641
	chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php