events/50.samba: fix testparm background update
authorMichael Adam <obnox@samba.org>
Fri, 21 Dec 2012 16:52:57 +0000 (11:52 -0500)
committerMichael Adam <obnox@samba.org>
Sat, 5 Jan 2013 00:15:19 +0000 (01:15 +0100)
creating the smb.conf cache with "-v" results in a cache file
that fails to load with "testparm -s ..." later on due to
"copy = " not being processable. (Copying the empty service name fails).

Signed-off-by: Michael Adam <obnox@samba.org>
config/events.d/50.samba

index 4d9f12165dce4052dd4216397e4f4f073bcee597..a4d50fe35eb5593591e5282c1076647fe2b39de7 100755 (executable)
@@ -96,7 +96,7 @@ testparm_background_update() {
     # otherwise do a background update
     (
        tmpfile="${smbconf_cache}.$$"
-       testparm -v -s > $tmpfile 2> /dev/null &
+       testparm -s > $tmpfile 2> /dev/null &
        # remember the pid of the teamparm process
        pid="$!"
        # give it 10 seconds to run