From 876cc238f90a096802a1bb26265e47a23aeed31b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Apr 2015 22:15:58 +0200 Subject: [PATCH] more debugging --- tests/cfg/deploy.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/cfg/deploy.sh b/tests/cfg/deploy.sh index 10d7b82..168de19 100755 --- a/tests/cfg/deploy.sh +++ b/tests/cfg/deploy.sh @@ -34,14 +34,25 @@ role=dc sambacmd=samba-tool adpass=qwertyP455 +echo "deploy AD" printf '' > "${smbconffile}" && \ ${sambacmd} domain provision ${hostip} \ --domain="${domain}" --realm="${realm}" --dns-backend="${sambadns}" \ --targetdir="${targetdir}" --workgroup="${domain}" --use-rfc2307 \ - --configfile="${smbconffile}" --server-role="${role}" -d 1 --adminpass="${adpass}" && \ - mv "${targetdir}/etc/smb.conf" "${smbconffile}" + --configfile="${smbconffile}" --server-role="${role}" -d 1 --adminpass="${adpass}" + -sh -x /etc/init.d/samba restart +echo "Move configuration" +mv "${targetdir}/etc/smb.conf" "${smbconffile}" + +mv /var/lib/samba/private/krb5.conf /etc/krb5.conf + +sleep 5 + +sh -x /etc/init.d/samba start +sh -x /etc/init.d/samba-ad-dc start +sh -x /etc/init.d/smbd start +sh -x /etc/init.d/nmbd start sleep 5