„zmb-ad.sh“ ändern

This commit is contained in:
Thorsten Spille 2021-04-12 11:59:42 +00:00
parent 9db0b07292
commit 5fd8738aeb

View File

@ -49,12 +49,6 @@ DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade
# install required packages # 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 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 # configure bind dns service
cat << EOF > /etc/default/bind9 cat << EOF > /etc/default/bind9
# #
@ -100,6 +94,12 @@ EOF
mkdir -p /var/lib/samba/bind-dns/dns 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 source ./zamba.conf
# provision zamba domain # provision zamba domain