Subversion Repositories ALCASAR

Rev

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

Rev 2651 Rev 2661
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2651 2018-11-04 00:09:02Z tom.houdayer $
2
# $Id: alcasar-conf.sh 2661 2018-11-17 18:41:24Z lucas.echard $
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
		mkdir $DIR_UPDATE/custom_bl
85
		mkdir $DIR_UPDATE/custom_bl
86
		for i in exceptioniplist urlregexplist exceptionsitelist bannedsitelist exceptionurllist bannedurllist
86
		for i in exceptioniplist urlregexplist exceptionsitelist bannedsitelist exceptionurllist bannedurllist
87
		do
87
		do
88
			if [ -d /etc/dansguardian ]; then
88
			if [ -d /etc/dansguardian ]; then
89
				cp /etc/dansguardian/lists/$i $DIR_UPDATE/custom_bl/ # before V3.3
89
				cp /etc/dansguardian/lists/$i $DIR_UPDATE/custom_bl/ # before V3.3
-
 
90
				cp -rf /etc/dansguardian/lists/blacklists/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
90
			else
91
			else
91
				cp /etc/e2guardian/lists/$i $DIR_UPDATE/custom_bl/ # since V3.3
92
				cp /etc/e2guardian/lists/$i $DIR_UPDATE/custom_bl/ # since V3.3
-
 
93
				cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
92
			fi
94
			fi
93
		done
95
		done
94
		cp -rf $DIR_BLACKLIST/ossi-* $DIR_UPDATE/custom_bl/ 2>/dev/null
-
 
95
# backup of different conf files (main conf file, filtering, digest, /etc/hosts, etc.)
96
# backup of different conf files (main conf file, filtering, digest, /etc/hosts, etc.)
96
		mkdir $DIR_UPDATE/etc/
97
		mkdir $DIR_UPDATE/etc/
97
		cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
98
		cp -rf $DIR_ETC/* $DIR_UPDATE/etc/
98
		cp /etc/hosts $DIR_UPDATE/etc/
99
		cp /etc/hosts $DIR_UPDATE/etc/
99
# backup of the security certificates (server & CA)
100
# backup of the security certificates (server & CA)