Changeset View
Changeset View
Standalone View
Standalone View
pykolab/setup/setup_mysql.py
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | |||||
[mysql] | [mysql] | ||||
user=root | user=root | ||||
password='%s' | password='%s' | ||||
host=%s | host=%s | ||||
""" % (mysql_root_password, conf.mysqlhost) | """ % (mysql_root_password, conf.mysqlhost) | ||||
fp = open('/tmp/kolab-setup-my.cnf', 'w') | fp = open('/tmp/kolab-setup-my.cnf', 'w') | ||||
os.chmod('/tmp/kolab-setup-my.cnf', 0600) | os.chmod('/tmp/kolab-setup-my.cnf', 0o600) | ||||
fp.write(data) | fp.write(data) | ||||
fp.close() | fp.close() | ||||
schema_file = None | schema_file = None | ||||
for root, directories, filenames in os.walk('/usr/share/doc/'): | for root, directories, filenames in os.walk('/usr/share/doc/'): | ||||
for filename in filenames: | for filename in filenames: | ||||
if filename.startswith('kolab_wap') and filename.endswith('.sql'): | if filename.startswith('kolab_wap') and filename.endswith('.sql'): | ||||
# Skip the Oracle file | # Skip the Oracle file | ||||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |