#!/bin/bash

# rechargement du profil apparmor pour bind9
PROFIL="/etc/apparmor.d/usr.sbin.named"
[ -f "$PROFIL" ] && apparmor_parser -r "$PROFIL"

# avoid named.conf inlude error at first instance
BIND_DNS_DIR="$(CreoleGet container_path_domaine)"/var/lib/samba/bind-dns
if [ ! -d "$BIND_DNS_DIR" ]; then
    mkdir "$BIND_DNS_DIR"
    touch "$BIND_DNS_DIR"/named.conf
fi

exit 0
