[Pkg-samba-maint] [Git][samba-team/samba][master] Check smb.conf with testparm, and also with samba-tool when server role = active…

Mathieu Parent gitlab at salsa.debian.org
Mon Jun 18 20:51:18 BST 2018


Mathieu Parent pushed to branch master at Debian Samba Team / samba


Commits:
3604f377 by Mathieu Parent at 2018-06-18T21:49:40+02:00
Check smb.conf with testparm, and also with samba-tool when server role = active directory domain controller (Closes: #900908)

- - - - -


1 changed file:

- debian/samba-common-bin.postinst


Changes:

=====================================
debian/samba-common-bin.postinst
=====================================
--- a/debian/samba-common-bin.postinst
+++ b/debian/samba-common-bin.postinst
@@ -2,8 +2,15 @@
 
 set -e
 
-echo "Checking smb.conf"
-samba-tool testparm -d1 --suppress-prompt > /dev/null
+echo "Checking smb.conf with testparm"
+testparm -d1 --suppress-prompt > /dev/null
 echo "Done"
 
+SERVER_ROLE=`samba-tool testparm --parameter-name="server role"  2>/dev/null | tail -1`
+if [ "$SERVER_ROLE" = "active directory domain controller" ]; then
+    echo "Checking smb.conf with samba-tool"
+    samba-tool testparm -d1 --suppress-prompt > /dev/null
+    echo "Done"
+fi
+
 #DEBHELPER#



View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/3604f3772f461c08b34e4bf8553dfc8835dd86cd

-- 
View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/3604f3772f461c08b34e4bf8553dfc8835dd86cd
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20180618/40b52b4e/attachment.html>


More information about the Pkg-samba-maint mailing list