summaryrefslogtreecommitdiffstats
path: root/pykolab/setup/setup_syncroton.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup/setup_syncroton.py')
-rw-r--r--pykolab/setup/setup_syncroton.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/pykolab/setup/setup_syncroton.py b/pykolab/setup/setup_syncroton.py
index 5b9f915..446577f 100644
--- a/pykolab/setup/setup_syncroton.py
+++ b/pykolab/setup/setup_syncroton.py
@@ -33,12 +33,20 @@ from pykolab.translate import _
log = pykolab.getLogger('pykolab.setup')
conf = pykolab.getConf()
+
def __init__():
- components.register('syncroton', execute, description=description(), after=['mysql','ldap','roundcube'])
+ components.register(
+ 'syncroton',
+ execute,
+ description=description(),
+ after=['mysql','ldap','roundcube']
+ )
+
def description():
return _("Setup Syncroton.")
+
def execute(*args, **kw):
schema_files = []
for root, directories, filenames in os.walk('/usr/share/doc/'):
@@ -71,7 +79,8 @@ def execute(*args, **kw):
[mysql]
user=root
password='%s'
-""" % (mysql_root_password)
+host=%s
+""" % (mysql_root_password, conf.mysqlhost)
fp = open('/tmp/kolab-setup-my.cnf', 'w')
os.chmod('/tmp/kolab-setup-my.cnf', 0600)