Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1911 → Rev 1912

/scripts/alcasar-conf.sh/alcasar-conf.sh
20,6 → 20,7
DIR_WEB="/var/www/html" # répertoire du centre de gestion
DIR_BIN="/usr/local/bin" # répertoire des scripts d'admin
DIR_ETC="/usr/local/etc" # répertoire des fichiers de conf
DIR_SHARE="/usr/local/share" # répertoire des fichiers partagés
CONF_FILE="$DIR_ETC/alcasar.conf" # main alcasar conf file
VERSION="/var/www/html/VERSION" # contient la version en cours
EXTIF=`grep ^EXTIF= $CONF_FILE|cut -d"=" -f2` # EXTernal InterFace
76,14 → 77,17
cp /var/Save/base/`ls -1t /var/Save/base|head -1` $DIR_UPDATE
# backup the logo
cp -f $DIR_WEB/images/organisme.png $DIR_UPDATE
# backup Dansguardian files
cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE
cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE
cp -rf /etc/dansguardian/lists/blacklists/ossi $DIR_UPDATE
# backup BL/WL custom files
cp -f /etc/dansguardian/lists/exceptioniplist $DIR_UPDATE/dansguardian/
cp -f /etc/dansguardian/lists/urlregexplist $DIR_UPDATE/dansguardian/
cp -f /etc/dansguardian/lists/exceptionsitelist $DIR_UPDATE/dansguardian/
cp -f /etc/dansguardian/lists/bannedsitelist $DIR_UPDATE/dansguardian/
cp -f /etc/dansguardian/lists/exceptionurllist $DIR_UPDATE/dansguardian/
cp -f /etc/dansguardian/lists/bannedurllist $DIR_UPDATE/dansguardian/
cp -f $DIR_SHARE/dnsmasq-bl/ossi.conf $DIR_UPDATE/dnsmasq-bl/ossi.conf
cp -f $DIR_SHARE/dnsmasq-wl/ossi.conf $DIR_UPDATE/dnsmasq-wl/ossi.conf
cp -f $DIR_SHARE/iptables-bl/ossi $DIR_UPDATE/iptables-bl/ossi
cp -f $DIR_SHARE/iptables-wl/ossi $DIR_UPDATE/iptables-wl/ossi
# backup of different conf files (main conf file, filtering, digest, etc)
mkdir $DIR_UPDATE/etc/
cp -rf $DIR_ETC/* $DIR_UPDATE/etc/