#!/bin/bash
. /usr/lib/eole/eolead.sh
# update DNS forwarder
sed -ie "s/dns forwarder.*/dns forwarder = $(CreoleGet adresse_ip_dns | head -n 1)/" $CONTAINER_ROOTFS/etc/samba/smb.conf
# workaround for #23435#note-11
ssh -t -q -o LogLevel=ERROR -o StrictHostKeyChecking=no root@$CONTAINER_IP "systemctl restart samba-ad-dc"
exit 0
