From 5fd8738aebf97a6e1d35f07737d36b4583f854f3 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 12 Apr 2021 11:59:42 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ezmb-ad.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zmb-ad.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zmb-ad.sh b/zmb-ad.sh index 09c3a3b..fd1688a 100644 --- a/zmb-ad.sh +++ b/zmb-ad.sh @@ -49,12 +49,6 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade # install required packages DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET acl attr ntpdate nginx-full rpl net-tools dnsutils ntp bind9 samba smbclient winbind libpam-winbind libnss-winbind krb5-user samba-dsdb-modules samba-vfs-modules lmdb-utils -# stop + disable samba services and remove default config -systemctl stop smbd nmbd winbind -systemctl disable smbd nmbd winbind -rm /etc/samba/smb.conf -rm /etc/krb5.conf - # configure bind dns service cat << EOF > /etc/default/bind9 # @@ -100,6 +94,12 @@ EOF mkdir -p /var/lib/samba/bind-dns/dns +# stop + disable samba services and remove default config +systemctl stop smbd nmbd winbind +systemctl disable smbd nmbd winbind +rm -f /etc/samba/smb.conf +rm -f /etc/krb5.conf + source ./zamba.conf # provision zamba domain