summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-09 15:04:19 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-09 15:04:19 +0100
commite42e1ea99fbe40921ca00acbf791bbf9fbf1430c (patch)
tree609075fc8d185984af6a03f96b504dbd6c97fa59 /pykolab
parentf49cc6d32a36c51b4eb1932b65ad5d2f0780bb9c (diff)
downloadpykolab-e42e1ea99fbe40921ca00acbf791bbf9fbf1430c.tar.gz
Fix path for setup-ds-admin on Debian
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_ldap.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/pykolab/setup/setup_ldap.py b/pykolab/setup/setup_ldap.py
index 3168d2f..93c9d04 100644
--- a/pykolab/setup/setup_ldap.py
+++ b/pykolab/setup/setup_ldap.py
@@ -222,8 +222,13 @@ ServerAdminPwd = %(admin_pass)s
os.write(fp, data)
os.close(fp)
+ setup_ds_admin = "/usr/sbin/setup-ds-admin.pl"
+
+ if not os.path.isfile(setup_ds_admin):
+ setup_ds_admin = "/usr/sbin/setup-ds-admin"
+
command = [
- '/usr/sbin/setup-ds-admin.pl',
+ setup_ds_admin,
'--debug',
'--silent',
'--force',