summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-25 10:32:01 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-25 10:32:01 +0000
commitd34b78e81b102e753e6f65aeea50251937db493a (patch)
tree4057c0071dde10310199218b9b0b6417ba4af12f
parentfd70b4189dd23af78cd43b08e55a581318f0ed7c (diff)
downloadpykolab-d34b78e81b102e753e6f65aeea50251937db493a.tar.gz
Really only ask the question what MySQL we are setting up if /var/run/mysqld/mysqld.sock exists
-rw-r--r--pykolab/setup/setup_mysql.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py
index 8d419ad..1c5fd0c 100644
--- a/pykolab/setup/setup_mysql.py
+++ b/pykolab/setup/setup_mysql.py
@@ -63,7 +63,9 @@ def execute(*args, **kw):
2: "New MySQL server (needs to be initialized)."
}
- answer = utils.ask_menu(_("What MySQL server are we setting up?"), options)
+ answer = 0
+ if os.path.exists('/var/run/mysqld/mysqld.sock'):
+ answer = utils.ask_menu(_("What MySQL server are we setting up?"), options)
if answer == "1" or answer == 1:
print >> sys.stderr, utils.multiline_message(