1524,8 → 1524,6 |
do |
find /var/log/$dir -type f -name *.log-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] -exec gzip {} \; |
done |
# export des logs en 'retard' dans /var/Save/logs |
/usr/local/bin/alcasar-archive.sh --now |
# create the alcasar-load_balancing unit |
cat << EOF > /lib/systemd/system/alcasar-load_balancing.service |
# This file is part of systemd. |
1649,6 → 1647,8 |
# Load and apply the previous conf file |
if [ "$mode" = "update" ] |
then |
# export des logs en 'retard' dans /var/Save/logs |
/usr/local/bin/alcasar-archive.sh --now |
$DIR_DEST_BIN/alcasar-conf.sh --load |
PARENT_SCRIPT=`basename $0` |
export PARENT_SCRIPT # to avoid stop&start process during the installation process |