summaryrefslogtreecommitdiff
path: root/source4/setup/provision
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-03-11 14:41:10 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-03-11 14:41:10 +1100
commit9703948850fb6febb237d701ce6b6300e9df8e1f (patch)
tree93e76c3ca32d42dcaa594d1d36ba90ae520f32a0 /source4/setup/provision
parentb5a5fcdc62f56b38f8f141bb4b5377239f07a25f (diff)
downloadsamba-9703948850fb6febb237d701ce6b6300e9df8e1f.tar.gz
samba-9703948850fb6febb237d701ce6b6300e9df8e1f.tar.bz2
samba-9703948850fb6febb237d701ce6b6300e9df8e1f.zip
Fix provision script to work without smb.conf location specified.
Andrew Bartlett (This used to be commit b4da374a998caac18c288a0a6e3fcd2c50cbffa7)
Diffstat (limited to 'source4/setup/provision')
-rwxr-xr-xsource4/setup/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/setup/provision b/source4/setup/provision
index 629bfa10e0..b0363d8a8f 100755
--- a/source4/setup/provision
+++ b/source4/setup/provision
@@ -27,6 +27,7 @@ import optparse
import os, sys
import samba
+import param
from auth import system_session
import samba.getopt as options
@@ -110,7 +111,7 @@ if opts.realm is None or opts.domain is None:
parser.print_usage()
sys.exit(1)
-smbconf = sambaopts.get_loadparm_path()
+smbconf = sambaopts.get_loadparm().configfile()
if opts.aci is not None:
print "set ACI: %s" % opts.aci