Subversion Repositories ALCASAR

Rev

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

Rev 1538 Rev 1539
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1538 2014-12-22 10:41:29Z richard $ 
2
#  $Id: alcasar.sh 1539 2014-12-22 14:44:49Z 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 830... Line 830...
830
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
830
	ErrorDocument 404 https://$HOSTNAME.$DOMAIN/
831
</Directory>
831
</Directory>
832
EOF
832
EOF
833
# Launch after coova
833
# Launch after coova
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
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
-
 
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
-
 
841
	 
838
	/usr/bin/vnstat -u -i $EXTIF
842
	/usr/bin/vnstat -u -i $EXTIF
839
} # End of ACC ()
843
} # End of ACC ()
840
 
844
 
841
##########################################################################################
845
##########################################################################################
842
##				Fonction "CA"						##
846
##				Fonction "CA"						##