summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-28 13:39:21 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-02-28 13:39:21 +0100
commit9a16e303517e4b2612dec03be02355887070b8e2 (patch)
treef7a735d0960615babd79f025a391b99a48b109b4 /pykolab
parente77da88bb8aa7c0e8564fb0bf43cd8d1fed7fded (diff)
downloadpykolab-9a16e303517e4b2612dec03be02355887070b8e2.tar.gz
Different paths to a mysql sock or pid (#2879)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mysql.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py
index e9783c7..36a0bec 100644
--- a/pykolab/setup/setup_mysql.py
+++ b/pykolab/setup/setup_mysql.py
@@ -64,7 +64,10 @@ def execute(*args, **kw):
}
answer = 0
- if os.path.exists('/var/run/mysqld/mysqld.sock') or os.path.exists('/var/run/mysql/mysql.sock'):
+ if os.path.exists('/var/lib/mysql/mysql.sock') or \ # Regular old-fashioned Enterprise Linux
+ os.path.exists('/var/run/mysqld/mysqld.sock') or \ # Debian
+ os.path.exists('/var/run/mysql/mysql.sock') or \ # (open)SUSE
+ os.path.exists('/var/run/mysqld/mysqld.pid'): # "Unbreakable" Linux from Oracle
answer = utils.ask_menu(_("What MySQL server are we setting up?"), options)
if answer == "1" or answer == 1: