/readme.txt |
---|
3,18 → 3,19 |
Alcasar-2.7 |
*********** English ********** |
- Complete install : Need the CD double architecture (32b and 64b) of Linux Mageia2 (Mageia-2-dual-CD.iso). |
--> Follow the install doc. |
- To update automaticly the earlier versions of Alcasar (>= V1.7), just execute the install script ("sh alcasar.sh --install") |
- In case of update a version less than 2.1 : |
-- a new admin login will be created. |
-- The certificates (C.A. & server) are updated too. You will have to integrated them again in browsers. |
- New installation : Need the CD dual architecture (32b and 64b) of Linux Mageia2 (Mageia-2-dual-CD.iso). |
--> Follow the installation documentation. |
- Update an earlier version (see the §9.4 of the exploitation documentation) : |
--> via the control center create and retrieve the "Alcacar-conf-archive.tar.gz" file |
--> after the installation of the new Linux (mageia2), copy this file in the folder "/tmp" with the name "alcasar-conf.tar.gz" |
--> download, extract and launch alcasar installation (like for a new installation) |
*********** Français ******** |
- Installation complète : elle s'effectue sur la base du CD double architecture (32b et 64b) de la distribution Linux Mageia2 (Mageia-2-dual-CD.iso). |
- Nouvelle installation : elle s'effectue sur la base CD double architecture (32b et 64b) de Linux Mageia2 (Mageia-2-dual-CD.iso). |
--> Suivez la procédure d'installation. |
- La mise à jour des anciennes versions d'Alcasar (>= V1.7) est automatique en lançant le script d'installation ("sh alcasar.sh --install") |
- Dans le cas de la mise à jour d'une version inférieure à 2.1 : |
-- un nouveau compte d'administration sera créé. |
-- Les certificats (A.C. et serveur) ont évolué. Il sera donc nécessaire de les enregistrer à nouveau dans les navigateurs. |
- mise à jour d'une ancienne version (voir le §9.4 de la doc d'exploitation) : |
--> à partir du centre de control, créez et récupérez le fichier "alcasar-conf-archive.tar.gz" |
--> après avoir installé le nouveau system (mageia2), copiez ce fichier dans le répertoire "/tmp" sous le nom "alcasar-conf.tar.gz" |
--> récupérez, désarchivez et lancez l'installation d'ALCASAR (comme pour une nouvelle installation) |
/alcasar.sh |
---|
594,7 → 594,7 |
done |
$DIR_DEST_SBIN/alcasar-profil.sh --list |
else # mise à jour des versions < 2.1 |
if ([ $MAJ_RUNNING_VERSION -lt 2 ] || ([ $MAJ_RUNNING_VERSION -eq 2 ] && [ $MIN_RUNNING_VERSION -lt 1 ])) |
if [ $MAJ_RUNNING_VERSION -lt 2 ] || ([ $MAJ_RUNNING_VERSION -eq 2 ] && [ $MIN_RUNNING_VERSION -lt 1 ]) |
then |
if [ $Lang == "fr" ] |
then |
730,7 → 730,7 |
init_db () |
{ |
mkdir -p /var/lib/mysql/.tmp |
chown mysql:mysql /var/lib/mysql/.tmp |
chown -R mysql:mysql /var/lib/mysql/ |
[ -e /etc/my.cnf.rpmnew ] && mv /etc/my.cnf.rpmnew /etc/my.cnf # prend en compte les migrations de MySQL |
[ -e /etc/my.cnf.default ] || cp /etc/my.cnf /etc/my.cnf.default |
$SED "s?^#bind-address.*?bind-address=127.0.0.1?g" /etc/my.cnf |
1477,7 → 1477,6 |
$SED "s?^#ListenAddress 0\.0\.0\.0?ListenAddress $PRIVATE_IP?g" /etc/ssh/sshd_config |
$SED "/^ListenAddress $PRIVATE_IP/a\ListenAddress $PUBLIC_IP" /etc/ssh/sshd_config |
# Put the default value in conf file (sshd, QOS and protocols/dns/ are off)(web antivirus is on) |
/sbin/chkconfig --del sshd |
echo "SSH=off" >> $CONF_FILE |
echo 'Admin_from_IP="0.0.0.0/0.0.0.0"' >> $CONF_FILE |
echo "QOS=off" >> $CONF_FILE |
1614,9 → 1613,9 |
do |
/sbin/chkconfig --del $old_svc |
done |
for svc in snmpd |
for svc in snmpd.service sshd.service |
do |
/bin/systemctl -q disable $svc |
/bin/systemctl disable $svc |
done |
for rm_users in avahi-autoipd avahi icapd |
do |
1734,10 → 1733,6 |
then |
rm -f /tmp/alcasar-conf* |
else |
RUNNING_VERSION=`cat $DIR_WEB/VERSION|cut -d" " -f1` |
MAJ_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f1` |
MIN_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f2|cut -c1` |
UPD_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f3` |
# Create a backup of running version importants files |
chmod u+x $DIR_SCRIPTS/alcasar-conf.sh |
$DIR_SCRIPTS/alcasar-conf.sh --create |
1752,6 → 1747,10 |
fi |
if [ -e $DIR_WEB/VERSION ] |
then |
RUNNING_VERSION=`cat $DIR_WEB/VERSION|cut -d" " -f1` |
MAJ_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f1` |
MIN_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f2|cut -c1` |
UPD_RUNNING_VERSION=`echo $RUNNING_VERSION|cut -d"." -f3` |
# Uninstall the running version |
$DIR_SCRIPTS/sbin/alcasar-uninstall.sh |
fi |
/scripts/alcasar-urpmi.sh |
---|
64,7 → 64,7 |
echo "the installed operating system is unknown" |
exit 1 |
fi |
if [ $DISTRIBUTION == "Mandriva" ] |
if [ "$DISTRIBUTION" == "Mandriva" ] |
then |
if [ $CURRENT_VERSION != "2009.0" ] && [ $CURRENT_VERSION != "2009.1" ] && [ $CURRENT_VERSION != "2010.0" ] && [ $CURRENT_VERSION != "2010.1" ] && [ $CURRENT_VERSION != "2010.2" ] |
then |