#!/bin/bash
if [ "$1" = "instance" ];then
    . /usr/lib/eole/ihm.sh
    #enregistrement au domaine dans le cas du NTLM/KERBEROS
    if [ "$(CreoleGet type_squid_auth aucun)" = 'NTLM/KERBEROS' ]; then
        Question_ouinon "Voulez-vous (ré)intégrer le serveur au domaine maintenant ?" "True" "oui"
        if [ $? -eq 0 ];then
            /usr/share/eole/sbin/enregistrement_domaine.sh
            [ $? -ne 0 ] && exit 1
        fi
    fi
    echo
    if [ $(CreoleGet activer_filtrage_proxy) = 'oui' ];then
        Question_ouinon "Voulez-vous mettre à jour les bases de filtrage maintenant ?" 'True' "oui"
        if [ $? -eq 0 ];then
            /usr/share/eole/sbin/Maj-blacklist.sh
        fi
        echo
    fi
fi
exit 0
