Line 1... |
Line 1... |
1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
2 |
# $Id: alcasar.sh 358 2010-12-02 22:34:25Z franck $
|
2 |
# $Id: alcasar.sh 360 2010-12-05 22:50:36Z 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 459... |
Line 459... |
459 |
echo "$VERSION du $DATE" > $DIR_WEB/VERSION
|
459 |
echo "$VERSION du $DATE" > $DIR_WEB/VERSION
|
460 |
$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
|
460 |
$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
|
461 |
$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
461 |
$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
462 |
$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
462 |
$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
463 |
$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
463 |
$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
464 |
$SED "s?^\$private_ip =.*?\$private_ip = \"$PRIVATE_IP\";?g" $DIR_WEB/index-access-deny.php $DIR_WEB/index-network-pb.php
|
464 |
$SED "s?^\$private_ip =.*?\$private_ip = \"$PRIVATE_IP\";?g" $DIR_WEB/index.php
|
465 |
chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
465 |
chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
466 |
chown -R apache:apache $DIR_WEB/*
|
466 |
chown -R apache:apache $DIR_WEB/*
|
467 |
for i in ISO base logs/firewall logs/httpd logs/squid ;
|
467 |
for i in ISO base logs/firewall logs/httpd logs/squid ;
|
468 |
do
|
468 |
do
|
469 |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
|
469 |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
|