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 |