summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-10-06 09:03:00 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-12-30 12:37:38 +0100
commit4c2ab9d4f02b5d4b7269042c7e87ed616b3110e8 (patch)
treeaffd4f847639d8b2d68050a3676855f9e1a75ede /pykolab
parentfecd8c3bf9a0acf84528be89bb5825bc35e06834 (diff)
downloadpykolab-4c2ab9d4f02b5d4b7269042c7e87ed616b3110e8.tar.gz
Add php 7.0 and 7.2 support for timezone setup
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_php.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pykolab/setup/setup_php.py b/pykolab/setup/setup_php.py
index 7eed80d..942d09f 100644
--- a/pykolab/setup/setup_php.py
+++ b/pykolab/setup/setup_php.py
@@ -84,6 +84,13 @@ def execute(*args, **kw):
else:
# Search and destroy
php_ini = "/etc/php.ini"
+
+ if not os.path.isfile(php_ini):
+ php_ini = "/etc/php/7.2/apache2/php.ini"
+
+ if not os.path.isfile(php_ini):
+ php_ini = "/etc/php/7.0/apache2/php.ini"
+
if not os.path.isfile(php_ini):
php_ini = "/etc/php5/apache2/php.ini"