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:47 +0100
commit654c8c9d0f6cceafcdcbbb10704d5c28fbd16f5e (patch)
tree0a3e4846b6d6b15ef88d323dbea35d9e387ebdd7 /pykolab
parentc52d414f8756a405fd98df58f7ca2abc040a5fe1 (diff)
downloadpykolab-654c8c9d0f6cceafcdcbbb10704d5c28fbd16f5e.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 4b6f6c8..b1b76dc 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',