From a57aa1e83eecd6d1a527762a5bdd07b035917a23 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 14 Apr 2015 22:34:59 +0200 Subject: [PATCH] launching samba manually --- tests/cfg/deploy.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/cfg/deploy.sh b/tests/cfg/deploy.sh index 168de19..52baa3f 100755 --- a/tests/cfg/deploy.sh +++ b/tests/cfg/deploy.sh @@ -47,12 +47,18 @@ 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 +if ! [ -z "$TRAVIS" ] +then + /usr/sbin/samba -D -s /etc/samba/smb.conf + /usr/sbin/smbd -D --option=server role check:inhibit=yes --foreground +else + 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 +fi sleep 5