Line 1... |
Line 1... |
1 |
#/bin/bash
|
1 |
#/bin/bash
|
2 |
# $Id: alcasar-conf.sh 1946 2016-06-14 22:06:24Z richard $
|
2 |
# $Id: alcasar-conf.sh 1961 2016-06-23 21:23:34Z 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 87... |
Line 87... |
87 |
cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE/custom_bl/
|
87 |
cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE/custom_bl/
|
88 |
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE/custom_bl/
|
88 |
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE/custom_bl/
|
89 |
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE/custom_bl/
|
89 |
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE/custom_bl/
|
90 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE/custom_bl/
|
90 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE/custom_bl/
|
91 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE/custom_bl/
|
91 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE/custom_bl/
|
92 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/
|
92 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
|
93 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
93 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
94 |
mkdir $DIR_UPDATE/etc/
|
94 |
mkdir $DIR_UPDATE/etc/
|
95 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|
95 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|
96 |
# backup of the security certificates (server & CA)
|
96 |
# backup of the security certificates (server & CA)
|
97 |
cp -f /etc/pki/tls/certs/alcasar.crt* $DIR_UPDATE # autosigned and official if exist
|
97 |
cp -f /etc/pki/tls/certs/alcasar.crt* $DIR_UPDATE # autosigned and official if exist
|
Line 134... |
Line 134... |
134 |
cp -f $DIR_UPDATE/custom_bl/exceptionsitelist /etc/dansguardian/lists/
|
134 |
cp -f $DIR_UPDATE/custom_bl/exceptionsitelist /etc/dansguardian/lists/
|
135 |
cp -f $DIR_UPDATE/custom_bl/urlregexplist /etc/dansguardian/lists/
|
135 |
cp -f $DIR_UPDATE/custom_bl/urlregexplist /etc/dansguardian/lists/
|
136 |
cp -f $DIR_UPDATE/custom_bl/bannedsitelist /etc/dansguardian/lists/
|
136 |
cp -f $DIR_UPDATE/custom_bl/bannedsitelist /etc/dansguardian/lists/
|
137 |
cp -f $DIR_UPDATE/custom_bl/exceptionurllist /etc/dansguardian/lists/
|
137 |
cp -f $DIR_UPDATE/custom_bl/exceptionurllist /etc/dansguardian/lists/
|
138 |
cp -f $DIR_UPDATE/custom_bl/bannedurllist /etc/dansguardian/lists/
|
138 |
cp -f $DIR_UPDATE/custom_bl/bannedurllist /etc/dansguardian/lists/
|
139 |
cp -rf $DIR_UPDATE/custom_bl/ossi-* $DIR_BLACKLIST/
|
139 |
cp -rf $DIR_UPDATE/custom_bl/ossi-* $DIR_BLACKLIST/ 2>/dev/null
|
140 |
chown -R dansguardian:apache /etc/dansguardian/lists
|
140 |
chown -R dansguardian:apache /etc/dansguardian/lists
|
141 |
chmod -R g+rw /etc/dansguardian/lists
|
141 |
chmod -R g+rw /etc/dansguardian/lists
|
142 |
# Adapt DNS/URL filtering
|
142 |
# Adapt DNS/URL filtering
|
143 |
PARENT_SCRIPT=`basename $0`
|
143 |
PARENT_SCRIPT=`basename $0`
|
144 |
export PARENT_SCRIPT
|
144 |
export PARENT_SCRIPT
|