Line 1... |
Line 1... |
1 |
#/bin/bash
|
1 |
#/bin/bash
|
2 |
# $Id: alcasar-conf.sh 1759 2016-01-13 22:53:30Z richard $
|
2 |
# $Id: alcasar-conf.sh 1760 2016-01-13 23:08:17Z richard $
|
3 |
|
3 |
|
4 |
# alcasar-conf.sh
|
4 |
# alcasar-conf.sh
|
5 |
# by REXY
|
5 |
# by REXY
|
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 116... |
Line 116... |
116 |
[ -e $DIR_UPDATE/server-chain.crt ] && cp -f $DIR_UPDATE/server-chain.crt /etc/pki/tls/certs/
|
116 |
[ -e $DIR_UPDATE/server-chain.crt ] && cp -f $DIR_UPDATE/server-chain.crt /etc/pki/tls/certs/
|
117 |
chown -R root:apache /etc/pki
|
117 |
chown -R root:apache /etc/pki
|
118 |
chmod -R 750 /etc/pki
|
118 |
chmod -R 750 /etc/pki
|
119 |
# Import of the users database
|
119 |
# Import of the users database
|
120 |
gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$radiuspwd
|
120 |
gzip -dc < `ls $DIR_UPDATE/alcasar-users-database*` | mysql -u$DB_USER -p$radiuspwd
|
- |
|
121 |
# Retrieve local parameters &
|
121 |
# Retrieve local parameters & Remove blacklist files (now in /usr/local/share)
|
122 |
# !!! for this version (2.9.2) we need to create new digest accounts and Remove blacklist files (now in /usr/local/share)
|
- |
|
123 |
# !!! remove the first two lines for future versions
|
122 |
[ -d $DIR_UPDATE/etc ] && rm -rf $DIR_UPDATE/etc/alcasar-dnsfilter* && cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
|
124 |
[ -d $DIR_UPDATE/etc ] && rm -rf $DIR_UPDATE/etc/alcasar-dnsfilter*
|
- |
|
125 |
[ -d $DIR_UPDATE/etc ] && rm -rf $DIR_UPDATE/etc/digest/
|
- |
|
126 |
|
- |
|
127 |
[ -d $DIR_UPDATE/etc ] && cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
|
123 |
# Retrieve Dansguardian files
|
128 |
# Retrieve Dansguardian files
|
124 |
cp -f $DIR_UPDATE/exceptioniplist /etc/dansguardian/lists/
|
129 |
cp -f $DIR_UPDATE/exceptioniplist /etc/dansguardian/lists/
|
125 |
cp -f $DIR_UPDATE/exceptionsitelist /etc/dansguardian/lists/
|
130 |
cp -f $DIR_UPDATE/exceptionsitelist /etc/dansguardian/lists/
|
126 |
cp -f $DIR_UPDATE/urlregexplist /etc/dansguardian/lists/
|
131 |
cp -f $DIR_UPDATE/urlregexplist /etc/dansguardian/lists/
|
127 |
cp -f $DIR_UPDATE/bannedsitelist /etc/dansguardian/lists/
|
132 |
cp -f $DIR_UPDATE/bannedsitelist /etc/dansguardian/lists/
|