From e4801a426a954040aeb6d2c6d5c1b3e596bd1cab Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 21 Jan 2009 14:26:06 +0100 Subject: Use script path to find the setup directory. --- source4/setup/provision | 2 +- source4/setup/provision-backend | 2 +- source4/setup/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/setup/provision b/source4/setup/provision index d097eb9411..1e203dbe02 100755 --- a/source4/setup/provision +++ b/source4/setup/provision @@ -168,7 +168,7 @@ creds.set_kerberos_state(DONT_USE_KERBEROS) setup_dir = opts.setupdir if setup_dir is None: - setup_dir = "setup" + setup_dir = os.path.dirname(__file__) samdb_fill = FILL_FULL if opts.blank: diff --git a/source4/setup/provision-backend b/source4/setup/provision-backend index 756870d5df..e4e2d56020 100755 --- a/source4/setup/provision-backend +++ b/source4/setup/provision-backend @@ -94,7 +94,7 @@ else: setup_dir = opts.setupdir if setup_dir is None: - setup_dir = "setup" + setup_dir = os.path.dirname(__file__) provision_backend(setup_dir=setup_dir, message=message, smbconf=smbconf, targetdir=opts.targetdir, realm=opts.realm, domain=opts.domain, diff --git a/source4/setup/upgrade b/source4/setup/upgrade index 9d73093434..9c1a0cfce8 100755 --- a/source4/setup/upgrade +++ b/source4/setup/upgrade @@ -71,7 +71,7 @@ message("Provisioning\n") setup_dir = opts.setupdir if setup_dir is None: - setup_dir = "setup" + setup_dir = os.path.dirname(__file__) lp = sambaopts.get_loadparm() smbconf = lp.configfile -- cgit