summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-04 11:07:37 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-08-04 11:08:34 +0100
commit03b7bd9f19b635bd4818240a7b88f01c6cb44d3a (patch)
tree16e4f75b20eb6a84d6ec9c519c3890f85057934e /pykolab
parente1f0780b02149278390517e7731f8b39ad7d7556 (diff)
downloadpykolab-03b7bd9f19b635bd4818240a7b88f01c6cb44d3a.tar.gz
Ask for the timezone if it hasn't been specified over the command-line options
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_php.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/pykolab/setup/setup_php.py b/pykolab/setup/setup_php.py
index c9db0f5..36e3b4d 100644
--- a/pykolab/setup/setup_php.py
+++ b/pykolab/setup/setup_php.py
@@ -45,7 +45,7 @@ def cli_options():
"--timezone",
dest = "timezone",
action = "store",
- default = "UTC",
+ default = None,
help = _("Specify the timezone for PHP.")
)
@@ -53,6 +53,17 @@ def description():
return _("Setup PHP.")
def execute(*args, **kw):
+ print >> sys.stderr, utils.multiline_message(
+ _("""
+ Please supply the timezone PHP should be using.
+ """)
+ )
+
+ conf.timezone = utils.ask_question(
+ _("Timezone ID"),
+ default="UTC"
+ )
+
myaugeas = Augeas()
setting_base = '/files/etc/php.ini/'