Line 1... |
Line 1... |
1 |
#!/bin/bash
|
1 |
#!/bin/bash
|
2 |
# $Id: alcasar-conf.sh 2521 2018-04-02 19:46:16Z armand.ito $
|
2 |
# $Id: alcasar-conf.sh 2541 2018-05-03 22:16:31Z rexy $
|
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 85... |
Line 85... |
85 |
cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
|
85 |
cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
|
86 |
# backup the logo
|
86 |
# backup the logo
|
87 |
cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
|
87 |
cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
|
88 |
# backup BL/WL custom files
|
88 |
# backup BL/WL custom files
|
89 |
mkdir $DIR_UPDATE/custom_bl
|
89 |
mkdir $DIR_UPDATE/custom_bl
|
90 |
cp -f /etc/e2guardian/lists/exceptioniplist $DIR_UPDATE/custom_bl/
|
90 |
for i in exceptioniplist urlregexplist exceptionsitelist bannedsitelist exceptionurllist bannedurllist
|
91 |
cp -f /etc/e2guardian/lists/urlregexplist $DIR_UPDATE/custom_bl/
|
- |
|
- |
|
91 |
do
|
92 |
cp -f /etc/e2guardian/lists/exceptionsitelist $DIR_UPDATE/custom_bl/
|
92 |
if [ -d /etc/dansguardian ]; then # remove when no more dansguardian migrations needed
|
93 |
cp -f /etc/e2guardian/lists/bannedsitelist $DIR_UPDATE/custom_bl/
|
93 |
cp /etc/dansguardian/lists/$i $DIR_UPDATE/custom_bl/
|
94 |
cp -f /etc/e2guardian/lists/exceptionurllist $DIR_UPDATE/custom_bl/
|
94 |
else
|
95 |
cp -f /etc/e2guardian/lists/bannedurllist $DIR_UPDATE/custom_bl/
|
95 |
cp /etc/e2guardian/lists/$i $DIR_UPDATE/custom_bl/
|
- |
|
96 |
fi
|
- |
|
97 |
done
|
96 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
|
98 |
cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
|
97 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
99 |
# backup of different conf files (main conf file, filtering, digest, etc)
|
98 |
mkdir $DIR_UPDATE/etc/
|
100 |
mkdir $DIR_UPDATE/etc/
|
99 |
[ -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
|
101 |
[ -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
|
100 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|
102 |
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
|