#!/bin/bash

. /usr/lib/eole/utils.sh

activer_log_distant=$(CreoleGet activer_log_distant)

if [ "$activer_log_distant" = "oui" ]; then
    activer_reception_logs_tcp=$(CreoleGet activer_reception_logs_tcp non)
    activer_envoi_logs=$(CreoleGet activer_envoi_logs non)
    if [ "$activer_reception_logs_tcp" = "oui" ] || [ "$activer_envoi_logs" = "oui" ]; then
        InstallSSLFiles rsyslog syslog syslog /etc/rsyslog.d/ssl/
    fi
fi

exit 0

