#!/bin/bash
if [ -f /usr/bin/ParseDico ];then
    #EOLE 2.3
    . ParseDico
    . /etc/eole/containers.conf
else
    #EOLE 2.4
    activer_apache=$(CreoleGet activer_apache)
    activer_cdt=$(CreoleGet activer_cdt non)
    web_url=$(CreoleGet web_url)
fi

if [ "$activer_apache" == "oui" ] && [ "$activer_cdt" == "oui" ];then
    # Lancer la mise à jour du cdt pour envole via ce lien.
    curl -k https://$web_url/cdt/administration/misajour/maj_envole.php?maj=1 > /dev/null 2>&1
fi
exit 0

