Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar.sh 1294 2014-01-12 23:03:00Z richard $
|
2 |
# $Id: alcasar.sh 1295 2014-01-13 12:31:04Z 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 523... |
Line 523... |
523 |
echo "$VERSION" > $DIR_WEB/VERSION
|
523 |
echo "$VERSION" > $DIR_WEB/VERSION
|
524 |
$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
|
524 |
$SED "s?99/99/9999?$DATE_SHORT?g" $DIR_ACC/menu.php
|
525 |
$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
525 |
$SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
526 |
$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
526 |
$SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
527 |
$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
527 |
$SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
528 |
$SED "s?\$hostname =.*?\$hostname = \"$HOSTNAME.$DOMAIN\";?g" $DIR_WEB/index.php
|
- |
|
529 |
chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
528 |
chmod 640 $DIR_ACC/phpsysinfo/includes/xml/portail.php
|
530 |
chown -R apache:apache $DIR_WEB/*
|
529 |
chown -R apache:apache $DIR_WEB/*
|
531 |
for i in system_backup base logs/firewall logs/httpd logs/squid logs/security;
|
530 |
for i in system_backup base logs/firewall logs/httpd logs/squid logs/security;
|
532 |
do
|
531 |
do
|
533 |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
|
532 |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i
|