Line 1... |
Line 1... |
1 |
#/bin/bash
|
1 |
#/bin/bash
|
2 |
# $Id: alcasar-conf.sh 878 2012-06-03 16:07:40Z richard $
|
2 |
# $Id: alcasar-conf.sh 879 2012-06-03 20:50:48Z 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 63... |
Line 63... |
63 |
cp /var/Save/base/`ls /var/Save/base|tail -1` $DIR_UPDATE
|
63 |
cp /var/Save/base/`ls /var/Save/base|tail -1` $DIR_UPDATE
|
64 |
# Sauvegarde du logo
|
64 |
# Sauvegarde du logo
|
65 |
cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
|
65 |
cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
|
66 |
# Sauvegarde des fichiers exploités par dansguardian
|
66 |
# Sauvegarde des fichiers exploités par dansguardian
|
67 |
cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE
|
67 |
cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE
|
- |
|
68 |
cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE
|
68 |
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE
|
69 |
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE
|
69 |
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE
|
70 |
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE
|
70 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE
|
71 |
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE
|
71 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE
|
72 |
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE
|
72 |
cp -rf /etc/dansguardian/lists/blacklists/ossi $DIR_UPDATE
|
73 |
cp -rf /etc/dansguardian/lists/blacklists/ossi $DIR_UPDATE
|
Line 208... |
Line 209... |
208 |
# Récupération des paramêtres locaux (fichier de conf, règles de filtrage, fichiers d'exception, comptes de gestion, etc.)
|
209 |
# Récupération des paramêtres locaux (fichier de conf, règles de filtrage, fichiers d'exception, comptes de gestion, etc.)
|
209 |
[ -d $DIR_UPDATE/etc ] && cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
|
210 |
[ -d $DIR_UPDATE/etc ] && cp -rf $DIR_UPDATE/etc/* $DIR_ETC/
|
210 |
# Récupération des fichiers de Dansguardian
|
211 |
# Récupération des fichiers de Dansguardian
|
211 |
[ -e $DIR_UPDATE/exceptioniplist ] && cp -f $DIR_UPDATE/exceptioniplist /etc/dansguardian/lists/
|
212 |
[ -e $DIR_UPDATE/exceptioniplist ] && cp -f $DIR_UPDATE/exceptioniplist /etc/dansguardian/lists/
|
212 |
[ -e $DIR_UPDATE/exceptionsitelist ] && cp -f $DIR_UPDATE/exceptionsitelist /etc/dansguardian/lists/
|
213 |
[ -e $DIR_UPDATE/exceptionsitelist ] && cp -f $DIR_UPDATE/exceptionsitelist /etc/dansguardian/lists/
|
- |
|
214 |
[ -e $DIR_UPDATE/urlregexplist ] && cp -f $DIR_UPDATE/urlregexplist /etc/dansguardian/lists/
|
213 |
[ -e $DIR_UPDATE/bannedsitelist ] && cp -f $DIR_UPDATE/bannedsitelist /etc/dansguardian/lists/
|
215 |
[ -e $DIR_UPDATE/bannedsitelist ] && cp -f $DIR_UPDATE/bannedsitelist /etc/dansguardian/lists/
|
214 |
[ -e $DIR_UPDATE/exceptionurllist ] && cp -f $DIR_UPDATE/exceptionurllist /etc/dansguardian/lists/
|
216 |
[ -e $DIR_UPDATE/exceptionurllist ] && cp -f $DIR_UPDATE/exceptionurllist /etc/dansguardian/lists/
|
215 |
[ -e $DIR_UPDATE/bannedurllist ] && cp -f $DIR_UPDATE/bannedurllist /etc/dansguardian/lists/
|
217 |
[ -e $DIR_UPDATE/bannedurllist ] && cp -f $DIR_UPDATE/bannedurllist /etc/dansguardian/lists/
|
216 |
[ -d $DIR_UPDATE/ossi ] && cp -rf $DIR_UPDATE/ossi /etc/dansguardian/lists/blacklists/
|
218 |
[ -d $DIR_UPDATE/ossi ] && cp -rf $DIR_UPDATE/ossi /etc/dansguardian/lists/blacklists/
|
217 |
chown -R dansguardian:apache /etc/dansguardian/lists
|
219 |
chown -R dansguardian:apache /etc/dansguardian/lists
|