pykolab/setup
Jeroen van Meeuwen
vanmeeuwen at kolabsys.com
Fri Jul 27 13:24:45 CEST 2012
pykolab/setup/setup_roundcube.py | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit a413bf77e7b78ba93bd369f3439f5856350454b3
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date: Fri Jul 27 11:23:34 2012 +0200
Add libkolab mysql.sql to initialization
diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py
index 88b7d24..8a720bf 100644
--- a/pykolab/setup/setup_roundcube.py
+++ b/pykolab/setup/setup_roundcube.py
@@ -151,6 +151,13 @@ def execute(*args, **kw):
if not schema_filepath in schema_files:
schema_files.append(schema_filepath)
+ for root, directories, filenames in os.walk('/usr/share/roundcubemail/plugins/libkolab/'):
+ for filename in filenames:
+ if filename.startswith('mysql') and filename.endswith('.sql'):
+ schema_filepath = os.path.join(root,filename)
+ if not schema_filepath in schema_files:
+ schema_files.append(schema_filepath)
+
p1 = subprocess.Popen(['echo', 'create database roundcube;'], stdout=subprocess.PIPE)
p2 = subprocess.Popen(['mysql', '--defaults-file=/tmp/kolab-setup-my.cnf'], stdin=p1.stdout)
p1.stdout.close()
More information about the commits
mailing list