| Line 1... |
Line 1... |
| 1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
| 2 |
# $Id: alcasar.sh 1539 2014-12-22 14:44:49Z richard $
|
2 |
# $Id: alcasar.sh 1540 2014-12-22 15:38:02Z 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 834... |
Line 834... |
| 834 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
|
834 |
$SED "s?^After=.*?After=network.target remote-fs.target nss-lookup.target chilli.service?g" /lib/systemd/system/httpd.service
|
| 835 |
# Initialization of Vnstat and vnstat phpFE
|
835 |
# Initialization of Vnstat and vnstat phpFE
|
| 836 |
[ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
|
836 |
[ -e /etc/vnstat.conf.default ] || cp /etc/vnstat.conf /etc/vnstat.conf.default
|
| 837 |
$SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
|
837 |
$SED "s?Interface.*?Interface \"$EXTIF\"?g" /etc/vnstat.conf
|
| 838 |
[ -e /var/www/html/acc/manager/stats/config.php.default ] || cp /var/www/html/acc/manager/stats/config.php /var/www/html/acc/manager/stats/config.php.default
|
838 |
[ -e /var/www/html/acc/manager/stats/config.php.default ] || cp /var/www/html/acc/manager/stats/config.php /var/www/html/acc/manager/stats/config.php.default
|
| 839 |
$SED "s?\$iface_list =.*?\$iface_list = array(\'$EXTIF\');?g" /var/www/html/acc/manager/stats/config.php
|
839 |
$SED "s?\$iface_list =.*?\$iface_list = array('$EXTIF');?g" /var/www/html/acc/manager/stats/config.php
|
| 840 |
$SED "s?\$iface_title[.*?\$iface_title[\'$EXTIF\'] = \'Internet outbound\';?g" /var/www/html/acc/manager/stats/config.php
|
840 |
$SED "s?\$iface_title.*?\$iface_title['$EXTIF'] = 'Internet outbound';?g" /var/www/html/acc/manager/stats/config.php
|
| 841 |
|
- |
|
| 842 |
/usr/bin/vnstat -u -i $EXTIF
|
841 |
/usr/bin/vnstat -u -i $EXTIF
|
| 843 |
} # End of ACC ()
|
842 |
} # End of ACC ()
|
| 844 |
|
843 |
|
| 845 |
##########################################################################################
|
844 |
##########################################################################################
|
| 846 |
## Fonction "CA" ##
|
845 |
## Fonction "CA" ##
|