Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 2274 2017-06-06 06:12:50Z richard $
|
2 |
# $Id: alcasar-conf.sh 2275 2017-06-06 06:56:56Z 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 93... |
Line 93... |
93 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE/custom_bl/
|
93 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE/custom_bl/
|
94 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE/custom_bl/
|
94 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE/custom_bl/
|
95 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
|
95 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
|
96 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
96 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
97 |
mkdir $DIR_UPDATE/etc/
|
97 |
mkdir $DIR_UPDATE/etc/
|
- |
|
98 |
[ -e $DIR_ETC/alcasar-ethers-info ] || cp $DIR_ETC/alcasar-ethers $DIR_ETC/alcasar-ethers-info # V3.1.2 new info file for dhcp static
|
98 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|
99 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|
99 |
# backup of the security certificates (server & CA)
|
100 |
# backup of the security certificates (server & CA)
|
100 |
cp -f /etc/pki/tls/certs/alcasar.crt* $DIR_UPDATE # autosigned and official if exist
|
101 |
cp -f /etc/pki/tls/certs/alcasar.crt* $DIR_UPDATE # autosigned and official if exist
|
101 |
cp -f /etc/pki/tls/private/alcasar.key* $DIR_UPDATE # autosigned & official if exist
|
102 |
cp -f /etc/pki/tls/private/alcasar.key* $DIR_UPDATE # autosigned & official if exist
|
102 |
cp -f /etc/pki/CA/alcasar-ca.crt $DIR_UPDATE
|
103 |
cp -f /etc/pki/CA/alcasar-ca.crt $DIR_UPDATE
|