56,7 → 56,7 |
DIR_INSTALL=`pwd` # current directory |
DIR_CONF="$DIR_INSTALL/conf" # install directory (with conf files) |
DIR_SCRIPTS="$DIR_INSTALL/scripts" # install directory (with script files) |
DIR_SAVE="/var/Save" # backup directory (system_backup, user_db_backup, logs) |
DIR_SAVE="/var/Save" # backup directory (traceability_log, user_db, security_log) |
DIR_WEB="/var/www/html" # directory of APACHE |
DIR_DG="/etc/dansguardian" # directory of DansGuardian |
DIR_ACC="$DIR_WEB/acc" # directory of the 'ALCASAR Control Center' |
171,7 → 171,7 |
then |
rm -f /tmp/alcasar-conf* |
else |
# Create a backup of running importants files |
# Create the current conf file |
$DIR_SCRIPTS/alcasar-conf.sh --create |
mode="update" |
fi |
185,12 → 185,12 |
then |
echo "La mise à jour automatique d'ALCASAR ne peut pas être réalisée." |
echo "1 - Récupérez le fichier de configuration actuel (/tmp/alcasar-conf.tar.gz)." |
echo "2 - Installez Linux-Mageia4.1 (cf. doc d'installation)" |
echo "2 - Installez Linux-Mageia 4.1 (cf. doc d'installation)" |
echo "3 - recopiez le fichier 'alcasar-conf.tar.gz' dans le répertoire '/tmp' avant de lancer l'installation d'ALCASAR" |
else |
echo "The automatic update of ALCASAR can't be performed." |
echo "1 - Retrieve the configuration file (/tmp/alcasar-conf.tar.gz)" |
echo "2 - Install Linux-Mageia4.1 (cf. installation doc)" |
echo "2 - Install Linux-Mageia 4.1 (cf. installation doc)" |
echo "3 - Copy again the file 'alcasar-conf.tar.gz' in the folder '/tmp' before launching the installation of ALCASAR" |
fi |
else |
645,10 → 645,9 |
chown -R apache:apache $DIR_WEB/* |
# create the backup structure : |
# - base = users database |
# - system_backup = alcasar conf file + users database |
# - archive = tarball of "base + http firewall + netflow" |
# - security = watchdog disconnection) |
for i in system_backup base archive security; |
for i in base archive security; |
do |
[ -d $DIR_SAVE/$i ] || mkdir -p $DIR_SAVE/$i |
done |