| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 2218 2017-05-11 08:46:36Z richard $
|
2 |
# $Id: alcasar.sh 2219 2017-05-13 08:56:34Z 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 1226... |
Line 1226... |
| 1226 |
touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
|
1226 |
touch $DIR_DEST_ETC/alcasar-uamallowed $DIR_DEST_ETC/alcasar-uamdomain
|
| 1227 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
1227 |
chown root:apache $DIR_DEST_ETC/alcasar-*
|
| 1228 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
1228 |
chmod 660 $DIR_DEST_ETC/alcasar-*
|
| 1229 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)
|
1229 |
# Configuration des fichier WEB d'interception (secret partagé avec coova-chilli)
|
| 1230 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php
|
1230 |
$SED "s?^\$uamsecret =.*?\$uamsecret = \"$secretuam\";?g" $DIR_WEB/intercept.php
|
| 1231 |
$SED "s?^\$userpassword=1.*?\$userpassword=1;?g" $DIR_WEB/intercept.php
|
- |
|
| 1232 |
# user 'chilli' creation (in order to run conup/off and up/down scripts
|
1231 |
# user 'chilli' creation (in order to run conup/off and up/down scripts
|
| 1233 |
chilli_exist=`grep chilli /etc/passwd|wc -l`
|
1232 |
chilli_exist=`grep chilli /etc/passwd|wc -l`
|
| 1234 |
if [ "$chilli_exist" == "1" ]
|
1233 |
if [ "$chilli_exist" == "1" ]
|
| 1235 |
then
|
1234 |
then
|
| 1236 |
userdel -r chilli 2>/dev/null
|
1235 |
userdel -r chilli 2>/dev/null
|